[PHP] htaccess
Hi, I heard it was possible to turn off/on php execution in a directory using the .htaccess file. Can some one tell me how to do that? Thanks. -- 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: string conversion
correct way is to get file name is : $path_parts = pathinfo($dir.$file); $fdir = $path_parts[dirname]; // directory name $fname = $path_parts[basename]; // file name $ftext = $path_parts[extension]; // file extension best regards from saif --- [php 406, apache 1312, winme] [mysql 32321, personal oracle 8] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] Finding a File
Hello everyone -- I'm just a little bit stumped on this. I've got some files that are available for user download, however, the files are in different directories. The file names are based on the item number which is available. For example, item number AS1000-01 is in directory AS and is named AS1000-01.xxx -- All files will have the same extension. That's no problem. Where I'm confused is not all of the directories are 2 letter names. For example, file BSEB10-010 is in the BSE directory. Some directories are 4 characters long -- all except the BSEB**-*** files match their directory names until the file name contains a number (AS is in AS, MAS is in MAS, etc). I need this script to be as dynamic as possible. I don't want to set up arrays of directory names or anything. Can I run through the string of item numbers until I hit a numeric character, and then check that substring to see if it's a directory? If it doesn't match exactly is there a way to search for that file in directories that almost match? Any ideas? Thanks, Joe -- 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] php website
Hello, hey is it just me or is the manual on the PHP website all mixed up at the moment ? When you click on the Documentation / English links it just takes you to a search page ! Similiarly for functions and so on. Lukas Sofnology Ltd -- 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] nimda, etc.
My web sites, which generally have only a couple of real visitors a day to run a specific applications, have just been getting hammered by this stupid nimda and code red stuff. I'm running Linux/Apache/PHP and have firewalls that filter everything except port 80 so I'm not worried about any local effects. What I've done as a public service is to run a /missing.php script that looks like: ?php if( strpos( $HTTP_SERVER_VARS[REDIRECT_URL], .exe ) 0 ) sleep( 300 ); if( strpos( $HTTP_SERVER_VARS[REDIRECT_URL], default.ida ) 0 ) sleep( 300 ); header( HTTP/1.0 404 Not Found ); echo 404 File Not Found: ; echo $HTTP_SERVER_VARS[REDIRECT_URL]; ? I felt that if nothing else I could slow the worm down a little by wasting its time before it races off to the next potential target. Does what I'm doing make any sense or am I all confused? -- Bill Rausch, Software Development, Unix, Mac, Windows Numerical Applications, Inc. 509-943-0861 [EMAIL PROTECTED] -- 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] Any Free Web Hosts that still support the mail( ) function out there?
Greetings to Felix and All: I must agree that http://coolfreepages.com/ is a really good free hosting service that supports PHP. However, soon as you use mail( ), it generates an error message: Fatal error: Call to undefined function: mail() in ... Regards, Salty -Original Message- From: Felix [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 4:58 PM To: Salty Marine; [EMAIL PROTECTED] Subject: Re: [PHP] Any Free Web Hosts that still support the mail( ) function out there? Try coolfreepages.com Felix - Original Message - From: Salty Marine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 2:20 PM Subject: [PHP] Any Free Web Hosts that still support the mail( ) function out there? Greetings to You: Any Free Web Hosts that still support the mail( ) function out there? Regards, Salty _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] php website
It's being worked on, go here : http://www.php.net/mirrors.php Replacing www with your county code (uk,us,au...) usually works too. For example, the uk mirror is uk.php.net regards, Philip Olson On Sat, 22 Sep 2001, Lukas wrote: Hello, hey is it just me or is the manual on the PHP website all mixed up at the moment ? When you click on the Documentation / English links it just takes you to a search page ! Similiarly for functions and so on. Lukas Sofnology Ltd -- 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 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] Sort Question
Could someone tell me how to sort this? Each $variable1 is a 3,4 or 5 letter string that I would like sorted alphabetically. I assumed sort would do it but apparently it isn't the right type of array. Thanks. $variable1 = split(\n, $variable); Jeff Oien -- 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: mysql error on win2k
It would help if you gave us some more information. If you look in your MySQL folder you will see a folder call include. In that folder there is file call mysqld_error.h, this a list of some of the errors you will encounter. This will help you track down the problems you are having, in the MySQl manual. 1016=can't open file. HTH Gary Sagar N Chand wrote: hi, i have installed win2k and configured apache and php4.0.6 but mysql is giving error 1016 or so. why is this happening. /sagar -- 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] writting into a text file
Hi ! I am having a problem that looks like this : 1.I'd like to have some clue on the traffic on my site, but my server doesn't support the mysql or smth like that. Anyway, I'd be happy with a text file, smth like a log file. Is it possible to write into a text file ? 2. Is it possible and is it a right way to do so : Making a counter based on the system I explained in the 1st question : writting a number into a text file, and on every hit, reading it and increasing by 1 ? Thanks Nikola -- 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] writting into a text file
Hi ! I am having a problem that looks like this : 1.I'd like to have some clue on the traffic on my site, but my server doesn't support the mysql or smth like that. Anyway, I'd be happy with a text file, smth like a log file. Is it possible to write into a text file ? 2. Is it possible and is it a right way to do so : Making a counter based on the system I explained in the 1st question : writting a number into a text file, and on every hit, reading it and increasing by 1 ? Thanks Nikola -- 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] writting into a text file
Hi ! I am having a problem that looks like this : 1.I'd like to have some clue on the traffic on my site, but my server doesn't support the mysql or smth like that. Anyway, I'd be happy with a text file, smth like a log file. Is it possible to write into a text file ? 2. Is it possible and is it a right way to do so : Making a counter based on the system I explained in the 1st question : writting a number into a text file, and on every hit, reading it and increasing by 1 ? Thanks Nikola -- 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] Finding a File
On Fri, 21 Sep 2001 15:29:34 -0500, Joseph Koenig wrote: Hello everyone -- I'm just a little bit stumped on this. I've got some files that are available for user download, however, the files are in different directories. The file names are based on the item number which is available. For example, item number AS1000-01 is in directory AS and is named AS1000-01.xxx -- All files will have the same extension. That's no problem. Where I'm confused is not all of the directories are 2 letter names. For example, file BSEB10-010 is in the BSE directory. Some directories are 4 characters long -- all except the BSEB**-*** files match their directory names until the file name contains a number (AS is in AS, MAS is in MAS, etc). I need this script to be as dynamic as possible. I don't want to set up arrays of directory names or anything. Can I run through the string of item numbers until I hit a numeric character, and then check that substring to see if it's a directory? If it doesn't match exactly is there a way to search for that file in directories that almost match? Any ideas? how about: $path=`find /$basedir -name $filename`; -- 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] writting into a text file
?php $COUNT_FILE = div/count_data.txt; if (file_exists($COUNT_FILE)) { // En: Open, read, increment, save and close file. $fp = fopen($COUNT_FILE, r+); flock($fp, 1); $count = fgets($fp, 4096); $count += 1; fseek($fp,0); fputs($fp, $count); flock($fp, 3); fclose($fp); } else { // En: Display a error message if file does not exist. echo Can't find file, check '\$file' var...BR; } ? I prefer to store that code in a separate document and include it in the documents i want it. Change $COUNT_FILE to whatever suits you. It's just a empty textfile from the start. Don?t forget to chmod the textfile properly. Then you just have to echo $count; # Daniel Alsen| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # I am having a problem that looks like this : 1.I'd like to have some clue on the traffic on my site, but my server doesn't support the mysql or smth like that. Anyway, I'd be happy with a text file, smth like a log file. Is it possible to write into a text file ? 2. Is it possible and is it a right way to do so : Making a counter based on the system I explained in the 1st question : writting a number into a text file, and on every hit, reading it and increasing by 1 ? -- 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: Include inside a function?
Why don't you try it and find out? J Kyle Smith wrote: Is it possible to use include inside the mail function? eg mail(include(blah.txt)) ??? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- 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] nimda, etc.
On Fri, 21 Sep 2001 13:48:09 -0700, Bill Rausch wrote: My web sites, which generally have only a couple of real visitors a day to run a specific applications, have just been getting hammered by this stupid nimda and code red stuff. I'm running Linux/Apache/PHP and have firewalls that filter everything except port 80 so I'm not worried about any local effects. What I've done as a public service is to run a /missing.php script that looks like: ?php if( strpos( $HTTP_SERVER_VARS[REDIRECT_URL], .exe ) 0 ) sleep( 300 ); if( strpos( $HTTP_SERVER_VARS[REDIRECT_URL], default.ida ) 0 ) sleep( 300 ); header( HTTP/1.0 404 Not Found ); echo 404 File Not Found: ; echo $HTTP_SERVER_VARS[REDIRECT_URL]; ? I felt that if nothing else I could slow the worm down a little by wasting its time before it races off to the next potential target. Does what I'm doing make any sense or am I all confused? -- Bill Rausch, Software Development, Unix, Mac, Windows Numerical Applications, Inc. 509-943-0861 [EMAIL PROTECTED] i think its a good idea. here's a related story you might like: http://www.wired.com/news/technology/0,1282,46964,00.html -- Mark, [EMAIL PROTECTED] on 09/21/2001 -- 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 win question
I know, this isn't an Apache list Upgraded to Apache win 1.3.20 recently. Running Apache 1.3.20, MySQL 2.23.38, Windowz 98 When running a variety of database driven applications, Apache craps out on me. MySQL and Windowz are not affected. Anyone else run into this? All was fine until I upgraded Apache. I am getting tired of restarting Apache 20 times a day. TIA, Sorry for the of topic question Kevin -- 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] Finding a File
Well - I just spoke with the client and apparently only one directory was going to create that problem so they're just going to rename the directory. I guess I should have tried that solution first. However, is there a way to read the string up to the point where the numbers start? For example, pull AS out of ASx and MAS out of MASx? I looked through the string functions and didn't really see anything to promising. Something like is_letter() would be cool :) Thanks, Joe Joseph Koenig wrote: Hello everyone -- I'm just a little bit stumped on this. I've got some files that are available for user download, however, the files are in different directories. The file names are based on the item number which is available. For example, item number AS1000-01 is in directory AS and is named AS1000-01.xxx -- All files will have the same extension. That's no problem. Where I'm confused is not all of the directories are 2 letter names. For example, file BSEB10-010 is in the BSE directory. Some directories are 4 characters long -- all except the BSEB**-*** files match their directory names until the file name contains a number (AS is in AS, MAS is in MAS, etc). I need this script to be as dynamic as possible. I don't want to set up arrays of directory names or anything. Can I run through the string of item numbers until I hit a numeric character, and then check that substring to see if it's a directory? If it doesn't match exactly is there a way to search for that file in directories that almost match? Any ideas? Thanks, Joe -- 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 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] Finding a File
On Fri, 21 Sep 2001 16:48:13 -0500, Joseph Koenig wrote: Well - I just spoke with the client and apparently only one directory was going to create that problem so they're just going to rename the directory. I guess I should have tried that solution first. However, is there a way to read the string up to the point where the numbers start? For example, pull AS out of ASx and MAS out of MASx? I looked through the string functions and didn't really see anything to promising. Something like is_letter() would be cool :) Thanks, ereg_replace([0-9]+,,$filename); Joe Joseph Koenig wrote: Hello everyone -- I'm just a little bit stumped on this. I've got some files that are available for user download, however, the files are in different directories. The file names are based on the item number which is available. For example, item number AS1000-01 is in directory AS and is named AS1000-01.xxx -- All files will have the same extension. That's no problem. Where I'm confused is not all of the directories are 2 letter names. For example, file BSEB10-010 is in the BSE directory. Some directories are 4 characters long -- all except the BSEB**-*** files match their directory names until the file name contains a number (AS is in AS, MAS is in MAS, etc). I need this script to be as dynamic as possible. I don't want to set up arrays of directory names or anything. Can I run through the string of item numbers until I hit a numeric character, and then check that substring to see if it's a directory? If it doesn't match exactly is there a way to search for that file in directories that almost match? Any ideas? Thanks, Joe -- 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: php-list- [EMAIL PROTECTED] -- Mark, [EMAIL PROTECTED] on 09/21/2001 -- 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] Finding a File
On Fri, 21 Sep 2001 14:46:04 -0700, Mark wrote: On Fri, 21 Sep 2001 16:48:13 -0500, Joseph Koenig wrote: Well - I just spoke with the client and apparently only one directory was going to create that problem so they're just going to rename the directory. I guess I should have tried that solution first. However, is there a way to read the string up to the point where the numbers start? For example, pull AS out of ASx and MAS out of MASx? I looked through the string functions and didn't really see anything to promising. Something like is_letter() would be cool :) Thanks, ereg_replace([0-9]+,,$filename); oops make that: ereg_replace([0-9].*,,$filename); Joe Joseph Koenig wrote: Hello everyone -- I'm just a little bit stumped on this. I've got some files that are available for user download, however, the files are in different directories. The file names are based on the item number which is available. For example, item number AS1000-01 is in directory AS and is named AS1000-01.xxx -- All files will have the same extension. That's no problem. Where I'm confused is not all of the directories are 2 letter names. For example, file BSEB10-010 is in the BSE directory. Some directories are 4 characters long -- all except the BSEB**-*** files match their directory names until the file name contains a number (AS is in AS, MAS is in MAS, etc). I need this script to be as dynamic as possible. I don't want to set up arrays of directory names or anything. Can I run through the string of item numbers until I hit a numeric character, and then check that substring to see if it's a directory? If it doesn't match exactly is there a way to search for that file in directories that almost match? Any ideas? Thanks, Joe -- 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: php-list- [EMAIL PROTECTED] -- Mark, [EMAIL PROTECTED] on 09/21/2001 -- Mark, [EMAIL PROTECTED] on 09/21/2001 -- 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] configure errors: PHP with sablot on mac os x
Hi, I'm configuring PHP on my mac os X box and have been working for days reading all the lists and articles that have been written about this and I have got through a lot of issues so far but now I'm at an impass. I've compiled all the extentions that I need (expat, sablotron etc.) but now in the home stretch I'm configuring PHP and I'm getting some errors related to iconv. If I remove the --with-sablot flag the configure runs fine, I'm baffled, thanks for any help, karl so these are my config flags ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --with-sablot --with-mysql --with-apxs --with-zlib-dir=/usr/local --disable-pear and when it gets to configuring extentions: checking for recode support... no checking for Sablotron XSL support... yes checking libexpat dir for Sablotron 0.50... no checking for Sablotron in default path... found in /usr/local checking for SablotSetEncoding in -lsablot... yes checking for iconv_open in -lc... no configure: error: iconv not found So I found out what iconv was and downloaded it from : http://freshmeat.net/redir/libiconv/5664/url_tgz/libiconv-1.7.tar.gz went through the config, make, make install etc so just for fun I thought I'd try --with-iconv=/usr/local: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --with-sablot --with-mysql --with-apxs --with-zlib-dir=/usr/local --disable-pear --with-iconv=/usr/local snip checking for Hyperwave support... no checking for ICAP support... no checking for iconv support... yes checking for iconv_open in -lc... no checking for IMAP support... no snip checking whether to include pspell support... no checking whether to include QDOM support... no checking for libedit readline replacement... no checking for readline support... no checking for recode support... no checking for Sablotron XSL support... yes checking libexpat dir for Sablotron 0.50... no checking for Sablotron in default path... found in /usr/local checking for SablotSetEncoding in -lsablot... yes checking for iconv_open in -lc... (cached) no configure: error: iconv not found
Re: [PHP] configure errors: PHP with sablot on mac os x
snip checking for Hyperwave support... no checking for ICAP support... no checking for iconv support... yes checking for iconv_open in -lc... no checking for IMAP support... no snip checking whether to include pspell support... no checking whether to include QDOM support... no checking for libedit readline replacement... no checking for readline support... no checking for recode support... no checking for Sablotron XSL support... yes checking libexpat dir for Sablotron 0.50... no checking for Sablotron in default path... found in /usr/local checking for SablotSetEncoding in -lsablot... yes checking for iconv_open in -lc... (cached) no that (cached) at the end tells me you might need to rm config.cache configure: error: iconv not found -- 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] nimda, etc.
At 13:48 2001-09-21 -0700, Bill Rausch wrote: sleep( 300 ); I felt that if nothing else I could slow the worm down a little by wasting its time before it races off to the next potential target. Does what I'm doing make any sense or am I all confused? I do like the concept behind the sleep idea, but this is going to tie up acesses to *YOUR* server, which means you're literally setting yourself up for a DoS. I doubt that was a design goal. I think setting up a script which hands off the vitising IP address to your firewall and stealths the requests would be much better. If I could get an answer to a cache implementation question I posted here this morning, I'd be moving along to providing such a facility to those interested... FTR, the implementation I have in place right now is invoked via a rewriterule in apache, so I don't log 404 errors. --- Please DO NOT carbon me on list replies. I'll get my copy from the list. Sean B. Straw / Professional Software Engineering Post Box 2395 / San Rafael, CA 94912-2395 -- 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] Can someone explain this????
try this when u get a sec. its weird... In Microsoft Word, start with a blank page and type the letters NYC in all caps. Highlight the letters and change to the largest font size, 72 points. Now change the font itself to Webdings . that's not all. Now change the font again, to Wingdings. (use the first version of Wingdings) If you ask me that's just weird.
[PHP] GD Library help
Do all versions of the GD library for Linux that are version 1.6 and above not support any GIF formats? I have 1.8 and in the manual I thought that it was only version 1.6 that didn't support GIF format. However, when I run ImageCreateFromGIF() or ImageGIF() I get an error saying that it's not supported in PHP. Also, I wanted to use the ImageCopyResampled but that's only supported in GD 2.0. Is there a GD 2.0 for Redhat 7.1? Thanks, Jay -- 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] nimda, etc.
Are you sure about that? I am trying his script and I just had an attack and I watched the traffic through my firewall software. It dropped off immediately, i.e. showed no activity. I was expecting to see somekind of a persistant connection, but It doesn't seem to be there. I tested it myself and got the same results. My browser just sat there spinning, but there was no traffic in and out of my site. -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts Sean Straw / Pse [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 13:48 2001-09-21 -0700, Bill Rausch wrote: sleep( 300 ); I felt that if nothing else I could slow the worm down a little by wasting its time before it races off to the next potential target. Does what I'm doing make any sense or am I all confused? I do like the concept behind the sleep idea, but this is going to tie up acesses to *YOUR* server, which means you're literally setting yourself up for a DoS. I doubt that was a design goal. I think setting up a script which hands off the vitising IP address to your firewall and stealths the requests would be much better. If I could get an answer to a cache implementation question I posted here this morning, I'd be moving along to providing such a facility to those interested... FTR, the implementation I have in place right now is invoked via a rewriterule in apache, so I don't log 404 errors. --- Please DO NOT carbon me on list replies. I'll get my copy from the list. Sean B. Straw / Professional Software Engineering Post Box 2395 / San Rafael, CA 94912-2395 -- 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] Problem with GD version 1.8.4
Hi, I try compile gd-lib in version 1.8.4 on OpenBSD. This operation caused error, but with version 1.8.3 was all OK. Do you have some expirience with this problem? How to compile PHP 4.0.6 wiht gd-1.8.4 Thaks Radek --- Bc. Radek Kreja www: www.ceskedomeny.cz e-mail: [EMAIL PROTECTED] tel: +42 0608 / 470 980 --- -- 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] how to access to session variable without a href ?
I'm using php4 with session I have a session variable $TABLE[1]=100; $TABLE[2]=150; $TABLE[3]=200; My problem is I have a mysql database where I pull out data and put them into the the session variable With these data, I want to generate a graph. if I access to a different page (or link) through a href=page.php?SID=$SID I can see the content of $TABLE. No problem then. whereas if I use img src='graph.php?SID=$SID', I cannot have $TABLE content. it's empty. Does someone know a way a have the content within the page. Basically, I don't want to send the values of my data in the url such as img src='graph.php?SID=$SIDvalue1=100value1=150value1=200' I will appreciate any help. Thanks a lot, Jacques -- 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] Re: calling javascript function from a form image
At 09:29 21/9/2001 -0700, Chris Lee wrote: this isnt reallt a php question but I'll answer it anyhow because Ive been stuck with netscapes incompatabilities before. do this. input type=image border=0 name=sub src=genre.png onsubmit=set_category() onSubmit is not an event for the input type image... it is for the form.. tag... it should look like form name= action=something onSubmit=func() this would be activated by clicking on a input type=submit and NOT a input type=image... if that doesnt work you'll have todo this. script function set_category() { alert(category set); document.formMoviesSearch.submit(); } /script ... input type='hidden' name='sub' value='' img src=genre.png onclick=set_category() or if you want the hand to show up over the image. change the img tag to a href='javascript: set_category()'img src=genre.png/a -- Chris Lee [EMAIL PROTECTED] Neil Freeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have a form which contains an: input type=image When the user clicks this image I want a javascript function to be called. I have added an onclick event to this input line (see code below) which works great in IE and all is well. Netscape doesn't recognise this onclick event though for the image so how do you call a javascript function here? Normally I'd wrap an img with a/a tags but I don't think a form will like this. Has anyone a solution? Here is my code # head titleimagesubmit.htm/title script function set_category() { alert(category set); } /script /head body bgcolor=#FF text=#00 ?php if ($submit_form) //if this equals true then the form has been submitted { echo scriptalert(\form submitted\);/script; } else { echo scriptalert(\not submitted\);/script; } ? form name=formMoviesSearch method=post action=imagesubmit.htm input type=image border=0 name=sub src=genre.png onclick=set_category() input type=hidden name=submit_form value=true /form /body /html # Neil Email: [EMAIL PROTECTED] [EMAIL PROTECTED] -- 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] _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- 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] calling javascript function from a form image
form name=formMoviesSearch method=post action=imagesubmit.htm input type=image border=0 name=sub src=genre.png onclick=set_category() input type=hidden name=submit_form value=true /form I understand Netscape is a real pain in the a**... but that should work... maybe it (Netscape)'s being picky about syntax... trye being perfectionist... like: input type=image name=sub value= src=genre.png onClick=set_category(); _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- 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] Sort Question (Again)
This didn't get answered before. I'm trying to sort an array but it won't work. $list = file('list_main.txt'); $list = sort($list); If I print $list it gives me 1 and print $list[0] is nothing. The list_main.txt looks something like this: ABC DEFG HIJ etc. Jeff Oien -- 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: Sort Question (Again)
When you do $list = sort($list) you are assigning a boolean true/false to the success/failure of the sort to $list (on the left hand side of the equals sign). What I think you really want is: $list = file('list_main.txt'); sort($list); Regards, -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts Jeff Oien [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This didn't get answered before. I'm trying to sort an array but it won't work. $list = file('list_main.txt'); $list = sort($list); If I print $list it gives me 1 and print $list[0] is nothing. The list_main.txt looks something like this: ABC DEFG HIJ etc. Jeff Oien -- 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] eregi_replace problem
The following does what it's meant to do: replace [i} and [ei} with the html eqivalenets. $welcome_html = eregi_replace(\[i],I,$welcome_html); $welcome_html = eregi_replace(\[ei],/I,$welcome_html); Why does the following NOT work? $welcome_html = eregi_replace(\[c],center,$welcome_html); $welcome_html = eregi_replace(\[ec],/center,$welcome_html); Any help gratefully appreciated. Daniel Goldin [EMAIL PROTECTED] Creative Director 323.225.1926 BlueLamp Productions www.blue-lamp.com -- 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] Site Search
Hi, I need to have a search on my site and was about to start working on it. Can anyone pls send their code if they have made one allready ? Thanks, Vishal _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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: global variables as reference
http://www.php.net/manual/en/language.references.arent.php I stopped reading after the manual said You can't do that, but there's a user-contributed note on a work-around that you may want to read. Disclaimer: I don't really grok in PHP yet, so I just don't use it. :-p -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Wolfram Kriesing [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 14, 2001 10:12 AM Subject: global variables as reference i am using a global variable (curClass), which is a reference to some class, inside another class i want to change the value of this global variable, to point or refer to another class. but that doesnt work. am i doing something wrong??? here my code -- class temp { function temp() { global $curClass; $curClass = ${$classNameY}; } } - $curClass = ${classNameX}; $tempi = new temp(); # at this point $curClass still points # to the class with the name classNameX # not to classNameY as i would suppose # if i used: $curClass = $classNameY; # inside the class temp # $curClass would have the expected value # but with the ${} around it doenst work thanks 4 your help Wolfram Kriesing ___ 1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de [EMAIL PROTECTED], 8MB Speicher, Verschluesselung - http://freemail.web.de -- 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: configure with mysql
Compile from source. You could spend the rest of your life trying to find a right rpm that has the currect sub-set of 107 compile-time switches to PHP's configure. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jason Radley [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 14, 2001 11:03 AM Subject: configure with mysql I have installed redhat linux 7.1 with apache, php and mysql but when installed redhat it didn't add the configure --with-mysql it added --without-mysql is there any way to change this to configure --with-mysql. Thanks -- 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: naming convention in php?
Whichever way your company wants to do it. Consistency is all that matters, really. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Saif [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Saturday, September 15, 2001 8:28 AM Subject: naming convention in php? hi, i want to know is there any naming convention followed in php as in c/c++/java/etc. i am puzzled how naming of variables are done in large scale projects, where codes are written by one and debug by others. best regards from saif --- [php 406, apache 1312, winme] [mysql 32321, personal oracle 8] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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: Permutation in PHP
You should be able to find this in *ANY* computer science algorithm textbook, or online in a few thousand sites... If you find a C version, you can probably change all the variables to have $ in front, and you're finished. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Robert Mena [EMAIL PROTECTED] Newsgroups: php.general To: php mailing list [EMAIL PROTECTED] Sent: Sunday, September 16, 2001 4:44 PM Subject: Permutation in PHP Hi I am looking for an algorithm to generate the permutation of the elements of a vector, say a,b,c. Does anybody know / have implemented such (in PHP or different languages). Best regards. __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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: iPlanet PHP
Do you have a auto_prepend which is doing require 'index.php' ?... Check in php.ini -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jeb Scarbrough [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 14, 2001 3:52 PM Subject: iPlanet PHP I have configured my PHP with the following --with-oci8=\XX --with-nsapi=\XX --with-gd=\\ --with-ldap --enable-libgcc --enable-track-vars I have just loaded and installed RSA AceAgent on the server to provide us with token access. Before I loaded this software I was able to view all of my webpages. Now when I try to view the pages I get a login page (not the problem) after I log into the token server I get the following response from the server Warning: Failed opening '/index.php' for inclusion (include_path='/x/x//includes:////adminincludes:.') in Unknown on line 0 what is the problem? Jeb Scarbrough -- 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: Code Speed Optimization
The *FIRST* thing you need to determine is *WHY* and *WHERE* your pages are being slowed down. 90% of your problem is in 10% of your system. It *MIGHT* be your database connections. It *MIGHT* be your hard drive thrashing. It *MIGHT* be your bandwidth isn't up to snuff. It *MIGHT* be your RAM over-loaded. Until you know what's the bottle-neck, you aren't optimizing -- You're wasting time. The time you spend figuring out what to fix will more than make up for the time saved from installing stuff that won't help and will only confuse the issue. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Alex Ranaldi [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 11:32 AM Subject: Code Speed Optimization Hello Everyone, My PHP-based website is beginning to get a bit slow. I'm wondering if anyone knows of any specific code optimizations that can be done to improve the general performance. I'm not running Zend Optimizer right now but I have plans to install it soon, hopefully it'll help. If anyone has any suggestions or knows of anything that can help, please let me know. Thanks, Alex -- 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: Urgent
You will almost certainly need to find a php_freetype.dll which will provide the API from PHP to Freetype's DLL... But there may be DLLs that provide, say, way more than Freetype that will give you Freetype as a side-effect. GD, for example, lets you put Freetype fonts in to Images, at least on Un*x. Places to search: http://php4win.de http://php.net -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Karthikeyan [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Saturday, September 15, 2001 9:07 AM Subject: Urgent Hi guys, I have installed php4.0.6 in my system, i am working on winNT environment with Apache as my web server. The php is working great, i have also enabled gd library and i am able to run some of my image program, it is great. Now i need different fonts, for that i know i need freetype to be installed in my system. I download freetype-2.0.4-bin.zip for windows and when i extracted the zip, it created 3 folders /bin /contrib /manifest i saw freetype.dll in bin folder and copied it into /php4/bin, but still i am not able to get my program run. Waiting for your earliest reply, With Regards, b.karthikeyan. -- 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: prob with include file
Where does admin.php live? Is it in /www/inc? If not, either move it there, or change your include_path in php.ini to be: include_path = ./:/www/inc -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Balaji Ankem [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 3:35 AM Subject: prob with include file Hi! same is working on windows but on Lynux giving the following problem.. Warning: Failed opening 'admin.php' for inclusion (include_path='/www/inc') in /www/imac/authentication.php on line 46 -- if ($row-user_type=='A') { file://close mysql connection mysql_close($connection); include('admin.php'); exit; } else if ($row-user_type=='S') { file://close mysql connection mysql_close($connection); include('super.php'); exit; } else if ($row-user_type=='O') { file://close mysql connection mysql_close($connection); include('ordinary.php'); exit; } - And i tried this also include('./admin.php'); -- Thanks in advance Regards -Balaji -- 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: Help with escaping the # sign
It's a MySQL issue, probably. Addslashes() should take care of it, I think... If not, find out how MySQL escapes # and use http://php.net/str_replace -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: John Holcomb [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 3:36 PM Subject: Help with escaping the # sign I have a text input field in my form. I need the user to be able to enter something like: Hello, I need # help. After which they click on a submit button. The succeeding page then takes this text and tries to display it and tries to store Hello, I need # help in a varchar field in a mysql table column. The mysql database is truncating the # sign and the text succeeding the # sign. Also, absolutly no text is being diplayed on the succeeding web page. I've tried using addslashes() and I was warned against using htmlentities(). Also, I'm not sure if I'm dealing with 2 issues: A mysql issue and a html issue. Or, am I dealing with one issue: A mysql issue or an HTML issue. Thank you, John __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ -- 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: searching trought multiple tables
Either you are missing a constraint (one of the *AND* bits in a WHERE clause) or you actually have duplicates in the join. Can't tell which without knowing more about the schema. You could just use select DISTINCT ... and let MySQL get rid of the duplicates. That may be kinda slow on 5,000 rows though, depending on your hardware/RAM and the phase of the moon. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Daniel Masur [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 9:21 AM Subject: searching trought multiple tables i have a mysql database with 100 entrys in 3 tables. i need to search trought them, but if i search for 'a' in all tables, i get 5000 results... 70 results are the same. heres my code: $sql_find= SELECT mieter.miet_name, mieter.cat_id, mieter.id, mieter.miet_beschreibung, cat.cat_name, events.name FROM mieter AS mieter, categories AS cat, events AS events WHERE mieter.miet_name LIKE '%$words%'; if($option1) $sql_find = $sql_find . AND mieter.cat_id = '$option1'; $sql_find = $sql_find . OR mieter.miet_beschreibung LIKE '%$words%'; $sql_find = $sql_find . or events.name LIKE '%$words%'; with $option1 enabled you can search trought subcategories. can anybody help 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: Passing arrays to other php routines in popup window
Dunno why split is not working, but use explode instead. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Gavin [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 14, 2001 9:34 PM Subject: Passing arrays to other php routines in popup window I am using Apache with php version 4.0.4pl1. I am trying to display data in a popup window. I want to pass there variables, one string and two normal arrays. Both the $name and $data variables contain valid data in the dispData routine, however the $data2 array is always blank. ** $name = urlencode($name); $data = urlencode(serialize($data)); $data2 = urlencode(serialize($data2)); $return_value .= 'form'; $return_value .= 'input type=button onClick=window.open(dispData.php?pass='.$title.'-'.$data.'-'.$data2.') value=Graph'; $return_value .= '/form'; ** dispData.php list ($name, $data, $data2) = split ('[=-]', $pass); $name = urldecode($name); $data = unserialize(urldecode($data)); $data2 = unserialize(urldecode($data2)); Any ideas? Thanks -- 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: magic_qoutes_gpc and cobolt linux causing problems
Add a third site without ChiliSoft and do .htaccess, and a fourth with ChiliSoft and .htaccess and see which works/breaks... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Ari Nepon [EMAIL PROTECTED] Newsgroups: php.general To: Php-General [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 6:15 PM Subject: magic_qoutes_gpc and cobolt linux causing problems I am hosted on a Linux cobalt machine running Apache/1.3.12 Cobalt release 10312100 and PHP 4.0.3pl1. I have two virtual hosted accounts on this computer. The problem I am having is this: I added a .htaccess file to the root web folder of one site, the file contains one line: php_value magic_quotes_gpc 1 Everything worked fine. I made another .htaccess file for the other site, and added it there, with the same line in it. Now, the second site causes a server misconfiguration error for any page requests. The first site still works fine. The only difference I can see is that there is a folder that is linked to Chilisoft ASP on the second virtualhost site. Has anyone had a similar experience with either Chilisoft or Cobalt Linux and magic_quotes? Thanks, Ari -- 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: french date
What argument did you use for setlocale? It seems to sometimes like different args on different OSes?... Like, fr works for some, fr_FR works for others, I think... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Marc-Andre Vallee [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 4:16 PM Subject: french date Hi i want to print the date in french i use the function setlocale (http://www.php.net/manual/en/function.setlocale.php) and then i use the function strftime (http://www.php.net/manual/en/function.strftime.php) but, on my slackware 8 distribution, compiled with php 4.0.6 apache 1.3.20 it doesn't works maybe, i need a slackware package witch one thanks a lot -- Marc-Andre Vallee [EMAIL PROTECTED] -- 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: ftp in PHP4
Does the PHP user (nobody) have read access to the local file you are trying to upload? Are you 100% sure you have the right things in the filenames?... Print them out right before the ftp_puts line. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Chesley A Windon [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 3:51 PM Subject: ftp in PHP4 I need to have web based ftp capabilities for a site I am working on. My development server is running RedHat 7.1 and php-4.0.4, and I did compile php with the --enable-ftp switch. After reading the docs at php.net, I found a canned script (http://www.php.net/manual/en/ref.ftp.php) that I thought I would try so as to give me a better idea on what was involved. When running the script, I can connect to the ftp server, list the contents of the directory, and disconnect, but cannot upload anything. When I try, I get the following error: Warning: error opening /home/windon/somefile in /var/www/html/ftp.php on line 43 line 43 reads: $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); In $destination_file I have just the filename, while in $source_file I have the full path and the filename. Thanks, Chesley -- 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 Auth problem
If your code doesn't look like this: http://www.php.net/manual/en/features.http-auth.php you did it wrong. Replace the == test with your imap_open, but don't go re-arranging the if/else logic or the header() order. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Alex Sofronie [EMAIL PROTECTED] Newsgroups: php.general To: PHP General Mailing List [EMAIL PROTECTED] Sent: Saturday, September 15, 2001 5:50 PM Subject: PHP Auth problem Hi all I have a rather strange problem with php auth: i want to authenticate a user through php and validate it through imap_open function (to access his email). I send WWW-Authenticate header like this: header(WWW-Authenticate: Basic Realm=\Private\); After, i check for isset($PHP_AUTH_USER) and validate it through PHP. Can anyone tell me why, for a real user (it really exists), the authentication simply fails and asks me again for a username and password, without even leaving the authenticate intrinsic routine (the script just keeps telling me that the auth is failed, but WITHOUT running imap_open or any other part of the script). Why is that? If anyone has the time and the understanding, i can post the code fragment. Thanks - Alexandru SOFRONIE [EMAIL PROTECTED] - IT Software Dept. Omega-Tehnoton GROUP +40-93-670773 - -- 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: Image Edit Uploading Problem.
The trick you are missing is this: You can use an if/else to build your *SQL* piece-meal as well: $SQL = update $table_name set ; if ($userfile_th != 'none'){ $SQL .= thumbnail='$userfile_th_name', ; } if ($userfile_full != 'none'){ $SQL .= full_size='$userfile_full_name', ; } $SQL .= title='$title', caption='$caption' WHERE ID=\$ID\; Now, no matter which they uploaded, your SQL only updates the fields that should change, and leaves the others alone. You may also want to re-structure this so that you do the copy() *FIRST* and only update if that succeeds, so you never have your db out-of-sync with reality in the event of copy() failure, and use that new-fangled uploaded_file_copy() function or whatever it is. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Michael O'Neal [EMAIL PROTECTED] Newsgroups: php.general To: Php-General@Lists. Php. Net [EMAIL PROTECTED] Sent: Monday, September 17, 2001 1:05 PM Subject: Image Edit Uploading Problem. Hi, I'm creating a PHP/MySQL photo gallery app and I'm having problem with my edit page. I want the user to be able to change any of the fields in the record. In this case there are two text fields, and two file fields where they can browse to replace the images that are currently in the database. The file fields send a variable of none if the user doesn't change it. So, what I've done is created an if/else statement that says if these fields DON'T = none, then do the SQL. However, I didn't account for the user just updating ONE of the image fields. Below is what I have so far: ?php if (($userfile_th) ($userfile_full) ($userfile_th $userfile_full != none)) { $db_name = wonderland; $table_name = photo; $connection = @mysql_connect($db_loc,$db_user,$db_pass) or die(Couldn't Connect.); $db = @mysql_select_db($db_name, $connection) or die(Couldn't select database.); $sql =UPDATE $table_name set title='$title',caption='$caption',thumbnail='$userfile_th_name',full_size='$ userfile_full_name' WHERE ID=\$ID\; $result = @mysql_query($sql, $connection) or die(Couldn't execute query.); copy($userfile_th, /Users/emptyo/Sites/wonderland/images/gallery/thumbnail/$userfile_th_name) ; copy($userfile_full, /Users/emptyo/Sites/wonderland/images/gallery/full_size/$userfile_full_name ); include(edit_photo_upd_suc.html); } else { $db_name = wonderland; $table_name = photo; $connection = @mysql_connect($db_loc,$db_user,$db_pass) or die(Couldn't Connect.); $db = @mysql_select_db($db_name, $connection) or die(Couldn't select database.); $sql =UPDATE $table_name set title='$title',caption='$caption' WHERE ID=\$ID\; $result = @mysql_query($sql, $connection) or die(Couldn't execute query.); include(edit_photo_upd_ok.php); } ? So, my question is, do I need to do a separate if/else statement for every combination of what the user might want to change (Two text fields, and one image, or both images and no text fields, or 1 text field and 1 image, etc..) or is there a catch-all that might be able to do this for me? I'm a pretty new PHP'er, so forgive me if this is an obvious question, or there is a better way to do this. Please respond directly to [EMAIL PROTECTED] as I am on the digest. TIA, mto -- Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si - M A N G O B O U L D E R - http://www.thinkmango.com e- [EMAIL PROTECTED] p- 303.442.1821 f- 303.938.8507 -- 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: Is CRON'd PHP script already running?
?php # Untested code: exec(ps auxwww | grep $PHP_SELF, $results, $error); if ($error){ echo implode(\n, $results); echo OS Error: $error Usually path/permissions. See 'man errno' to be sure\n); } $results = implode(\n, $results); if (strstr($results, $PHP_SELF)){ # There's one of me already running. Die. exit(0); } . . . ? NOTE: The file-locking and other solutions presented so far have a fatal flaw: If something pukes, the lock will be left behind and your PHP will never run again until you manually remove it. If you can get this working, that won't be an issue. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Simon Kimber [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 12:13 PM Subject: Is CRON'd PHP script already running? Hi All, I have a PHP script that i want to run every few minutes (via cron) but I only want it to run if it isn't already running. Is there something in cron itself to solve this or is there a way within PHP to detect that another instance of the current script is running and if so exit the new instance before it does anything... eg. I could have a function to use like so: if (already_running($SCRIPT_NAME)) { exit(); } Thanks in advance! Simon -- 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: Security with include() function
I think it is not parsed on the remote server, but is on the local server, but they can't get the source from include(). That said, either way, if they can include() it, then can fopen/fread it, so it really doesn't mattter -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Sed [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 1:16 PM Subject: Security with include() function Hi, I was wandering if someone includes php-file with passwords, private paths etc. on a different server like this: include (http://someserver/file.php;); Will this same person be able to echo all the variables in that file.php script? Or is it in each and every time processed via php.exe before delivered? Thanks! SED -- 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: newbie include question
You really only want to use the whole URL if you plan on having it get it from a remote server... And that's pretty dangerous unless you totally control that remote server. I think you'll need to convince xyz.inc and/or Apache to not output those headers... I *THINK* maybe something like: header(Last-Modified:); will over-ride the default header, and since it's got no value, might not be passed out... Strictly a guess on my part. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Peter Wilk [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 11:56 PM Subject: newbie include question I am very new to PHP and I've come across a little problem. When I'm using an include (), such as: ?php include http://www.petewilk.com/temp/xyz.inc;; ? I get the following text in the resulting HTML file. Last-Modified: Thu, 20 Sep 2001 04:46:25 GMT ETag: 6464fa-15-3ba974a1 Accept-Ranges: bytes Content-Length: 21 Connection: close Content-Type: text/plain However if I change the include() line to look like this ?php include xyz.inc; ? I don't get the Last-Modified .. text. Anyone know why this is happening? Is there a way I can use the whole URL rather than the relative path? -Peter Wilk -- 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: 500 Internal Server Error
500 just means PHP or PWS puked. Check whatever log files PWS has, and any log file for PHP you may have specified in your php.ini Also, try running php from an MS-DOS prompt to take PWS out of the picture, and surf to a non-PHP page to see if that works. Narrow down where the problem must be. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Deryck Henson [EMAIL PROTECTED] Newsgroups: php.general,php.install To: PHP [EMAIL PROTECTED]; php-Install [EMAIL PROTECTED] Sent: Saturday, September 15, 2001 8:13 PM Subject: 500 Internal Server Error I am trying to run PHP 4 on Windows with PWS. Nothing is working! I did exactly like the manual said and even tried another program(third party) to do it for me. Nothing helps! If you have any idea of what can help me, please tell me! - Deryck H - http://www.comp-u-exchange.com -- 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: Expect Like Function
Closest I can think of is: http://php.net/manual/en/function.assert.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Ninety-Nine Ways To Die [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 9:02 AM Subject: Expect Like Function Are there any expect like functions to PHP? If not are they in development? Something to say, log into a server via telnet, ftp, ssh, etc.. do something like cat a bunch of files, perform some actions, clean and remove files.. etc.. then logout... Make a difference, help support the relief efforts in the U.S. http://clubs.lycos.com/live/events/september11.asp -- 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: Server API - what is the difference please?
The CGI (.exe) version will not scale up well for a busy server. Each time a page is requested, PHP.EXE is fired up, does its thing, and quits. In the ISAPI model, PHP is a DLL that gets glomned on to IIS, and is just always there. Alas, many of the third-party DLLs are not yet thread-safe, so you can't safely *USE* ISAPI without extensive testing to be sure all the DLLs you need will work in ISAPI mode. (They're fine in CGI mode since a separate PHP.EXE runs for each script.) If your site is fast enough leave it alone -- If not, switch to ISAPI and test like crazy. Oh. There are, like, four or five things you can't do with CGI: http://php.net/virtual (http://php.net/exec and brethern will often suffice, but they don't work on all Windoze either...) HTTP Authentication in PHP (You can use, err, whatever IIS does for that) Some esoteric function nobody needs anyway. Some fourth thing that's fairly common, not real critical, and I can't remember. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Pete Hawkes [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 2:20 PM Subject: Server API - what is the difference please? Hello, Sorry to bother you, I have just installed PHP4 because I am just starting to learn the language. I ran the .exe file from a Flash book CD ROM, version 4.0.4pl1. What is the difference between the CGI and the ISAPI installation? I am running Windows 98SE with PWS, does the fact that my installation is a CGI Server API effect any thing at all? So far everything seems to be OK including connecting to MySQL. If I have done something wrong please let me know. Many thanks Pete -- 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: About old msg on attachements using PHP mail function
I believe you will need to stuff the body into the mime-headers like another attachment and have the body be empty... Even that *may* not work... Another option is to bypass the mail() function entirely and just fsockopen to port 25 and fread/fwrite the right stuff to talk to SMTP. It ain't rocket science -- I've even managed to do it for regular mail in higher volume than mail() can handle. Disclaimer: I'd find it easier to snag somebody else's attachment class, and I hate classes in PHP... You could just look at their source and see how they do it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: M [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 7:12 PM Subject: About old msg on attachements using PHP mail function Hello, regarding old email from [EMAIL PROTECTED] about mail attachements From: py [EMAIL PROTECTED] 21/05/01 08:25 Subject: Re: [PHP] sending attachements with mail To: Tolga \thorr\ Orhon [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Here is a nice class that handles e-mail attachment. Works fine for me. function write_mimeheaders($filename, $mime_filename) { if ($mime_filename) $filename = $mime_filename; $out = MIME-version: 1.0\n; $out = $out . Content-type: multipart/mixed; ; $out = $out . boundary=\$this-mime_boundary\\n; $out = $out . Content-transfer-encoding: 7BIT\n; $out = $out . X-attachments: $filename;\n\n; return $out; } function write_smtpheaders($addr_from) { $out = From: $addr_from\n; $out = $out . Reply-To: $addr_from\n; $out = $out . X-Mailer: PHP3\n; $out = $out . X-Sender: $addr_from\n; return $out; } ... I am trying to attach single text file to mail, then don't want to implement new class for this task. I imagine to send MIME messages, it would be enough build appropriate headers, in same way PY wrote these functions above, then send these headers into PHP mail function. PHP mail function has parameters ($TO,$SUBJECT,$BODY,$HEADERS) , then I built MIME headers into $HEADERS parameter. Message arrives ok to me, headers are right placed into message headers, but no attachements appears for me (and no body also!) My doubt is: when sending MIME parts, should $BODY be empty (and actual body sent like MIME part), or rather should I mount all my headers into $BODY and let $HEADERS empty? What I made is: $mime = 'From: [EMAIL PROTECTED]\n'; $mime = $mime . 'MIME-version: 1.0\n'; $mime = $mime . 'Content-type: multipart/mixed\n'; $mime = $mime . 'Boundary=1234567890\n'; $mime = $mime . '--1234567890'; $mime = $mime . 'Content-type: text/plain; name=myfile.txt;'; $mime = $mime . 'this is my text file to be attached, blha blha blha...'; mail([EMAIL PROTECTED],mysubject,mybody,$mime) mail arrives ok, but no body and no attachement into. Thanks in advance. Miguel -- 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: Legal advice
If the licensing is an issue, you should be able to automate the exporting of data from Access/Excel, and suck it into MySQL, and then web-host MySQL only. You'd have to read your Access license with a lawyer, not here, to be sure what's kosher... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jon [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 6:48 AM Subject: Legal advice Hi, We are working with PHP MYSQL, and we would like to publish some information that we have with MS ACCESS and MS EXCEL, and altough I know that it is posible to connect an access database using ODBC from PHP, however I don't know if it is legal to do this without having to pay licenses to Microsoft for accessing its database through the web. On the other hand and if it will be too expensive to use access with ODBC, I would to know if there is an easy way to insert the information in EXCEL / ACCESS to a MYSQL database. Thanks -- 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: truncate?
I think you can do fopen(...,'w+')/fseek()/fclose() in some combination that would do that... Might need to fwrite(...,EOF) or something... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Urb Lejeune [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 6:39 AM Subject: truncate? Looking through the documentation and several book I can not find a PHP file function that mimics Perl's truncate(FH,offset); This is very handy to remove the contents of an existing file. Am I overlooking something? Urb -- 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: Compiling problems with PHP4.0.6+apache1.3.20+mysql3.23.39
'uncompress' is in zlib, I think, so you need to install that. http://php.net/zlib And use --with-zlib in your ./configure ./configure may just magically find it after you install it... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Stefano Baronio [EMAIL PROTECTED] Newsgroups: php.general To: Php-General [EMAIL PROTECTED] Sent: Friday, September 21, 2001 8:25 AM Subject: Compiling problems with PHP4.0.6+apache1.3.20+mysql3.23.39 These are the ./configure commands: apache ./configure --prefix=/opt/apache --enable-module=most --enab le-shared=max php ./configure --with-apache=/opt/apache_1.3.20 --enable-discar d-path --enab le-safe-mode --with-mysql=/opt/mysql --enable-sockets --with -vpopmail=/home/vpopmail The error appears when I recompile apache: ... -L../../modules/php4 -lmodphp4 -lpam -ldl -lvpopmail -lmys qlclient -lcrypt -lresolv -lm -ldl -lns l -lresolv -lm -lcrypt /opt/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x9a): undefined reference to `uncompress' /opt/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12a): undefined reference to `compress' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/opt/apache_1.3.20/src' make[1]: *** [build-std] Error 2 And also if I do not specify the mysql path.. Does someone can help me ? Thanks Stefano ___ Per i principianti: ricordatevi di usare Reply all per rispondere a tutti. Per tutti: ricordatevi che la pagina dalla quale potete gestire i parametri della vostra iscrizione e' (es: email = [EMAIL PROTECTED]) http://lists.torino.linux.it/cgi-bin/mailman/options/forum/p inco__at__pallino.it forum at lists.torino.linux.it http://lists.torino.linux.it/cgi-bin/mailman/listinfo/forum Stefano Baronio Cefin Systems Italia s.r.l. 88, c.so Duca degli Abruzzi 10129, Torino -ITALY- Tel:+39.011.504609 Fax:+39.011.504386 [EMAIL PROTECTED] www.sateltrack.com -- 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: Please please please help!
Here's a rule of thumb: Either: A) You can just append to the end of the file, or B) You should be using a database, not a file It's really that simple. As soon as you start asking about writing things into the middle of a file, or at the end of a line rather than the end of the file, you are on the wrong path. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Kyle Smith [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Sunday, September 16, 2001 2:11 AM Subject: Please please please help! In php is there any way to write to the end of a line in a text document so i can set out email addresses as a list on 1 line and the ; can be on the second... is this possible or has anyone a better way of doing this? any and all help would be appreciated (please send or cc messages to my address because im now going to watch a film... forgot what its called something about taking peoples brains out durning the night and replacing them with others!) Thank you! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- 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: Getting the value from a not posted form edit Vield.
You simply CANNOT get an INPUT to go through an A tag. If you want to keep the INPUT, you either need to use a SUBMIT or an INPUT TYPE=IMAGE. *OR* you can simply incorporate aFindOnInput into your A tag, if it's not something the user can edit: echo a href='../PhPScrips/ODiseaseFind.php4?aFindOnInput=, URLEncode($aFindOn), ' target=mainFrame name=diseaseSearch/A I'm assuming mainFrame is actually defined somewhere... It's not in the source you posted. Actually, using JavaScript, you *might* be able to use onClick in the A tag, and snag the data out of the INPUT, and pass that on... But relying on JavaScript to do that will lose some users. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Hvm [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 7:08 AM Subject: Getting the value from a not posted form edit Vield. Hi All, Has some one a solution for a non posted field to get the entered information out in to the session variables. My code: 1e The script adv_search_dis.php4 is to build the input field. ?php echo INPUT type='text' name=aFindOnInput value='$aFindOn' size=15 maxlength=15 style='font-family: Arial, Helvetica, sans-serif; color: black; background: #DD'/td; // Find the diseases via Link echo a href='../PhPScrips/0DiseaseFind.php4' target='mainFrame' name='disease'Search/a/FONT; ? 2e The script 0DiseaseFind.php4 is to get the variable $aFindOnInput from the adv_search_dis.php4 script in to the session variable and start a new script to build the result found in to the database. ?php $aFinfOn = Getenv($aFindOnInput); $aLetter = $aFinfOn; echo FRAMESET rows='50, *' FRAMEBORDER='NO' BORDER='0' FRAMESPACING='0'; echo FRAME NAME='topFrame' SRC='../PhPScrips/a.php4' FRAMEBORDER='NO' SCROLLING='NO' NORESIZE MARGINHEIGHT='22'; echo FRAME NAME='abc results' SRC='../PhPScrips/GetLSDNs.php4' FRAMEBORDER='NO' SCROLLING='AUTO' NORESIZE; ? Any help? Yours Hans. -- 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: Problem with ImageMagick and PHP on Windows
You don't have newlines in $cmd, do you??? Don't do that. You may also need to http://php.net/setenv to set up PATH so that identify.exe can find whatever filter/DLL/plug-in thingie it needs to find to do EPS files, identify.exe uses that kind of plug-in architecture. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jakob [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 9:14 AM Subject: Problem with ImageMagick and PHP on Windows Hi, I need to retrieve image properties from an EPS graphic. therefore I installed ImageMagick on Windows. This command works very well on the commandline: C:\C:\imagemagick\identify.exe -ping -format %m %f %b %w %h %x %y http://ws- tgljfix/upload/pusunybkvv.eps However, when executed through PHP (from inside an object): ... $cmdline = $this-_imagemagick_identify . sprintf($this-_imagemagick_identify_flags, $this-_imgfile); /* commandline is now: C:\imagemagick\identify.exe -ping -format \%m %f %b %w %h %x %y\ http://ws-tgljfix/upload/pusunybkvv.eps; */ $res = `$cmdline`; ... It doesn't generate any output, but appends the following error message to the Apache error log: [Fri Sep 21 15:13:30 2001] [error] [client xxx.xx.x.xx] identify: Postscript delegate failed [No such file or directory]. [Fri Sep 21 15:13:30 2001] [error] [client xxx.xx.x.xx] identify: Missing an image file name. How can I make this work through PHP on Windows? Thanks for your help. CC to my email appreciated, as I am on the digest list. Thanks, Jakob. Jakob - icq #69728667 -- 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: Track_errors function posibile a BUG or require an upadate
I'm guessing that maybe you are printing out $php_errormsg when there was no error?... Or are you forgetting to use global $php_errormsg inside your function?... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 11:08 AM Subject: Track_errors function posibile a BUG or require an upadate I have a serious problem with function track_errors in PHP4.0.6 Every time i want to use variable php_errormsg to catch the error, i receive this message: Warning: Undefined variable: php_errormsg in /usr/local/apache/htdocs/teste/c10/ex19.php on line 85 Query failed: error was '' I want to mention that: - no one errors in compilation process for PHP 4.0.6 and APACHE 1.3.20 - in my php.ini file, the track_error function is turned ON - My web server is compiled using DSO and is configured correct(to support PHP4 in httpd.conf and so on...). -i use REDHAT 6.2 updated with vanilla kernel 2.4.9 (with reiserfs installed and all problems regardind upgrade to a new major version of kernel, solved). -the script used to test function track_errors is absolutely correct. I said this, because i have the SECOND SYSTEM which is configured with the same options for Apache web server 1.3.20 AND PHP4.0.6, and this script WORKS == so in this case for my first system is exclus a problem regarding compilation AND ANY configuration options!!! -in rest, everything works fine. EXIST ONLY ONE DIFFERENCE BETWEEN THIS SYSTEMS: THE SECOND RUN UNDER REDHAT 7.1 (with native filesystem ext2fs) In conclusion, can anybody tell me what library is needed to be upgraded on my first system (wih REDHAT6.2) to enable track_error function and php_errormsg ? I want to mention that the same problem was with gd-library. In compilation process everithing was fine, but all features of this libraryy in PHP didn`t work till gd-library was updated with a (minimal) correct version. I tryed to find an explanation for my problem reading PHP documentation, but nowhere i can find a minimal information. A prompt reply would be appreciated. Alex -- 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: Sessions and include()...
I believe: include() gets parsed and executed on the server that is doing the include-ing, not the remote server... If that file has session_xxx() in it, you'll have started a session and whatnot on the local server. The remote server doesn't even have to have PHP on it at all, and its configuration is irrelevant, other than allowing you to read some file that happens to have PHP source code in it... Which, by the way, is a very scarey concept unless you have complete security control over the remote server... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Matthew Walker [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 11:48 AM Subject: Sessions and include()... What happens if you use include() to include a file from another server, and that file sets a session? Does the session get set for the domain of the wrapper page, or does it get set for the domain of the included page? -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001 -- 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: Select distinct error!
Whoops. Hit send too soon. It could just be that your table is too darn big for select distinct on the hardware you have... What's your disk space like on MySQL's data drive? df -h You'll need to figure out which partition holds MySQL's data directory, and see how much free space is there. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Sophokles Zafeiris [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 9:28 AM Subject: Select distinct error! Hi, I' m trying to execute a select distinct command on a table and I get the following error: ERROR 1022: Can't write, duplicate key in table 'pmall' My table is about 2,7 MBytes. Does anybody knows what's wrong? I use MySQL 3.23.40 on a Solaris 7 (intel) machine. Sofoklis -- 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: Running virtualhosts under different users
suExec will only work with PHP running as CGI, not a Module. You *CAN* have PHP in Apache twice with different extensions (.php and .phpcgi) and corresponding mime-type (application/x-httpd-php and application/x-httpd-phpcgi) and then the one site will have to use .phpcgi for its files, or you could even do a ForceType or somesuch in httpd.conf to make that site always use PHP CGI... Probably better to change the extension of the specific single *page* that needs suExec, for performance reasons. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Adam Plocher [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 11:19 AM Subject: Running virtualhosts under different users I realize this is more of an apache question, not a php question, but I thought you guys of all people, would be able to help me... I have an apache server setup, hosting a number of sites. I need one site to be ran under a different user so it can execute shell commands via system() under that user. Does anybody know how I can do this? I installed the suexec module for apache, and either it doesn't work the way I need it to, or I just misconfigured it. I'm baffled, any information would be greatly appreciated. Thanks -Adam -- 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] how to limit the files returned
Search DB2 docs for the term cursor I'm betting that's how DB2 does it. Not quite as easy to work with as LIMIT, but it'll work great. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Josep Raurell [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 5:09 AM Subject: [PHP] how to limit the files returned Hi. I want use in IBM DB2 the SELECT . LIMIT, as I can do in mySQL. How -- 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 extensions
I think you need to create a .so file, not .o and .la... There are some sample screen shots at http://conf.php.net in Rasmus' more recent talks -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: CristóVãO Dalla Costa [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 12:06 AM Subject: php extensions I'm trying to create an extension to PHP to provide an access interface to the proprietary database server my company uses. However, I cannot seem to suceed even at the simplest module, the one provided by ext_skel. I run buildconf, configure and compile the module, however dl() won't load the resulting .o, libmodule.la saying the file format is invalid. If I manually link the object file to a shared library, dl() will tell me the library is invalid. So I'm stuck. If someone could help me that would be gratly appreciated. I'm using FreeBSD 4.3 and the (patched) PHP sources from the ports tree. Thanks. Cristovao Dalla Costa -- 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: Sort Question
Where is your sort call?... sort($variable1); should do the trick... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jeff Oien [EMAIL PROTECTED] Newsgroups: php.general To: PHP [EMAIL PROTECTED] Sent: Friday, September 21, 2001 4:06 PM Subject: Sort Question Could someone tell me how to sort this? Each $variable1 is a 3,4 or 5 letter string that I would like sorted alphabetically. I assumed sort would do it but apparently it isn't the right type of array. Thanks. $variable1 = split(\n, $variable); Jeff Oien -- 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: how to access to session variable without a href ?
What is SID in graph.php? Cuz it should work... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jacques [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 8:35 PM Subject: how to access to session variable without a href ? I'm using php4 with session I have a session variable $TABLE[1]=100; $TABLE[2]=150; $TABLE[3]=200; My problem is I have a mysql database where I pull out data and put them into the the session variable With these data, I want to generate a graph. if I access to a different page (or link) through a href=page.php?SID=$SID I can see the content of $TABLE. No problem then. whereas if I use img src='graph.php?SID=$SID', I cannot have $TABLE content. it's empty. Does someone know a way a have the content within the page. Basically, I don't want to send the values of my data in the url such as img src='graph.php?SID=$SIDvalue1=100value1=150value1=200' I will appreciate any help. Thanks a lot, Jacques -- 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: OpenSSL and PHP
I think you want cURL ... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Nael Mohammad [EMAIL PROTECTED] Newsgroups: php.general To: PHP (E-mail) [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 1:05 PM Subject: OpenSSL and PHP How can I call on openssl scripts written server to be called for in php? The idea is to generate certs with open ssl and php! -- 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: Select distinct error!
I'm guessing the table is messed up... Back up your database, and try running those ISAM check utilities that MySQL provides to verify database integrity. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Sophokles Zafeiris [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 9:28 AM Subject: Select distinct error! Hi, I' m trying to execute a select distinct command on a table and I get the following error: ERROR 1022: Can't write, duplicate key in table 'pmall' My table is about 2,7 MBytes. Does anybody knows what's wrong? I use MySQL 3.23.40 on a Solaris 7 (intel) machine. Sofoklis -- 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: sistema de votação (language: portugues)
Try to ignore the 777/755 parts, and see what happens. 777 for is *DANGEROUS* anyway! -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Daniel andré janzen [EMAIL PROTECTED] Newsgroups: php.general To: Php-General [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 9:36 AM Subject: sistema de votação (language: portugues) Prezados colegas, Estou tentando instalar um sistema de votação, mas ele pede que as duas instruções abaixo sejam executadas. Onde devo inserir esses códigos no DOS ? 1. Upload all php files in ASCII-mode to your server. Give write permissions to the webserver on the configuration files. polldata 777 (drwxrwxrwx) (directory) config.inc.php 777 (-rwxrwxrwx) 2. Set the permissions for all other *.php files to mode 755 (-rwxr-xr-x). -- 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 email through mail function to a bad address
If it's a local email address that's bad, check the return value of http://php.net/mail itself. If it's a non-local address, Errors-to: and Reply-to: or whatever should work, depending on how well the email servers involved have implemented those specs. Show the source for how you did Reply-to: If it's a Win box, you need \r\n for a newline, not just \n. (\r\n is email spec, Un*x boxes support \n alone, Windows software often doesn't) -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Ruben [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 6:45 AM Subject: Sending email through mail function to a bad address Hi! When I send email through mail function to a bad address, I don't get an error message back, as I used to when using perl and sendmail. I've triyed using Return-Path and Errors-To headers with no results. -- 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 4.0.6 + Oracle9i + CPDF lib - large file problem (segmentation fault)
Wild Hypothesis: If all else fails, it may be possible to create a bunch of one-page PDF files, and then concatenate them with some external weapon... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Marcin Floryan [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 9:44 AM Subject: PHP 4.0.6 + Oracle9i + CPDF lib - large file problem (segmentation fault) Hello! I have a problem with my php script. I am creating a report in PDF based on data in the Oracle9i database. To access Oracle I use OCI and to create PDF files I use ClibPDF 2.02. The problem is with the ammount of data - there are currently some 2000 records and are expected to be some 12000. This means that the output report has now 100 pages and may have much more (up to, say, 500). With that ammount of data I naturally create the PDF as a file (not in memory). As a result the file seems to be created properly but the output from PHP script (which is simply the link to the created file) does not appear. The browser displays an error message and in my httpd error_log I get: [Wed Sep 19 14:12:25 2001] [notice] child pid 14090 exit signal Segmentation fault (11) Have any Ideas? What is the sorce of the problem. It doesn't appear if I limit the number of selected records. I have already done the following: * Set cpdf global limits to satisfy my needs: cpdf_global_set_document_limits(500,5,1,5,2); * Open pdf document as a file $PDF = cpdf_open(1,$file); * Finalize each page (what cost me not having the total number of pages printed on each page) cpdf_finalize_page ($GLOBALS[PDF], $pages-1); Any thing more I could do? Unfortunatelly there is no PHP error shown or logged. Best regards. Marcin Floryan [EMAIL PROTECTED] -- 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: exclamation points appearing from nowhere in the mail() function...
Does this happen only with PHP mail? Try running 'mail' or 'pine' or something and sending an email from the same box. What does your sendmail_path setting look like in php.ini? Un*x, Windoze, ? -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: MM ) [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 12:52 PM Subject: exclamation points appearing from nowhere in the mail() function... hey, could anyone help me with the mail function? in my script, its sintax is right... when i use the mail() function it works normaly... but when somebody receives the email sent by the mail(), some exclamation points appear from nowhere and the strangest thing is that the excamation points appear in diferent places everytime... could anyone tell me if there is some kind of bug in this mail() function??? thanx -- 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 + NT + Weird line break??
Is there a new-line at the end of the include-ed file? ?php... ? ^ / \ / \ Unless this is an unterminated line, you'll get messed up. Various editors will automatically add a new line for you. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Joseph Koenig [EMAIL PROTECTED] Newsgroups: php.general To: php forum [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 2:41 PM Subject: PHP + NT + Weird line break?? On NT, I have recently run into this problem. However, this is only as of today. When using include(); at the top of a page: ? include(); ? HTML... There is a line break before my page most of the time, but not always. Removing the include file and copy-pasting it's contents into the top of the HTML file gets rid of the space. However, I really need to be able to use includes without it breaking things. Has anyone run into such a problem? I tried deleting my included file and recreating it, just in case it was corrupt, or something odd like that. That didn't help at all. Has anyone ever seen such a strange thing happen? PHP 4.0.6 is installed on this server with IIS 4.0. Any ideas would be much appreciated. Thanks, Joe -- 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: ODBC connect w/ connectstr instead of DSN
I think it's not, last I heard... But I don't use ODBC a lot, so don't rely on me if somebody else says differently. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Emile Bosch [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 8:03 AM Subject: ODBC connect w/ connectstr instead of DSN Is it possible to connect with odbc_connect with an connectstring instead of an DSN? Warm regards, Emile Bosch -- 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: Merging Arrays
You left out http://php.net/sort if you want if alphabetical, but other than that, it looks like you're done... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jordan Elver [EMAIL PROTECTED] Newsgroups: php.general To: PHP General Mailing List [EMAIL PROTECTED] Sent: Friday, September 21, 2001 3:32 PM Subject: Merging Arrays Hi, I've got to different files of words. One on each line. What would be the best way to combine both into one file alphabetically? I thought about: $file1 = file('file1.txt'); $file2 = file('file2.txt'); $both = array_merge($file1, $file2); print_r($both); Any advice? Cheers, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- 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: how to password protect files
So put them in the restricted directory. Or, put them not in the web-tree AT ALL, and grab one of the umpteen download scripts in code archives linked from http://php.net/links.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Sagar N Chand [EMAIL PROTECTED] Newsgroups: php.general To: php [EMAIL PROTECTED] Sent: Friday, September 21, 2001 1:26 PM Subject: how to password protect files i want to restrict the access of some files to a single user only whose names and pwds are stored in mysql table and i'm authenticating them through my website. So what i'm looking for is that the files should not be downloaded when their urls are typed in the browsers. /sagar -- 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: htaccess
Read php.ini Search for engine I think you can only turn it off, not on, in .htaccess as your ISP wouldn't want you to be able to turn it on if they turned it off in the first place... Actually, the whole engine directive may be httpd.conf only, not .htaccess -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Php List [EMAIL PROTECTED] Newsgroups: php.general To: php [EMAIL PROTECTED] Sent: Friday, September 21, 2001 3:22 PM Subject: htaccess Hi, I heard it was possible to turn off/on php execution in a directory using the .htaccess file. Can some one tell me how to do that? Thanks. -- 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: Newbie needs help with file uploads
Can you upload the same files with regular FTP clients?... If you are having network problems, PHP can't do anything about it... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Paul Morin [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 7:38 PM Subject: Newbie needs help with file uploads I am having difficulty with supporting file uploads from remote domains. I currently am able to upload files if I am on my local area network to the apache server but when I try from another network, the brower times out and comes back with a cannot find server. I suspect either my apache/php configuration is wrong ( I looked at the php_safe directives in the php.ini file but could not see a problem there) or I have a problem with my firewall. I have port 80 open and can submit forms and the like but cannot seem to upload files. I am currently using apache 1.3.20 and php 4.0.6. Help anyone... -- 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: database on CD
I did this once by dumping everything into JavaScript arrays. I used PHP to generate the HTML/JavaScript files that were tested on Jaz cartridges in non-PHP computers, and then we burned CDs from that. This then only requires that you get the JavaScript right (which is not too tricky for just iterating through arrays), and that the user be willing to turn on JavaScript in the first place. Very low-tech, and very easy install, since they need nothing but a browser. YMMV. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Tim Olsen [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 1:18 PM Subject: database on CD Ok, Is this possible and how? I would like to put a mysql database on CD (or something like it). I then want to grab info from the database (maybe using a java applet) and use it to make xml, etc. I dont want to have to install anything on the computer that the CD is running on. Anyone seen something like this? Ideas? Thanks. -Tim _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- 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: using system() as a different user
You either need to use that sudo or suid thingie, or set up a PHP CGI (using a different extension and mime-type) wrapped in suExec (http://apache.org) I don't know anything more than that -- Just providing the road-signs to the right paths. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Adam Plocher [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 3:34 PM Subject: using system() as a different user I'm trying to use the system() function to execute a shell command, but the shell command that needs to be executed, needs to be executed as a different user (not the default 'nobody' user). Can somebody show me what I need to do, to accomplish this. Thanks -Adam -- 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 Codes needed
Try: header(Location: $HTTP_REFERER); I guess... But you may need to pass along whatever data you want to keep, or use sessions so there's only a SESSION_ID to pass along. http://php.net/session_start -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Wee Chua [EMAIL PROTECTED] Newsgroups: php.db,php.general To: PHP (E-mail) [EMAIL PROTECTED]; Php3 (E-mail) [EMAIL PROTECTED]; Php-Db (E-mail) [EMAIL PROTECTED]; Php-Db-Help (E-mail) [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 2:39 PM Subject: Php Codes needed Hi all, I know how to forward a page with PHP, but what if the page I want to forward is the previous page or last page. In javascript, the code is like javascript:historygo(-1). The reason why I want to go back to previous page is because I don't want to lose any information on previous page. Can anyone help? Thank you. Calvin Chua -- 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: Internal use of Mysql Connections
If you need multiple connections, you should store them in variables and keep track of them. The last connection is a convenience for single-connection users. Opening a MySQL connection is quite slow, so you really don't want to do it more than you have to. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Bob Silva [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 10:48 AM Subject: Internal use of Mysql Connections Just curious why mysql wouldnt restore the last known internal connection id. In the code below, I open a connection (without storing the connection id), use it, then open,use,close a different connection, this time using a connection id, but when I close it, the original internal connection id is history, the last query fails. It would make sense to me that php would restore the last known connection handle (if there is one) after I call mysql_close(); I know I could call mysql_connect again after the mysql_close call and that would restore it. Any ideas? Thanks, Bob mysql_connect(hostname, user, pass); $res = mysql_db_query(mlm,select count(*) from mlm_clients); echo mysql_num_rows($res).br; $conn = mysql_connect(hostname, user, pass); $res = mysql_db_query(rollcall,select count(*) from rollcall_students); echo mysql_num_rows($res).br; mysql_close($conn); FAILS -- $res = mysql_db_query(mlm,select count(*) from mlm_clients); echo mysql_num_rows($res).br; -- 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] PHP Boot Camp [Announcement]
Yes, I absolutely suck as a Graphic Designer. There will not be any pretty charts, graphics, or nifty layouts in the course. We're talking raw, bare-bones, text-edited HTML. No Dream-Weaver, no FrontPage, no Homesite, etc. Even the Flash and PDF stuff will be rude, crude, and very austere (at best). The point is to get something cool/dynamic so that a designer can do their magic to make it pretty. Or, rather, to teach Graphic Designers enough PHP to embody *both* sides of their brain and put all us geeks out of work :-) You are, however, correct, that I should have hired somebody to make the sites prettier. I wish I had the time/budget for that, but I don't at the moment. (I do kinda like the logo, which, of course, I out-sourced.) Oh, and the Universe of the l-i-e site changes each time you re-load :-) If you want to learn graphic design and layout, for sure, don't come. If you want to learn how to do PHP and you're in a hurry, it's probably worth your time/money. OTOH, if you have months to learn, start reading http://php.net, all the code archives, the 100+/day messages to this list like I have for the last 4 years, maybe a couple of the books I Tech-edited, pay a few thousand bucks to attend the various PHP Conferences I've been to, and you'll be set... I think it's worth $800 to have all that smushed into two days, but if I'm wrong, I reckon we'll see this endeavor fold. If I'm right, expect the low-budget site-design to improve rather quickly. :-) Perhaps a more representative sample of my sites with decent (albeit still *very* low-budget) design would be: http://uncommonground.com http://chatmusic.com http://nogenre.com (Technically, I did the design, but sometimes less is more...) http://voodookings.net http://snothead.com These also have rather extensive admin back-end sites since the cafe owner (first URL) and 200+ members (second URL) and the musicians (4th/5th) do all the data-entry and routine updates of content like menus and calendars for those sites. I'm a firm believer in self-serve dynamic web-sites for low-budget clients who can't afford a huge re-work every year or two like Corporate America. I mostly work for starving musicians who literally have to scrape for the $20/month hosting fees, and focus on content, not presentation. It's the music that matters to them. (I don't work with the Britney Spears' of the industry -- Not interested.) I'm actually targetting Graphic Designers who want to learn programming concepts and techniques, not the other way around. :-) Still, it seemed relevant to post here. Sorry I offended your sensibilities. PS Your blasphemy was only that I've been around for four or five years, and some people actually like me for some reason [shrug] :-) :-) :-) I'm certainly not offended. You have to work way harder than that to offend me. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Nowayman [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 5:45 PM Subject: Re: [PHP] PHP Boot Camp [Announcement] OOOH, touched a nerve... I'm sorry to have iblasphemed/i. I was just making an observation that the sites he produced were pretty lame. I was just suggesting that even if he was such a hot-shot PHP guru, he'd want to have some sort of niceness about the sites he produces. I am, honestly, just beginning with PHP but have rpogrammed in other languages for several years. But that doesn't make me a bad web site designer. I am helping to design an E-Commerce instruction class and intend on making PHP one of the main topics. IT will be similar to the BootCamp but over a number of weeks .vs 2-days. I guess I should have included a few hunderd :) so you folks wouldn't have taken it so seriously. Listen jackass, Richard is a PHP Programmer, not a Web Designer. Next time you feel like flaming back, do me a favor, shove both feet in your mouth first. -- 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 4.0.6/Apache 1.3.20/MySql 3.24.xx install
I believe 'compress' is in 'zlib' which you'll need to install first, and then use --with-zlib as you configure. (Actually, once you install it PHP will probably automagically find it... Better to just be sure, though.) -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Bill Brennick [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 4:41 PM Subject: PHP 4.0.6/Apache 1.3.20/MySql 3.24.xx install (I'm sorry if this is not getting posted in the correct place, but I'm not sure who/where to turn to...) I'm attempting to upgrade my SuSE Linux 7.2 (2.4.x) server to the new version of PHP 4.0.6, Apache 1.3.20, and the newest MySql... (From PHP 4.0.4pl1/Apache 1.3.19) Here are the (updated) instructions I've gotten from the PHP site: (The actual error I'm getting is further down this email) 1. gunzip apache_1.3.x.tar.gz 2. tar xvf apache_1.3.x.tar 3. gunzip php-x.x.x.tar.gz 4. tar xvf php-x.x.x.tar 5. cd apache_1.3.x 6. ./configure --prefix=/usr/local/httpd 7. cd ../php-x.x.x 8. ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.20 --enable-track-vars 9. make 10. make install 11. cd ../apache_1.3.20 12. ./configure --activate-module=src/modules/php4/libphp4.a *13. make (All the commands above execute with no problem... and the error I get, when getting to this stage, the errors are after this instruction list.) 14. make install 15. cd ../php-x.x.x 16. cp php.ini-dist /usr/local/lib/php.ini 17. Edit your httpd.conf or srm.conf file and add: AddType application/x-httpd-php .php 18. Use your normal procedure for restarting the Apache server. (You must stop and restart the server, not just cause the server to reload by use a HUP or USR1 signal.) = The error I get when attempting to install these apps: gcc -DLINUX=22 -I/root/php-4.0.6 -I/root/php-4.0.6/main -I/root/php-4.0.6/main -I/root/php-4.0.6/Zend -I/root/php-4.0.6/Zend -I/root/php-4.0.6/TSRM -I/root/php-4.0.6/TSRM -I/root/php-4.0.6 -DUSE_EXPA T -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`\ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/mysql/lib -rdynamic -L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -ldl -lmysqlclient -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lm -lcrypt /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x9a): undefined reference to `uncompress' /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12a): undefined reference to `compress' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/root/apache_1.3.20/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/root/apache_1.3.20' make: *** [build] Error 2 Any ideas/help/assistance would be greatly appreciated... Thank you... - Bill -- 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: How to download files to the server
http://php.net/fopen http://php.net/ftp -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Sagar N Chand [EMAIL PROTECTED] Newsgroups: php.general To: php [EMAIL PROTECTED] Sent: Friday, September 21, 2001 12:55 PM Subject: How to download files to the server hi everyone, I'm sorry that i'm not there on the list for a few days. Actually i'm working for a project in which i want to download some files to the server(remote) if the user inputs the url of the file name. hope u got me. i want to make my server to do the downloads for me so that i can later on download them to my idiot box. hope i'll get some help /sagar -- 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] How to find the browser type in HTML or PERL??
Hi, Anybody know how to code in HTML or perl to find the browser say if Iexplore { do this } else if Netscape { do this } Thanks and regards -Balaji -- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail from your records. - -- 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] Can someone explain this????
Dallas K. wrote: try this when u get a sec. You want to see something really weird? Try using 'MORON' instead of 'NYC'. It doesn't actually mean anything, but at least you'll have a signature you can start using if you're going to keep posting this tripe... My $0.02. -- ___ ____ _ Chris Hobbs / \ \/ / | | |/ ___\| __ \ Head Geek| (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster) | \ / | |__| |) | |__| | \/\/\/ \/|_/ http://www.silvervalley.k12.ca.us [EMAIL PROTECTED] -- 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: how to access to session variable without a href ?
Richard Lynch [EMAIL PROTECTED] wrote What is SID in graph.php? Cuz it should work... This is the main problem. Can find out why it's not working. SID is the session ID -- 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] Quickie
Hi, I am trying to redirect the user to another page after user authentication and using sessions. I was wondering how do you redirect to another page and then at the same use pass the session ID over to that other page. Thanks. Peter On Fri, 21 Sep 2001, [iso-8859-1] Stig-Ørjan Smelror wrote: If nothing is beeing sent to output on the page then use header() else you need to use javascript. Niklas meta http-equiv=Refresh; Content=0; URL=file.php if headers are sent. Use header( Location: file.php ), as noted earlier, if no headers are sent. -- 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] Large File Uploads, max file sizes and timeouts
Hey all, Two related questions. If I remember correctly this has been beaten to death before on the list, but here I am having issues with it, and ending up at somewhat of a loss still. I've built a media management system for a video company. It is built to handle large data assets, such as extended full size video files. As such, I've set the max upload file size in the php.ini file to around 3GB. I'm running into a bug where the system seems to think that the file upload is done at about 140MB on a 300MB file. Everything seems to close out fine within the system, acting like the file was originally 140MB and it uploaded just fine in the system. But it really is a 300MB file, I promise. Does this ring any bells with anyone? This is all over a local network, so I'm not inclined to believe that it is network lag triggering the connection to close... Second, can anyone point me in the right direction within the documentation to tell how to override the php.ini fiole on a particular page to allow a larger file upload size and a longer session timeout? Thanks all, Wes -- 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] Run or execute a php cript within a php cript.
Hi all. Is there a command to execute (run) from HTML or a php4 script a other php script without a mouse click (A HREF=xx.php). I have a lot of php scripts and need them to execute from a master php script. any help? Thanks all, Yours Hans.
Re: [PHP] Run or execute a php cript within a php cript.
On Fri, 21 Sep 2001 16:16, hvm wrote: Hi all. Is there a command to execute (run) from HTML or a php4 script a other php script without a mouse click (A HREF=xx.php). I have a lot of php scripts and need them to execute from a master php script. any help? Thanks all, Yours Hans. include() them? -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA This is my favorite chinese soup, Tom said wantonly. -- 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] creating ZIP files
On Friday 21 September 2001 00:31, Raphael Pirker wrote: this link refers to a function READING zip files, not actually creating one... There's an article on creating zip files with pure PHP (other libraries not needed) on zend's site. Actually this is the 1st article in a series of them. See: http://www.zend.com/zend/spotlight/creating-zip-files1.php -- Meir Kriheli -- 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] creating ZIP files
On Friday 21 September 2001 00:31, Raphael Pirker wrote: this link refers to a function READING zip files, not actually creating one... Sorry, forgot to send the link to the zip creation class, http://www.zend.com/codex.php?id=535single=1 Have fun -- Meir Kriheli -- 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] Run or execute a php cript within a php cript.
You can do something like ?php # Master script switch ($Something) { case 1: include 'xx1.php'; break; case 2: include 'xx2.php'; break; # ...and so on } # ...include any 'post-processing PHP stuff here, if necessary ? Any variables in the master script's scope are in the scope of the included files as well. If you want to actually REDIRECT the user to another page, you can use the header function to send a Location: header. See http://www.php.net/manual/en/control-structures.switch.php http://www.php.net/manual/en/function.include.php http://www.php.net/manual/en/function.header.php for more information. -steve At 8:46 AM +0200 9/21/01, hvm wrote: Hi all. Is there a command to execute (run) from HTML or a php4 script a other php script without a mouse click (A HREF=xx.php). I have a lot of php scripts and need them to execute from a master php script. any help? Thanks all, Yours Hans. -- + Open source questions? + | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- http://pgfsun.ucdavis.edu/open-source-tools.html ---+ -- 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]