Re: [PHP] Spot the difference?
I think the response to this will probably be equally informative and hilarious. - k - Original Message - From: Kyle Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 7:34 PM Subject: [PHP] Spot the difference? Whats the difference between ASP and PHP cause ASP has gotta have something good about it cause microsoft uses it! -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] Syntax
I'm almost positive there's no reason the first should work while the second fails...can you post what you've done...it's probably a typo... jack -Original Message- From: BRACK [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 11:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Syntax Hi, I'm in a process of doing site with MySQL database, and most of the code I plased in index.php3 (in one file) but I've got some problems with statements: I have: if (isset(...)) { ... } elseif (isset(...)) { ... } elseif (isset(...)) { ... } else { ... } IT DOESNT WORK! but when I do: if (isset(...)): ... elseif (isset(...)): ... elseif (isset(...)): ... else: ... endif; It works, please tell me what a difference? what do I do wrong that firs variant doesn't work? Yury -- 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] Phone Number #s Only?
actually, it removes everything from $string that is not in the range 0-9. when a ^ is the first character inside [], it negates whatever is inside. ereg_replace (^[0-9],,$string); would remove the first character from $string if it were in the range 0-9. on 8/2/01 6:39 PM, Martin Cameron at [EMAIL PROTECTED] wrote: Just as the solution to spray paint the m/b green made me smile, this did too. This will strip out all characters except numerals at the beginning, right! martin Cameron On Fri, 03 Aug 2001 11:52, you wrote: on 8/2/01 5:32 PM, Jeff Oien at [EMAIL PROTECTED] wrote: Is there a routine out there to strip all characters from a phone number except the numbers? I was going to write my own but figured there must already be one out there I can use. Thanks. Jeff Oien ereg_replace ([^0-9],,$string); -- mike cullerton -- mike cullerton -- 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] Installation error..
Quick question.. I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It compiles fine (I've even slimmid down the modules I'm compiling it with down to just apxs+mysql), but when I try to restart apache, it gives me the following error: Starting httpd: Syntax error on line 241 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /usr/lib/libimap.so: undefined symbol: SSL_CTX_set_tmp_rsa_callback Now, it mentions libimap.so, which is odd. after getting this error the first time I tried recompiling (after a make clean.. which should clear out the previous config, right?) Thoughts? Ryan -- 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] mail - sendmail
Hi! I wanted to use the full SMTP-Protocol including MAIL FROM: and RCPT TO:, and therefore I can't use mail(). I have written a perl-script, I call from PHP, that connects to the SMTP-server directly and this worked fine - until a server went down, and my ISP's-SMTP-Server told my perl-script, that the emailaddress is not routable. If the mail had been in a mailqueue, no problem - after a few hours it would be up again! So is there a way to combine these 2 features? 1. give the mail not directly to the SMTP-Server, but to the mailqueue 2. use the full SMTP-Protocol: for example: -- MAIL FROM: [EMAIL PROTECTED] RCPT TO: [EMAIL PROTECTED] From: Newsletter [EMAIL PROTECTED] To: Newsletter-List [EMAIL PROTECTED] Subject: blabla BODY ... -- thanks Michi -- Aufgepasst - jetzt viele 11 New WebHosting Pakete ohne Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung! http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a -- 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] New lists (was [PHP] Attitude of B van Ouwerkerk)
I think the problem with spreading out discussions that can be as broad as the PHP discussion is that you still tend to have people gravitate towards some of the more general or higher level discussion groups regardless of whether or not it should fall into the newbie category or not. This is for a couple of reasons: 1) Newbies may think that their newbie group is read mainly by newbies...so their question either might not get answered at all or will not receive the thorough answer they were hoping for. 2) Being a newbie, they might think that their question is worthy (for lack of a better term) of higher level discussion because, to them, it is a very difficult problem to solve. ...not to mention that questions would then be spammed across multiple mailing lists anyway. Either way, we would still need a PHP General Forum, so I am not convinced that creating more specialized mailing lists would accomplish much more than creating MORE mail traffic (from the spammed questions) and alienating people who used the more specialized lists because most everyone else is still mainly reading the General Forum. My 2 copper pieces worth. Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Darren Henderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 10:41 AM To: B. van Ouwerkerk Cc: [EMAIL PROTECTED] Subject:[PHP] New lists (was [PHP] Attitude of B van Ouwerkerk) On Tue, 31 Jul 2001, B. van Ouwerkerk wrote: There's nothing wrong with being a newbie.. the only newbie-problem I see/have is the lazy one.. ask ask ask ask without taking the time to read the manual or to do a search in the archive. Sure there are newbies who read the manual.. get some tutorials.. thats good. They should get all the support they need.. Unfortunately this kind of thing happens on all the mailing lists I've seen that are devoted to questions. The real problem here is that the list is simply too busy. I can do no more then skim the subject lines and then usually delete all of it unless something jumps out at me. It might be helpful if some new mailing lists were created, it wouldn't be a perfect solution but it would help if there were some degree of self selecting behavior possible. Currenty all questions go to php-general. If there were, say, a php-newuser and a php-questions list then perhaps php-general could be used for slightly higher level discussions. Actually its probably too late to save php-general, hard to get people to change. Maybe a new list that caters to a higher level of discussion, say php-authoring or the like? Just a thought. So much tends to get lost or over looked in high volume mailing lists. Darren Henderson [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] -- 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] Syntax
-Original Message- From: BRACK [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 10:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Syntax I'm in a process of doing site with MySQL database, and most of the code I plased in index.php3 (in one file) but I've got some problems with statements: I have: [stuff snipped] IT DOESNT WORK! In what way doesn't it work? Do you get an error message (if so, what does it say?) or just not the result you were expecting? --- Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full. LeTourneau University ||-- Henry Kissinger -- 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 + GD 2.0.1 problem.
Hello I am trying to install PHP 4.0.6 with GD 2+ support and I am receiving an error at `make` time. Can anyone suggest something to try and fix this problem? Thankyou :) I have installed the following with no path changes to the defaults: freetype-2.0.4.tar.gz gd-2.0.1.tar.gz jpegsrc.v6b.tar.gz* libpng-1.0.12.tar.gz pdflib-4.0.1.tar.gz zlib-1.1.3.tar.gz My configure string is: ./configure --with-apache=../apache_1.3.20 --enable-trans-sid --with-jpeg-dir=/usr/local --with-gd=/usr --with-png-dir=../libpng-1.0.12 --with-zlib-dir=../zlib-1.1.3 --with-pdflib --with-pgsql --enable-static-pdflib --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr/local/include/freetype2 This is the error at `make` time for PHP: Making all in gd make[2]: Entering directory `/tmp/www/php-4.0.6/ext/gd' make[3]: Entering directory `/tmp/www/php-4.0.6/ext/gd' gcc -I. -I/tmp/www/php-4.0.6/ext/gd -I/tmp/www/php-4.0.6/main -I/tmp/www/php-4.0.6 -I/tmp/www/apache_1.3.20/src/include -I/tmp/www/apache_1.3.20/src/os/unix -I/tmp/www/php-4.0.6/Zend -I/usr/local/include -I/usr/local/include/freetype2/freetype -I/tmp/www/php-4.0.6/ext/mysql/libmysql -I/tmp/www/php-4.0.6/ext/xml/expat/xmltok -I/tmp/www/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/www/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c gd.c touch gd.lo gd.c: In function `php_minit_gd': gd.c:296: `gdPie' undeclared (first use in this function) gd.c:296: (Each undeclared identifier is reported only once gd.c:296: for each function it appears in.) gd.c:297: `gdChord' undeclared (first use in this function) gd.c:298: `gdNoFill' undeclared (first use in this function) gd.c:299: `gdEdged' undeclared (first use in this function) gd.c: In function `php_if_imagecreatetruecolor': gd.c:577: warning: assignment makes pointer from integer without a cast make[3]: *** [gd.lo] Error 1 make[3]: Leaving directory `/tmp/www/php-4.0.6/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/www/php-4.0.6/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/www/php-4.0.6/ext' make: *** [all-recursive] Error 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]
Re: [PHP] How to destroy a $variable
Hello Gerard, Saturday, August 04, 2001, 7:34:06 AM, you wrote: GS Ok I have a form with a $PHP_SELF target, and I enter parts of the form GS when they enter information if something is wrong with their input. Now GS what I would like to do is destroy all the variables when the form is GS correct and posted, so that when the page comes back up again, I post a GS thank you message, and the form is blank. Just a thought. GS I tried setting strings to empty after data is submitted to the database GS like so $Age = ; etc at the bottom of the file. GS Bounce some ideas of me. Thanks you can destroy variable with unset function. Manual is on php.net page. Or simple do not send this variable to next page I hope it helps -- Best regards, Danielmailto:[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] most recent 5 rows
Hi all, I have a table with the column id, which is a unique number, auto-incremented, so the highest id is the most recent. I wish to retrieve the last five rows from the table (there will be hundreds of rows) and print some columns to the screen. I have this table: id,heading,text,user This is what I have, which retrieves ALL rows, in id order, from smallest to greatest: --- $db = mysql_connect(localhost, root, ); mysql_select_db(soundpimp,$db); $sql = SELECT * FROM news; $sql_result = mysql_query($sql); while ($sql_myrow = mysql_fetch_array($sql_result)) { echo $sql_myrow[id].BR.$sql_myrow[heading].BR.$sql_myrow[text].BR.$sql_myrow[user].BR---BR; } --- What I'd like to do is ONLY echo the highest 5 id's (the latest 5 rows), in REVERSE ORDER. How do I approch this? Do I find the highest ID, then do 5 SELECTS, counting back? Any code / ideas appreciated. Jsutin French -- 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] most recent 5 rows
Try this SQL Justin: $sql = SELECT * FROM news DESC LIMIT 5; Jeff -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 5:52 AM To: php Subject: [PHP] most recent 5 rows Hi all, I have a table with the column id, which is a unique number, auto-incremented, so the highest id is the most recent. I wish to retrieve the last five rows from the table (there will be hundreds of rows) and print some columns to the screen. I have this table: id,heading,text,user This is what I have, which retrieves ALL rows, in id order, from smallest to greatest: --- $db = mysql_connect(localhost, root, ); mysql_select_db(soundpimp,$db); $sql = SELECT * FROM news; $sql_result = mysql_query($sql); while ($sql_myrow = mysql_fetch_array($sql_result)) { echo $sql_myrow[id].BR.$sql_myrow[heading].BR.$sql_myrow[t ext].BR.$sql_myrow[user].BR---BR; } --- What I'd like to do is ONLY echo the highest 5 id's (the latest 5 rows), in REVERSE ORDER. How do I approch this? Do I find the highest ID, then do 5 SELECTS, counting back? Any code / ideas appreciated. Jsutin French -- 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] How to destroy a $variable
Gerard, Try using: unset($Age); Jeff -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 1:34 AM To: PHP Subject: [PHP] How to destroy a $variable Ok I have a form with a $PHP_SELF target, and I enter parts of the form when they enter information if something is wrong with their input. Now what I would like to do is destroy all the variables when the form is correct and posted, so that when the page comes back up again, I post a thank you message, and the form is blank. Just a thought. I tried setting strings to empty after data is submitted to the database like so $Age = ; etc at the bottom of the file. Bounce some ideas of me. 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 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] most recent 5 rows
Jeff Lewis wrote: Try this SQL Justin: $sql = SELECT * FROM news DESC LIMIT 5; Hrm, Won't that retrieve the FIRST 5 rows, not the LAST 5? Justin French -- 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] most recent 5 rows
It will give you the 5 HIGHEST values in your auto incremented field. If it was returneding the first 5, or the wrong 5, repace the DESC with ASC. Jeff -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 6:09 AM To: [EMAIL PROTECTED] Cc: php Subject: Re: [PHP] most recent 5 rows Jeff Lewis wrote: Try this SQL Justin: $sql = SELECT * FROM news DESC LIMIT 5; Hrm, Won't that retrieve the FIRST 5 rows, not the LAST 5? Justin French -- 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 suporrt IMAP in apache
when i make apache activate-module=src/modules/php4/libphp4.a it display this error /usr/src/bs/BUILD/imap-2000/c-client/auth_gss.c:344: undefined reference to `gss _release_buffer' /usr/src/bs/BUILD/imap-2000/c-client/auth_gss.c:349: undefined reference to `gss _release_name' /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In func tion `ssl_onceonlyinit': /usr/src/bs/BUILD/imap-2000/c-client/auth_ssl.c:166: undefined reference to `RAN D_seed' /usr/src/bs/BUILD/imap-2000/c-client/auth_ssl.c:181: undefined reference to `SSL how to fix it? -- 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] most recent 5 rows
Sorry, forgot the ORDER BY, here is what you're looking for: $sql = SELECT * FROM news ORDER BY id DESC LIMIT 5; In a list of numbers up to 10, this would return rows 6,7,8,9, and 10. Jeff www.hyrum.net www.xnull.com -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 7:06 AM To: [EMAIL PROTECTED] Cc: php Subject: RE: [PHP] most recent 5 rows It will give you the 5 HIGHEST values in your auto incremented field. If it was returneding the first 5, or the wrong 5, repace the DESC with ASC. Jeff -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 6:09 AM To: [EMAIL PROTECTED] Cc: php Subject: Re: [PHP] most recent 5 rows Jeff Lewis wrote: Try this SQL Justin: $sql = SELECT * FROM news DESC LIMIT 5; Hrm, Won't that retrieve the FIRST 5 rows, not the LAST 5? Justin French -- 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] most recent 5 rows
Jeff Lewis wrote: $sql = SELECT * FROM news ORDER BY id DESC LIMIT 5; many many many thanks for your (very quick) help!! Justin French -- 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] Postgresql + Sessions + Large objects.
I am having trouble with the following function working _with_ sessions. If I turn off my session checking function it enables you to download the file flawlessly, if sessions are turned on then Internet Explorer displays an error: Internet Explorer cannot download ...URL Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later. Is there a way I can download large objects from postgresql _with_ sessions? Thankyou. function retrieve_file($id) { global $dbconn1; $result1 = pg_exec ($dbconn1, select data, file_name from files where id='$id';); $image_oid = pg_result($result1 ,0, 'data'); $file_name = pg_result($result1 ,0, 'file_name'); header (Content-disposition: filename=\$file_name\); header(Content-type: application/download); pg_exec ($dbconn1, begin transaction;); $image_handle = pg_loopen ($dbconn1, $image_oid, 'r'); pg_loreadall ($image_handle); pg_loclose ($image_handle); pg_exec ($dbconn1, commit transaction;); } } -- 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] Need Help Compiling PHP with Apache modules
At 04.08.2001 01:33, Matthew Tyler wrote: Hey all, I have a server with Apache running on it, and it currently uses PHP3 (installed with the OS). I am trying to upgrade to PHP4, but from the php.net documentation it appears that I have to reinstall Apache in order to have access to the PHP4 apache modules, something I would NOT like to do. Is there any way around this? - Matt If you've compiled apache with support for static modules, there aren't any way around it, if you've got support for dynamic modules (DSO) you should be able to compile a new module and make apache load it. However I'd suspect that the OS you didn't disclose probably compiled staticly as it's the easiest way of compiling apache+php, since it's php3 that came by default you might want to upgrade to a newer apache version too. -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then. -- 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: Installation error..
hi Ryan, did u make clean on your php 2? i can't recall, u must delete a file config.*** (i can't recall the extension...) b4 u reconfigure... refer in the php install.txt hope it works :) regards, James Ryan Christensen wrote: Quick question.. I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It compiles fine (I've even slimmid down the modules I'm compiling it with down to just apxs+mysql), but when I try to restart apache, it gives me the following error: Starting httpd: Syntax error on line 241 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /usr/lib/libimap.so: undefined symbol: SSL_CTX_set_tmp_rsa_callback Now, it mentions libimap.so, which is odd. after getting this error the first time I tried recompiling (after a make clean.. which should clear out the previous config, right?) Thoughts? Ryan -- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- 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 destroy a $variable
hi gerald, ok.. u could assign values to form input... eg: $myname= ; input type=text name=name value=?=$myname? ok.. for the thank you? simply do a if syntax to check if it's been submited... and put in a alert for ur javascript.. eg: ? ... //do your statement to put in the values ? html... ? if($submited) { ? script alert(thank you for your submittion... ) ; /script ? } ? hope it works :) Gerard Samuel wrote: Ok I have a form with a $PHP_SELF target, and I enter parts of the form when they enter information if something is wrong with their input. Now what I would like to do is destroy all the variables when the form is correct and posted, so that when the page comes back up again, I post a thank you message, and the form is blank. Just a thought. I tried setting strings to empty after data is submitted to the database like so $Age = ; etc at the bottom of the file. Bounce some ideas of me. Thanks -- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- 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] shtml or php ??
This brings me back to an original problem I had before, I do have the instruction in my conf file to load php as a module but I get the following error:- [warn] loaded DSO c:/usr/php/sapi/php4apache.dll uses plain apache 1.3 api, this module might crash under EAPI! (please recompile it with -DEAPI) I have downloaded this binary from php.net I have tried 4.0.5 and 4.0.6 and I get this error on both. Any suggestions Dave - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 4:01 AM Subject: Re: [PHP] shtml or php ?? Can anyone help me with this, I am using apache and assume that this virtual command should work, am I best to leave it in shtml or should I change to php as I am using php more and more ??? Please can somebody help me There's using Apache with PHP as a Module, and there's using Apache with PHP as a CGI. If your httpd.conf file has something like: AddModule php LoadModule php Handler application/x-httpd-php php (and not with comment character # in front of them) you are using Module Conversely, if you httpd.conf file has stuff like: Action application/x-httpd-php php Alias php /path/to/php in it, you are using CGI. Actually, I'm betting ?php phpinfo();? will tell you if you are using PHP as Module or CGI. If it's CGI, virtual will not work, as Rasmus said. -- 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 -- 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] weird behavior with a form
on 8/3/01 6:43 PM, Ben Bleything at [EMAIL PROTECTED] wrote: Whacky. It works now = i seem to remember a thread not that long ago (maybe it was on a different list) similar to this. the conclusion was that netscape and ie (and i'm sure others as well) handle this differently, and one of them (i can't remember which) handles it differently if there is more than one button on the page. i think if the browser is ie and there is only one submit button, hitting enter also returns submit='whatever'. otherwise, no guarantees. it appears that hiddens are the way to go -- mike cullerton -- 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] include path syntax for php.ini under windows
Hi, I would like to know the correct syntax of include_path for php.ini under windows. I have tried to set the include path as C:\home\main\require but it doesn't work. Thanks in advance Mark -- 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] file downloads
Why does this code produce a page cannot be displayed error? ?php mysql_connect(localhost,username,password); mysql_select_db(database); $query = SELECT file_path from photos where photos_id=$photos_id; $result = @mysql_query($query); $row = mysql_fetch_row($result); $path = $row[0]; $parts = split(/,$path); $file_name = $parts[count($parts)-1]; header(Content-Type: application/download\n); header(Content-Disposition: attachment; filename=$file_name); header(Content-Transfer-Encoding: binary); $fn=fopen($path , r); fpassthru($fn); ? Data Driven Design 1506 Tuscaloosa Ave Holly Hil, FL 32117 http://www.datadrivendesign.com http://www.rossidesigns.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] file downloads
Why does this code produce a page cannot be displayed error? Your query is probably wrong. Comment out the header stuff and add some error checking to your query. ?php mysql_connect(localhost,username,password); mysql_select_db(database); $query = SELECT file_path from photos where photos_id=$photos_id; $result = @mysql_query($query); The quotes are useless there. Change the above to: $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_row($result); $path = $row[0]; $parts = split(/,$path); Use explode() instead. No sense wasting a regex on a trivial delimiter like that. $file_name = $parts[count($parts)-1]; uh.. basename() would do the same thing, so you can get rid of this line and also the split/explode actually. header(Content-Type: application/download\n); header(Content-Disposition: attachment; filename=$file_name); header(Content-Transfer-Encoding: binary); $fn=fopen($path , r); fpassthru($fn); readfile($path); would replace those two lines. -Rasmus -- 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] New lists (was [PHP] Attitude of B van Ouwerkerk)
Similarly the FAQ is easy to find, and I do believe the words support suggest where help may be found. Actually my suggestion would be to take a page from way the Python lists are and call it tutor or PHP-tutor. Joel -- 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: Installation error..
Yup, I did. I actually later found out that all I had to do was remove the old libphp4.so file, THEN recompile. Thanks anyways, Ryan -Original Message- From: James Tan [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 5:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Installation error.. hi Ryan, did u make clean on your php 2? i can't recall, u must delete a file config.*** (i can't recall the extension...) b4 u reconfigure... refer in the php install.txt hope it works :) regards, James Ryan Christensen wrote: Quick question.. I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It compiles fine (I've even slimmid down the modules I'm compiling it with down to just apxs+mysql), but when I try to restart apache, it gives me the following error: Starting httpd: Syntax error on line 241 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /usr/lib/libimap.so: undefined symbol: SSL_CTX_set_tmp_rsa_callback Now, it mentions libimap.so, which is odd. after getting this error the first time I tried recompiling (after a make clean.. which should clear out the previous config, right?) Thoughts? Ryan -- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- 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] file downloads
I made the changes you suggested and it's still a no go. I'm sure of the query because print img src=\$path\; Will display the image I'm trying to download. This is my environment. PHP Version 3.0.16 Apache/1.3.3 Cobalt safe_mode 1 ?php mysql_connect(localhost,user,pass); mysql_select_db(db); $query = SELECT file_path from photos where photos_id=$photos_id; $result = @mysql_query($query); $row = mysql_fetch_row($result); $path = $row[0]; $file_name = basename($path); //print img src=\$path\; //print div align=\center\$file_name/div; header(Content-Type: application/download\n); header(Content-Disposition: attachment; filename=$file_name); header(Content-Transfer-Encoding: binary); readfile($path); ? This should work shouldn't it? - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 04, 2001 11:57 AM Subject: Re: [PHP] file downloads Why does this code produce a page cannot be displayed error? -- 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] file downloads
I made the changes you suggested and it's still a no go. I'm sure of the query because print img src=\$path\; Will display the image I'm trying to download. How does that make the SQL query valid? You didn't implement the mysql_query() error checking I suggested. That's likely what is causing you problems. -Rasmus -- 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] Converting HTTP_POST_VARS to HTTP_SESSION_VARS !
Hi, I'm using sessions and everytime my script is called, I want to add all elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS so that I can access them throughout the session. I cant seem to get this working. This is what I have: session_start(); while ( list($name,$value) = each($HTTP_POST_VARS)) { if (is_array($value)) { for($x=0;$xcount($value);$x++) { session_register('$name'); $$name = $value[$x]; } } else { session_register('$name'); $$name = $value; } } Can anyone help me on this ? Also what is register_globals ?? Should I have this on or off ? 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]
Re: [PHP] when i start apache have some problem
Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /var/www/libexec/libphp4.so into server: undefined symbol: gss_mech krb5 /var/www/bin/apachectl start: httpd could not be started any one can help? Add --with-kerberos to your PHP configure line -Rasmus -- 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] file downloads
I usually put or die(mysql_error()) and make it work before I put in the @, that's been done already. This will display the image $result = @mysql_query($query); $row = mysql_fetch_row($result); $path = $row[0]; print img src=\$path\; What I want is to display a 'save as' box to download the image whose file path is stored in the variable $path. Am I doing something wrong in the header section? The print statement would be commented out if I used this. $file_path = basename($path); header(Content-Type: application/download\n); header(Content-Disposition: attachment; filename=$file_name); header(Content-Transfer-Encoding: binary); readfile($path); Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 04, 2001 1:01 PM Subject: Re: [PHP] file downloads I made the changes you suggested and it's still a no go. I'm sure of the query because print img src=\$path\; Will display the image I'm trying to download. How does that make the SQL query valid? You didn't implement the mysql_query() error checking I suggested. That's likely what is causing you problems. -Rasmus -- 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] when i start apache have some problem
the same problem occur Rasmus Lerdorf [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /var/www/libexec/libphp4.so into server: undefined symbol: gss_mech krb5 /var/www/bin/apachectl start: httpd could not be started any one can help? Add --with-kerberos to your PHP configure line -Rasmus -- 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] file downloads
Hi I'm very news in php Anyone knows how can i submit sample HTML form by php and write into database ??? I have anly one registration form username, password, First name last_name, and phone I need only small samples and all will be ok .. thanks in advance = - Original Message - From: Data Driven Design [EMAIL PROTECTED] To: Rasmus Lerdorf [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 04, 2001 10:27 PM Subject: Re: [PHP] file downloads I usually put or die(mysql_error()) and make it work before I put in the @, that's been done already. This will display the image $result = @mysql_query($query); $row = mysql_fetch_row($result); $path = $row[0]; print img src=\$path\; What I want is to display a 'save as' box to download the image whose file path is stored in the variable $path. Am I doing something wrong in the header section? The print statement would be commented out if I used this. $file_path = basename($path); header(Content-Type: application/download\n); header(Content-Disposition: attachment; filename=$file_name); header(Content-Transfer-Encoding: binary); readfile($path); Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Data Driven Design [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 04, 2001 1:01 PM Subject: Re: [PHP] file downloads I made the changes you suggested and it's still a no go. I'm sure of the query because print img src=\$path\; Will display the image I'm trying to download. How does that make the SQL query valid? You didn't implement the mysql_query() error checking I suggested. That's likely what is causing you problems. -Rasmus -- 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] most recent 5 rows
Or, you could do two steps 1) retrieve the last inserted ID, with mysql_last_inserted_ID (or something like that). 2) then, all records with id(s) greater then the_last_id_number minus five. something like $most_recent = select mysql_last_id(); select * from TABLE where id '$most_recent - 5'; ...or something to that effect. There's probably a more efficient way to do it, but this guarantees the most recent five. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com The world is waiting, are you ready? -+___+- On Sat, 4 Aug 2001, Jeff Lewis wrote: It will give you the 5 HIGHEST values in your auto incremented field. If it was returneding the first 5, or the wrong 5, repace the DESC with ASC. Jeff -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 6:09 AM To: [EMAIL PROTECTED] Cc: php Subject: Re: [PHP] most recent 5 rows Jeff Lewis wrote: Try this SQL Justin: $sql = SELECT * FROM news DESC LIMIT 5; Hrm, Won't that retrieve the FIRST 5 rows, not the LAST 5? Justin French -- 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] making php problem
In file included from libmysql.c:10: global.h:240: warning: redefinition of `uint' /usr/include/sys/types.h:146: warning: `uint' previously declared here global.h:241: warning: redefinition of `ushort' /usr/include/sys/types.h:145: warning: `ushort' previously declared here In file included from libmysql.c:13: m_string.h:180: parse error before `__extension__' m_string.h:180: parse error before `' make[4]: *** [libmysql.lo] Error 1 make[4]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/local/php-4.0.6/ext/mysql' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/php-4.0.6/ext'. anyone can help? -- 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: making php problem
this is the main probelm mysql_version.h:15:41: warning: MYSQL_UNIX_ADDR redefined Spear [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In file included from libmysql.c:10: global.h:240: warning: redefinition of `uint' /usr/include/sys/types.h:146: warning: `uint' previously declared here global.h:241: warning: redefinition of `ushort' /usr/include/sys/types.h:145: warning: `ushort' previously declared here In file included from libmysql.c:13: m_string.h:180: parse error before `__extension__' m_string.h:180: parse error before `' make[4]: *** [libmysql.lo] Error 1 make[4]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/usr/local/php-4.0.6/ext/mysql/libmysql' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/local/php-4.0.6/ext/mysql' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/php-4.0.6/ext'. anyone can help? -- 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: Converting HTTP_POST_VARS to HTTP_SESSION_VARS !
Peter Dowie [EMAIL PROTECTED] wrote in message 001201c11d08$1b3fe280$021ea8c0@petexp">news:001201c11d08$1b3fe280$021ea8c0@petexp... Hi, I'm using sessions and everytime my script is called, I want to add all elements of $HTTP_POST_VARS to my $HTTP_SESSION_VARS so that I can access them throughout the session. I cant seem to get this working. This is what I have: Why you don't use HTTP_SESSION_VARS??? You don't need to use ression_register/unregister() with $HTTP_SESSION_VARS. Do foreach($HTTP_POST_VARS as $k = $v) { $HTTP_SESSIN_VARS[$k] = $v; } OR $HTTP_SESSION_VARS = array_merge($HTTP_SESSION_VARS, $HTTP_POST_VARS); Important: This kind of code is VERY dangarous unless you check all $HTTP_POST_VARS and you are sure safe to do that. Also what is register_globals ?? Should I have this on or off ? off. unless you must use app assumes its on, and cannot fix it. Much easier to write secure code with register_globals=off. (And a little bit faster) Regards -- Yasuo Ohgaki -- 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: Postgresql + Sessions + Large objects.
Do you have session db and your data db on the same db? If you do, most likely, transaction is started in session open handler. You cannot nest transaction and lo_read/open etc fails. If you have situation like this, create dedicated database for session db. Regards, -- Yasuo Ohgaki Speedboy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am having trouble with the following function working _with_ sessions. If I turn off my session checking function it enables you to download the file flawlessly, if sessions are turned on then Internet Explorer displays an error: Internet Explorer cannot download ...URL Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later. Is there a way I can download large objects from postgresql _with_ sessions? Thankyou. function retrieve_file($id) { global $dbconn1; $result1 = pg_exec ($dbconn1, select data, file_name from files where id='$id';); $image_oid = pg_result($result1 ,0, 'data'); $file_name = pg_result($result1 ,0, 'file_name'); header (Content-disposition: filename=\$file_name\); header(Content-type: application/download); pg_exec ($dbconn1, begin transaction;); $image_handle = pg_loopen ($dbconn1, $image_oid, 'r'); pg_loreadall ($image_handle); pg_loclose ($image_handle); pg_exec ($dbconn1, commit transaction;); } } -- 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] Q: Hiding Folder Directories from public while still...
Hmm so lets say in my images folder for the site if I just put an index somewhere in there it prevents access? Man that would be so cool. I really don't need some big security thing happening with .htaccess etc, that would be way overkill thanks, Marcus Jon Yaggie wrote: i dont know if this is elagant but ti works. but a fake index.htmlin your directory for browsers to default to. . .. - Original Message - From: Marcus James Christian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 12:30 AM Subject: [PHP] Q: Hiding Folder Directories from public while still... Hello, How does one do the trick of hiding a folder's directory listing from a public browser? i.e. Lets say the full address is www.mysite.com/php/magicphppage.php Well I still need some other files to read and write to magicphppage.php I don't want the public to be able to simply type www.mysite.com/php/ and have all of my php files show up on a funky virtual directory. Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly presents the music of CHROMATICUS at http://chromaticus.com and http://artists.mp3s.com/artists/275/chromaticus.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] -- Marcus James Christian -- UNLIMITED Multimedia Internet Design http://mjchristianunlimited.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] shtml or php ??
Dave.O [EMAIL PROTECTED] wrote in message 000401c11ce9$c1ebd360$c0147ad5@tinypc">news:000401c11ce9$c1ebd360$c0147ad5@tinypc... This brings me back to an original problem I had before, I do have the instruction in my conf file to load php as a module but I get the following error:- [warn] loaded DSO c:/usr/php/sapi/php4apache.dll uses plain apache 1.3 api, this module might crash under EAPI! (please recompile it with -DEAPI) I have downloaded this binary from php.net I have tried 4.0.5 and 4.0.6 and I get this error on both. Any suggestions This warning say, your apache is compiled with mod_ssl and uses EAPI, but your php does not compiled with EAPI. So it can crush. I guess you need build windows binary by yourself. (If you cannot find binary compiled with -DEAPI) -- Yasuo Ohgaki -- 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] Matching Question
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) wrote: After a sign up page I want to check if someone is already entered into a database. The First Name, Last Name and Address all have to match exactly in order for it to be considered a duplicate. However this isn't doing what I want. I get the Error produced if the Address matches but the name doesn't. Not sure what I'm doing wrong. Thanks. Jeff Oien you're going about this the wrong way. try it like this: $result=mysql_query(select * from table where first='$first' and last='$last' and address='$address'); if(mysql_num_rows($result)){ // error code } you want to keep the result sets that mysql gives back as small as possible because they take up tons of resources. while ($row = mysql_fetch_array($result)) { $First_Name = $row['First_Name']; $Last_Name = $row['Last_Name']; $Address = $row['Address']; if (($M_First_Name || $F_First_Name == $First_Name) ($M_Last_Name || $F_Last_Name == $Last_Name) ($Address1 == $Address)) { echo htmlheadtitleError/title/head body bgcolor=\#FF\ text=\#00\ link=\#ff\ vlink=\#660099\ h3Error/h3 etc... -- 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] -- 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] Q: Hiding Folder Directories from public while still...
Actually it wouldn't be overkill or big...its really a small quick file to setup...if you just put the index file in there, someone won't be able to get a directory listing, but they'll still have access to your files...if you put the htaccess file in there, they're secure... jack -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 04, 2001 4:05 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Q: Hiding Folder Directories from public while still... Hmm so lets say in my images folder for the site if I just put an index somewhere in there it prevents access? Man that would be so cool. I really don't need some big security thing happening with .htaccess etc, that would be way overkill thanks, Marcus Jon Yaggie wrote: i dont know if this is elagant but ti works. but a fake index.htmlin your directory for browsers to default to. . .. - Original Message - From: Marcus James Christian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 12:30 AM Subject: [PHP] Q: Hiding Folder Directories from public while still... Hello, How does one do the trick of hiding a folder's directory listing from a public browser? i.e. Lets say the full address is www.mysite.com/php/magicphppage.php Well I still need some other files to read and write to magicphppage.php I don't want the public to be able to simply type www.mysite.com/php/ and have all of my php files show up on a funky virtual directory. Thanks, Marcus -- Marcus James Christian - UNLIMITED - Multimedia Internet Design http://mjchristianunlimited.com Proudly presents the music of CHROMATICUS at http://chromaticus.com and http://artists.mp3s.com/artists/275/chromaticus.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] -- Marcus James Christian -- UNLIMITED Multimedia Internet Design http://mjchristianunlimited.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 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] Potential bug?
I've just discovered a weird quirk in PHP. I'd first like to check if it is a known bug/weird feature/something else already known. I've not yet tested it much, except I see it doesn't happen on every script, but either of the two results are quite strange to me. Suituation: file myscript.php exists, directory myscript/ does not. If I browse to http://myhost/myscript.php all is well. But http://myhost/myscript/ does return something, where I expect a '404 not found'. Sometimes it just returns myscript.php. BUT sometimes it returns the PHP source (minus PHP comments). Aslo, http://myhost/myscript/anything/anything/bla.bla.bla returns the same. I was running PHP 4.0.4pl1 on RedHat Linux 6.2, kernel 2.4.6. I upgraded to PHP 4.0.6 and still see this behavior. P.S. For the curious I discovered this because a personal site I have uses directory/admin.php for site admin, while another site I am developing at work uses directory/admin/ and I typed the wrong one at home :) -- 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] Update a SESSION_VAR on form submit
hello, I have a Session variable $Stage which I want to update (increment by 1)when my form submit button is pressed. FORM Method=\post\ Action=\$PHP_SELF\ how can I update this session variable ? I dont want to update it at the start of the script, because if the Reload button is pressed, it will keep updating it and it will mess up the script Please can someone help me out. 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]
RE: [PHP] Matching Question
Thank you. That worked and I'm sure will have made it work a lot faster later on when there is a lot of data in the database. Jeff Oien On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) wrote: After a sign up page I want to check if someone is already entered into a database. The First Name, Last Name and Address all have to match exactly in order for it to be considered a duplicate. However this isn't doing what I want. I get the Error produced if the Address matches but the name doesn't. Not sure what I'm doing wrong. Thanks. Jeff Oien you're going about this the wrong way. try it like this: $result=mysql_query(select * from table where first='$first' and last='$last' and address='$address'); if(mysql_num_rows($result)){ // error code } you want to keep the result sets that mysql gives back as small as possible because they take up tons of resources. while ($row = mysql_fetch_array($result)) { $First_Name = $row['First_Name']; $Last_Name = $row['Last_Name']; $Address = $row['Address']; if (($M_First_Name || $F_First_Name == $First_Name) ($M_Last_Name || $F_Last_Name == $Last_Name) ($Address1 == $Address)) { echo htmlheadtitleError/title/head body bgcolor=\#FF\ text=\#00\ link=\#ff\ vlink=\#660099\ h3Error/h3 etc... -- 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] -- 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] Potential bug?
I have the same problem running Win98, Apache 1.3.17 and PHP 4.0.6 as an Apache Module. It doesn't return the source, but it's strange... -Original Message- From: Anthony Lieuallen [mailto:[EMAIL PROTECTED]] Sent: 22 July 2001 16:30 To: [EMAIL PROTECTED] Subject: [PHP] Potential bug? I've just discovered a weird quirk in PHP. I'd first like to check if it is a known bug/weird feature/something else already known. I've not yet tested it much, except I see it doesn't happen on every script, but either of the two results are quite strange to me. Suituation: file myscript.php exists, directory myscript/ does not. If I browse to http://myhost/myscript.php all is well. But http://myhost/myscript/ does return something, where I expect a '404 not found'. Sometimes it just returns myscript.php. BUT sometimes it returns the PHP source (minus PHP comments). Aslo, http://myhost/myscript/anything/anything/bla.bla.bla returns the same. I was running PHP 4.0.4pl1 on RedHat Linux 6.2, kernel 2.4.6. I upgraded to PHP 4.0.6 and still see this behavior. P.S. For the curious I discovered this because a personal site I have uses directory/admin.php for site admin, while another site I am developing at work uses directory/admin/ and I typed the wrong one at home :) -- 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] chmod
I have the following question : I have a directory on my ftp server and i want give access to this directory by group (the name of the group is test) % ls % /ftp/test % chmod 070 test how can i do this Greetings, Manu -- 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] Is there a setInterval function in PHP?
Hi, I couldn't find a similar function in the official documentation. Does anyone know if there is a setInterval function in PHP? i.e., making repeated calls to a function separated by a given time period. Is such a function even possible in PHP? One way to do it, without a PHP function, is to use a HTML meta tag, but then the whole script would be called, not just a specific function. That's what I have been using, but it's a poor man's way of doing things, not very elegant. I thought a function such as setInterval would be the way to go, and it would be an esay way to stream data. Zlutarch _ 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]
Re: [PHP] Is there a setInterval function in PHP?
Yes, see http://php.net/declare -Rasmus On Sat, 4 Aug 2001, Zlutarch G. wrote: Hi, I couldn't find a similar function in the official documentation. Does anyone know if there is a setInterval function in PHP? i.e., making repeated calls to a function separated by a given time period. Is such a function even possible in PHP? One way to do it, without a PHP function, is to use a HTML meta tag, but then the whole script would be called, not just a specific function. That's what I have been using, but it's a poor man's way of doing things, not very elegant. I thought a function such as setInterval would be the way to go, and it would be an esay way to stream data. Zlutarch _ 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] php_gd.dll for windows, please help me....
Sveiki, PHP, Does anyone here has good php_gd.dll file that supports GD in windows.I can't download it from http://php.weblogs.com/php_gd , because it is damaged or smth. If you have, please email to me with this file. I need it very very much... Thank you 2001.08.05, sekmadienis Marius Pertravèius iCQ: #125733984 [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] LE INTERESARA
OFERTA PARA MEXICO: [EMAIL PROTECTED] 1.8.2001.Publicidad/Enseñanza a Distancia Hola que tal: El motivo de la presente carta es informarte de la posibilidad de poder realizar algún curso a distancia de tu interés, cursos relacionados con tu trabajo inquietudes y ocio.ect.El conocimiento es el mayor patrimonio de que podemos disponer. Nos dedicamos desde 1996.a impartir cursos a distancia disponemos de una amplia variedad de cursos sencillos para poder seguirlos comodamente desde cualquier parte del mundo y a unos precios muy competitivos. NET Redes y Sistemas Sistemas Servers Diseño Web BUSSINES Gestion Comercial y Marketing Relaciones Publicas Recursos Humanos Comercio Exterior Direccion Comercial Gestión Medio Ambiental SALUD SUPERACION PERSONAL - Psicoterapia Psicologia Practica Nutrí terapia y Salud Monitor Yoga Tai-Chi Hipnoterapia Quiromasaje y Reflexoterapia Aromaterapia Cosmética Natural Hierbas Medicinales -- CURSOS BECADOS: Los cursos son de 200.horas lectivas el precio standar por curso es de 35.000.pts(Despues de beca)España a plazos.Iberoamerica 150.usa dolar aplazados.(Despues de beca) El Diploma: Técnico Especialista El tiempo aproximado por curso dependiendo de los conocimientos en areas similares de que se disponga,es entre 2-6.meses.aprox. Si desean que les ampliemos información pueden enviar un e-mail les contestaremos con la mayor brevedad y les indicaremos nuestro espacio web que se encuentra en reformas.No lo pienses mas y envia un e-mail y recibiras todo tipo de informes y detalles muy en breve. Envie e-mail: [EMAIL PROTECTED] Sin otra que rogarte me envies un e-mail si estas interesado/a Te enviamos un saludo. Si desea no recibir mas e-mail. remove/mail [EMAIL PROTECTED] [EMAIL PROTECTED] Jose Garceran Broker-COFOR Gestion Integral 1.SL C/Constitucion.34 03310-Alicante España -- -- 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 + GD 2.0.1
Has anyone got PHP successfully compiled and using GD 2.0.1? If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks. Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE Same as mine. LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm Same as mine. Don't install the lib anywhere, just leave them in the gd-2.0.1 directory. [root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. 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]
Re: [PHP] PHP + GD 2.0.1
Has anyone got PHP successfully compiled and using GD 2.0.1? If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks. Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE Same as mine. LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm Same as mine. Don't install the lib anywhere, just leave them in the gd-2.0.1 directory. [root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. You left out your PHP configure line -Rasmus -- 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] Call to undefined function: imap_open()
I just tried to use the IMAP functions on my website. When I run the first script, I get this error: Call to undefined function: imap_open() Does this mean the IMAP functions are not installed? Damiano -- 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 + GD 2.0.1
Build gd-2.0.1 with these two lines in your GD2 Makefile: CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE Same as mine. LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm Same as mine. Don't install the lib anywhere, just leave them in the gd-2.0.1 directory. [root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. You left out your PHP configure line I was trying to make gd-2.0.1, are you saying don't make GD at all, just go straight to configuring php? In that case here's my php configure line: ./configure --with-apache=../apache_1.3.20 --enable-trans-sid --with-jpeg-dir=/usr/local --with-gd=/tmp/www/gd-2.0.1 --with-tiff-dir=../tiffv3.5.6-beta --with-png-dir=../libpng-1.0.12 --with-zlib-dir=../zlib-1.1.3 --with-pdflib --with-pgsql --enable-static-pdflib --enable-ftp --enable-gd-native-tt --enable-gd-imgstrttf --with-freetype-dir=/usr/local/include/freetype2 checking for freetype(2)... yes checking whether to include include FreeType 1.x support... no checking whether to include T1lib support... no configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/include/freetype2 [root@b php-4.0.6] ~ Thankyou. -- 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 + GD 2.0.1
[root@b gd-2.0.1] ~ make test gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include gdtest.o -o gdtest -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib libgd.a -lpng -lz -ljpeg -lfreetype -lm gcc: libgd.a: No such file or directory make: *** [gdtest] Error 1 [root@b gd-2.0.1] ~ It's obviously a simple error but I have no idea about C. You left out your PHP configure line I was trying to make gd-2.0.1, are you saying don't make GD at all, just go straight to configuring php? Ah, no, type: make libgd.a in your gd dir. -Rasmus -- 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 + GD 2.0.1
It's obviously a simple error but I have no idea about C. You left out your PHP configure line I was trying to make gd-2.0.1, are you saying don't make GD at all, just go straight to configuring php? Ah, no, type: make libgd.a in your gd dir. Ok, making libgd.a worked and php configure worked. Make php failed: Making all in gd make[2]: Entering directory `/tmp/www/php-4.0.6/ext/gd' make[3]: Entering directory `/tmp/www/php-4.0.6/ext/gd' gcc -I. -I/tmp/www/php-4.0.6/ext/gd -I/tmp/www/php-4.0.6/main -I/tmp/www/php-4.0.6 -I/tmp/www/apache_1.3.20/src/include -I/tmp/www/apache_1.3.20/src/os/unix -I/tmp/www/php-4.0.6/Zend -I/usr/local/include -I/usr/local/include/freetype2/freetype -I/tmp/www/gd-2.0.1/ -I/tmp/www/php-4.0.6/ext/mysql/libmysql -I/tmp/www/php-4.0.6/ext/xml/expat/xmltok -I/tmp/www/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/www/php-4.0.6/TSRM -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c gd.c touch gd.lo gd.c: In function `php_minit_gd': gd.c:296: `gdPie' undeclared (first use in this function) gd.c:296: (Each undeclared identifier is reported only once gd.c:296: for each function it appears in.) gd.c:297: `gdChord' undeclared (first use in this function) gd.c:298: `gdNoFill' undeclared (first use in this function) gd.c:299: `gdEdged' undeclared (first use in this function) gd.c: In function `php_if_imagecreatetruecolor': gd.c:577: warning: assignment makes pointer from integer without a cast make[3]: *** [gd.lo] Error 1 make[3]: Leaving directory `/tmp/www/php-4.0.6/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/www/php-4.0.6/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/www/php-4.0.6/ext' make: *** [all-recursive] Error 1 [root@b php-4.0.6] ~ 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]
Re: [PHP] PHP + GD 2.0.1
Make php failed: Make sure you don't have gd-1.x header files in /usr/local/include -Rasmus -- 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] Compiling PHP + GD 2.0.1 Documentation
Make php failed: Make sure you don't have gd-1.x header files in /usr/local/include Excellent! That worked. For everyone else, my documentation for installing: Apache with GD, zlib, png, jpg, tiff, pdf support is at: http://database.sourceforge.net/Installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html Thankyou. -- 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] Matching Question
ok, if i understand you correctly, you're taking data from a form and want to check that it is not already in the database, right? then why don't you include the submitted vars in the query like this: $sql = SELECT First_Name, Last_Name, Address FROM $table_name WHERE (Family_Position = 'H' or Family_Position = 'S') and first_name = '$form_First_Name' and last_name='$form_last_name' and address='$form_address'; $result = @mysql_query($sql,$connection) or die( Couldn't execute query.); $number_of_matches = mysql_num_rows($result); if ($number_of_matches 0) {print bla bla; else{ //submitted info is ok and can be inserted } please correct me if i missunderstood your question regards At 21:52 04/08/01, you wrote: Here is the query part: $sql = SELECT First_Name, Last_Name, Address FROM $table_name WHERE Family_Position = 'H' or Family_Position = 'S'; //$result = @mysql_query($sql,$connection) or die( Couldn't execute query.); if(! $result = mysql_query($sql,$connection)) { print(ERROR .mysql_errno().: .mysql_error().br\n$sqlbr\n); } whta does your query look like? At 19:40 04/08/01, you wrote: After a sign up page I want to check if someone is already entered into a database. The First Name, Last Name and Address all have to match exactly in order for it to be considered a duplicate. However this isn't doing what I want. I get the Error produced if the Address matches but the name doesn't. Not sure what I'm doing wrong. Thanks. Jeff Oien while ($row = mysql_fetch_array($result)) { $First_Name = $row['First_Name']; $Last_Name = $row['Last_Name']; $Address = $row['Address']; if (($M_First_Name || $F_First_Name == $First_Name) ($M_Last_Name || $F_Last_Name == $Last_Name) ($Address1 == $Address)) { echo htmlheadtitleError/title/head body bgcolor=\#FF\ text=\#00\ link=\#ff\ vlink=\#660099\ h3Error/h3 etc... -- 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] newest PHP compile won't see pg_connect()
On linux 6.1, I've installed fresh builds of postgres 6.0.4, apache 1.3.20, php 4.0.6. Get postgresql 7.1.2, make and install. Configure php --with-pgsql ./configure --help Will show you all available configure options. -- 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] md5 on different platform
Hello, excuse my ignorance on that field, but if I use md5 in a java server page (jsp), can I decrypt it in php ? Is the implemantation of md5 the same on both language ? py -- 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] md5 on different platform
excuse my ignorance on that field, but if I use md5 in a java server page (jsp), can I decrypt it in php ? Is the implemantation of md5 the same on both language ? Sure, but you don't decrypt md5. You md5 again and compare the two md5's -Rasmus -- 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] Free PHP/MySQL Web Hosting ?
Hello ! Is there any free PHP/MySQL Web Hosting without add ? ... or ... at least , I could have the choice to choose where to place their banner on my pages ? Thanks... Arcad. -- 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] md5 on different platform
Sorry, I meant compare and I wrote decrypt, We will: - encrypt in jsp - compare in php I am curious about the should you wrote py - Original Message - From: Joe Conway [EMAIL PROTECTED] To: pierre-yves [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, August 04, 2001 10:03 PM Subject: Re: [PHP] md5 on different platform excuse my ignorance on that field, but if I use md5 in a java server page (jsp), can I decrypt it in php ? Is the implemantation of md5 the same on both language ? Well . . . the implementations *should* produce the same result, but md5 is a *one-way* hash function -- i.e. you cannot decrypt it at all. -- 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] Free PHP/MySQL Web Hosting ?
Sveiki, Arcadius, 2001 m. rugpjûèio 5 d.(sekmadienis), 14:26:56, jûs raðëte: AA Hello ! AA Is there any free PHP/MySQL Web Hosting without add ? ... or ... at least , AA I could have the choice to choose where to place their banner on my pages AA ? AA Thanks... AA Arcad. www.f2s.com 2001.08.05, sekmadienis Marius Pertravèius [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] Link request.
Hello! Let me introduce myself. My name is Mr. Rajesh Tavakari from www.website-promotion-ranking-services.com, and you can contact me at [EMAIL PROTECTED] or [EMAIL PROTECTED] I enjoyed visiting your interesting site at http://www.e-gineer.com/articles/php-hackers-paradise-revisited.phtml. You may know that having high link popularity can help you in the search engine ranking. Link popularity is defined as the number of web sites that link back to your site. Links from other pages are one of the main sources of web traffic, and they are becoming increasingly important for other reasons. There have been studies that show the majority of traffic to web sites comes from people clicking on links from other sites. The Search engines are also beginning to use the number (and in some cases quality) of links to your pages to assist in their ranking of your site. For these reasons and others, you need to have links to your site from other sites if you want to increase traffic to your site. I am looking forward to add your URL to our website at http://www.website-promotion-ranking-services.com/links.htm. To add your website link to our website please visit : http://www.website-promotion-ranking-services.com/links.htm. It would be kind of you, if you could link back to me, thus increasing link popularity of both sites. As soon as you add our link on your website, You Get 3 Bonus : 1. Submission of your website in the appropriate categories. Our SEO Experts will submit your individual link pages in appropriate category every 15 days for 1 month. 2. Basic Directory Listing with 6 month Classified Ad* with Sunny Side Business Directory 3. FREE ! Three Ultimate E-books on Web promotion and Optimization worth 125 $. Best Regards, Rajesh. V. Tavakari [ Specialist in Web Promotion Web Optimization ] CEO - WebPromotionGuru.com - Website-Promotion-Ranking-Services.com. Address : B-I/3, P T Quarters. Kavalbyrasandra. R.T Nagar Post. BANGALORE - 32. State : Karnataka. INDIA. E-Mail : [EMAIL PROTECTED] E-Mail : [EMAIL PROTECTED] URL : www.Website-Promotion-Ranking-Services.com URL : www.WebPromotionGuru.com Phone : ( 00 91 ) 9845089687. Contact Us Online at : ICQ : 19511229. Yahoo Messenger : [EMAIL PROTECTED] MSN : [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] web hosting
Since I am tired of switching from one web host to another because of the limitations that are imposed... does anybody know of a host provider that supports PHP MySQL and that, differently from my current host, will also allow me to upload files and install the IMAP functions? Damiano -- 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 on RH-7.1
I am trying to compile and install php-4.0.6 on a redhat-7.1 linux-2.4.3 server using the following for configure: ./configure --prefix=/usr --with-apxs=/usr/sbin/ apxs --enable-versioning --with-mysql --enable-track-vars --with-xml --disable- debug --enable-pic --enable-shared --enable-inline-optimization --with-regex=sy stem --with-gettext --with-gd --with-png --with-ttf --with-zlib --with-db2 --wi th-db3 --with-gdbm --with-openssl --with-layout=GNU --enable-debugger --enable- magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysv shm --enable-yp --enable-ftp --enable-wddx --without-oracle --without-oci8 and when i make i receive the following error: /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c ./zend_execute.c ./zend_execute.c: In function `execute': ./zend_execute.c:2360: Internal compiler error in ggc_recalculate_in_use_p, at ggc-page.c:880 Please submit a full bug report. See URL:http://bugzilla.redhat.com/bugzilla/ for instructions. make[1]: *** [zend_execute.lo] Error 1 make[1]: Leaving directory `/root/temp/php-4.0.6/Zend' make: *** [all-recursive] Error 1 this is after i patched php with redhat's patches...funny thing is that without the --with-apxs option, it makes just fine, but i wanted to build a DSO so that i could drop it in to apache-1.3.20 as a loadable module, so i added that option and did a make clean and reconfigured, and thats when i received the error. I didnt see the error without the --with-apxs option Has anyone got any ideas on how to correct this? Any assistance would be appreciated. -- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900Have you been counted? http://counter.li.org PGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72 .Escape the 'Gates' of Hell `:::' ... .. ::: * `::.::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :::::. ::: .::. .:: ::. `. .:' ::. ...:::.::' ... -- S/MIME Cryptographic Signature
[PHP] cvs make error: php_output.h
Making all in main make: don't know how to make ../php/php4-current/php4/ext/standard/php_output.h. Stop __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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] Re: include_once vs require_once
Perhaps the manual should be made to reflect this since, my understanding came from the online version of the manual. Sterling Philip Olson wrote: Yes, this is essentially true. Zeev posted this to the list awhile ago, see the following : http://www.faqts.com/knowledge_base/view.phtml/aid/6/ Essentially the difference now is the type of error that's produced, one being a warning (include) while the other being FATAL! (require). Regards, Philip On Tue, 31 Jul 2001, CC Zona wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Mike Cullerton) wrote: so the difference is _when_ they happen. ok, another question then. if my script includes the line require_once($file); and $file contains the line include_once($other_file); what happens then? Rasmus has stated before that there is no longer any difference between include_once() vs. require_once(), or include() vs. require(). I forget which version that became the case, but if you are using a current version of PHP the above two lines should produce identical results. -- CC -- 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] Does PHP scripts always finish, or are they halted if the web page loading is halted?
I've made some scripts that let a user work on a MySQL database via the web. When a web user clicks a button in an HTML form, a new page is loaded which runs PHP scripts which in turn manipulate the database accourding to the users's request. However I'm worried that the scripts may halt if the web user halts the loading of the web page which is running the scripts, leaving the database corrupt due to incomplete manipulation. I'm also worried the same could happen if the web page is not successfully loaded due to network problems. So to the real question: Does PHP always finish off the execution of scripts, or does that depend on whether the web page is indeed successfully loaded? -- 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 ?
how can i to make my page as a browser for another pages i mean i want as a proxy how can i do that __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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]