[PHP] PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?
Did anybody have the same error? I have this simple script: === http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PLEASE HELP!! STRANGE ERROR!! IS THERE ANY PHP DEVELOPER?
Hi ! Don't bother with it, anybody! I recompiled all under php-4.0.4pl1 version and it works just fine! It seems it was the php version's fault.. thank u all! Daniel BI > Did anybody have the same error? > > I have this simple script: > === > the output on the second computer, in the 'select' line, is this: > > but... the second computer is Pentium III on linux RH 7.0, same > configuration, but with php-4.0.1pl2, (purchased!!!...) and it does > yeld that error. > I tried with the php-4.0.1pl1 (as with the first computer) but curiously... > it does act the same wrong way.. > it seems to be something about sessions, but independently of the > php version... > I compiled the apache server with the 'public' UID, 'guest' GUID, and > they are present in my linux user and group list. the session does > actually write any info correctly. (i tried a session_register('blabla') > and > it works)... > the error only disappears when I remove the " session_start " statement! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: scripts execute as user nobody
If you are compiling php as an apache module, you may configure apache with the options: --server-uid=asduk and --server-gid=asdukgrp (or what you want..) if you don't compile them at all, may try to set the directory's group as asdukgrp like this: chgrp asdukgrp -R path-to-your-php-scripts-dir it should work. Daniel BI ==original message== I have a problem with my PHP scripts on my web-hot, all my php scripts are running as the user nobody (group nobody). Whenever I login via ftp/telnet I am logged in as the user asduk (group asdukgrp). The problem I have is that I cannot delete my files because the permissions on the directory is set to 775. I cannot change to the user nobody my host will not allow that. If I change the permissions on the directories to 777 then I can delete the files, but have read that this is dangerous. If anyone has suggestions on how to get round this problem I'd appreciate them (or let me know if a user browsing a php site in directories with permission 777 can exploit this). I am using PHP 3.0.14 (when using PHP4.05 RC1 on a different host I don't get this problem - but need this working with PHP 3.0.14) Thanks for any help Mr. Adam ALLEN. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Apache+PHP(as apache module)+SSL under Windows
Hi there! Anybody knows if possible to have PHP as an Apache module under Windows, with SSL enabled, too? Is there an 'openSSL' lib for Windows? thanx, Daniel BI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Install problems with PHP and GD
If you're running the latest RH, the path should be /usr anyway, issue: find / -name gd.h if the result is /usr/include/gd.h, then the path should be /usr if you have somthing else, I guess you already suppose what the path is.. :) Daniel BI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] multiple domain handling with php
You might want to take a look to apache's documentation, like virtual hosts, and multiple ip. then check it with environment variables, as 'Adaran' told you. anyway, I did not try it yet... Daniel BI -- Scott> Does anybody have any scripts or tips on hosting multiple domains on the one Scott> account ie. if the domain being requested is this, go here in my account if Scott> not go here in my account? Well, I hope I understood you right ;-) Try some enviroment variables, maybe $HTTP_SERVER_VARS["HTTP_HOST"] or $HTTP_SERVER_VARS["SERVER_ADDR"] Hope it helped, EnjoY, Adaran ([EMAIL PROTECTED]) check http://www.adaran.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP + GD + FreeBSD
Take a look into the GD makefile. I had once a problem like yours and there was the solution. Daniel BI - When i compile PHP on my FreeBSD with the following confgoptions, i don't get png support. Whats wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: Sending attachments via mail()
Yep, it was *very* much discussed last time :) first need to prepare your image to meet the base 64 and chunked standards: $content = chunk_split ( base64_encode ( $your_image ) ); then you need something like this in the additional header info of the php mail function: $boundary = 'NEXT_PART'; $head = "Content-Type: multipart/mixed; boundary='$boundary'\n"; $head .= "Mime-Version: 1.0\n"; then in the message: $message = "--$boundary\n"; $message .= "Content-Type: image/jpeg; name='my_image.jpg'\n"; $message .= "Content-Transfer-Encoding: base64\n"; $message .= "Content-Disposition: attachment\n\n"; $message = $content; That's all! and it works! This way you can include html content too, changing the content-type. hope it helps. Daniel BI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Known problem without solution
Yes you are right. You need to do a chgrp or chown on the directory where the tables are located. Did you run the mysql_install_db script in the /scripts directory? Are you compiling mysql to run as the mysql user? ( --with-mysqld-user=mysql ) Is mysql a valid user in the passwd file? Answering these questions, hope will help you :) Daniel BI PS.the chgrp/chwon command works fine with me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: I am newbie and I can't resist anymore !!!!
Ok, I saw two of your emails. Your problem is that you are not enough patiently to look into and to well understand the docs. 1. if you wanna change password: if you don't have already one: mysqladmin -u root password new_password if you already have one: mysqladmin -u root -p password new_password 2. the problem with 'mysql.sock' is because you need to chown or chgrp the mysql data directory to the user of the mysqld server ( = mysql , if you compiled it with the option --with-mysqld-user=mysql). You need to do something like this: chgrp -R mysql your_mysql_data_dir hope it helps :) Daniel BI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Different fonts in PHP generated images
Hi all! Does anyone know how to put a text in other font than latin ones (Chinese, for example), on a PHP generated image? Do I need to install some new fonts? A different freetype library? Any clue greatly appreciated :) Daniel BI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Asian fonts
Hi all! Any idea how to use (install) asian fonts on an english version of RH? I need them in the gd library, to generate an image with chinese/japanese text. any clue greatly appreciated! Daniel BI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]