Re: [PHP] Databases and HTML forms

2001-04-20 Thread Godd
Just Kinda code it up -- 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] Headers sent by - need to clear screen - help me

2001-04-20 Thread Plutarck
Short answer: no. If you can't just put your error information before you write information to the screen you will need to use the ob_* family of functions. Clean the information you've printed so far, then just print out the error information to the screen. -- Plutarck Should be working on so

Re: [PHP] SOMEONE SHOOT ME!!!

2001-04-20 Thread Christopher Riordan
First off get php4.04p1 second you will need to hack the module code in apache before running configure. in src/modules/php4. edit the libphp4.modules file. and change c-client4 to c-client then rebuild apache. you should be all set then. for some reason c-client4 doesn't work. I just figured it o

Re: [PHP] PERL vs. PHP

2001-04-20 Thread Plutarck
"Basically", yes. And I do mean "basically". The languages have the same "basic" sort of syntax and you can make a perl script look almost exactly like a PHP script and vice-versa. However that means _only_ that it is easier to learn one after learning the other. The paradox is that Perl gurus

Re: [PHP] Sessions and header-redirect

2001-04-20 Thread Plutarck
Nope, you can use header() after starting a session. This works fine, even if a session is already started: session_start(); header("Location: http://www.fbi.gov"); Creapy, but it works. You see, when a "header" is sent, it's not actually "sent". PHP collects all headers and fills out a head

Re: [PHP] SOMEONE SHOOT ME!!!

2001-04-20 Thread Christopher Riordan
Just a quick addemdum. run the configure normaly on php4, then edit the config.status and config_var.mk file. then you won't need to edit the files anywhere else. make the same change as I mentioned before the c-client4 to c-client. then run make make install then compile apache and you should be

Re: [PHP] This should be simple...

2001-04-20 Thread Plutarck
RTFM ...there, feel better now? *always happy to help* :) -- Plutarck Should be working on something... ...but forgot what it was. "Joseph Koenig" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Right on. That did it. I probably should have been RTFM'e

Re: [PHP] RE: Site Sesions: Online/off...

2001-04-20 Thread Plutarck
If you want to make it easy on yourself, convert it into a timestamp (unix preferably). Then all you have to do is: $dif = time() - $last_access_time; if ($dif > 3600) { echo "The user has been inactive for more than an hour."; } That's if you want to make it easy on yourself. If you're a m

Re: [PHP] PHPSESSID in session

2001-04-20 Thread Plutarck
If the user's browser does not support the session cookie like it should, PHP will automatically "rewrite" your url's and add "?PHPSESSID=". So you don't need to force PHPSESSID to be sent, but you could always just add ?PHPSESSID= onto all the urls you want. It's just really ugly that way. --

[PHP] PHP Books

2001-04-20 Thread Michael C
Hello Could I get a recommendation on some good starting PHP books? Thanks -- Later Days:) Michael Clesceri ""Perfection (in design) is achieved not when there is nothing more to add, but rather when there is nothing more to take away."

RE: [PHP] PHP Books

2001-04-20 Thread Jeff Oien
Here are some recommendations: http://www.webdesigns1.com/php/books.php Jeff Oien > Hello > Could I get a recommendation on some good starting PHP books? > Thanks > > -- > Later Days:) > Michael Clesceri > > ""Perfection (in design) is achieved not when there is nothing > more to add, but ra

[PHP] Problems with pattern matching

2001-04-20 Thread Alec Smith
I'm attempting to get something like the following to match anything from aol.com so that I can handle AOL users differently than users from other ISPs: $hostname = gethostbyaddr($REMOTE_ADDR); if (eregi(".*\.aol\.com.*", $hostname)) { echo $hostname; echo "AOHell u

[PHP-CVS] What is CVS?

2001-04-20 Thread Michael C
Forgive me for asking again What is CVS? I am really new to PHP and just want to make sure I am looking at the right list Thanks for your information in advance -- Later Days:) Michael Clesceri ""Perfection (in design) is achieved not when there is nothing more to add, but rather when there is

[PHP] imap_fetchbody

2001-04-20 Thread Martin Oust
documentation: string imap_fetchbody (int imap_stream, int msg_number, string part_number) what is the different part_numbers i should and could use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] imap_fetchbody

2001-04-20 Thread Martin Oust
documentation: string imap_fetchbody (int imap_stream, int msg_number, string part_number) what is the different part_numbers i should and could use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP] Problems with pattern matching

2001-04-20 Thread Jack Dempsey
i got the echo of "AOHell user" to appear with this... i'd look at what remote addr returns and check and see if that works with your regexp... jack $hostname = "www.aol.com"; if (eregi(".*\.aol\.com.*", $hostname)) { echo $hostname; echo "AOHell user"; } els

Re: [PHP-CVS] What is CVS?

2001-04-20 Thread Markus Fischer
On Fri, Apr 20, 2001 at 05:16:50PM -0700, Michael C wrote : > What is CVS? Right at the top of http://cvs.php.net/viewcvs.cgi/ there're a bunch of links about CVS. HTH, Markus -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] I'm a moron. So?

2001-04-20 Thread Dddogbruce \(@home.com\)
Alrighty. I'm baack! Anyways, I seem to be having stupid little problems, al of which are driving me insane. I'll feel really stupid when you tell me the problem. A friend told me something about "seeding" for random() but I didn't find anything on that. This is the HTML section... Horse R

Re: [PHP] PHP Books

2001-04-20 Thread Dddogbruce \(@home.com\)
PHP4 - written by Chris Ullman (and some others. It has 5 pictures on the front...) -- 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] TheCasino.com: You have been removed!

2001-04-20 Thread support
http://www.TheCasino.com: Better Than Life! (tm) Since 1999 - Now With 100% "Buffer Bonuses" On All Deposits!! Dear [EMAIL PROTECTED], This email is to confirm that we have "removed" you from our mailing list - per your request! You will no longer be considered for TheCasino.com Monhtly Pr

RE: [PHP] TheCasino.com: You have been removed!

2001-04-20 Thread Jack Dempsey
aww shucks, now i won't be a millionaire. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 10:57 PM To: [EMAIL PROTECTED] Subject: [PHP] TheCasino.com: You have been removed! http://www.TheCasino.com: Better Than Life! (tm) Sin

[PHP] MySQL, PHP low-load problems

2001-04-20 Thread Kees Hoekzema
Hi all, Live is strange sometimes, and so is this error we have here. I have a large forum (more then 300.000 pageviews a day) running. We are using php-4.04pl1 (with the Zend/zend_list.c file patched) and we are using MySQL 3.23.36-log. We are using the following piece of code to connect to th

[PHP] mysql_free_result

2001-04-20 Thread Randy Johnson
Does php release the memory used by the result set when it is done executing? if so why should I use mysql_free_result() Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Weekly Salary for PHP/MySQL or PostgreSQL Programmer

2001-04-20 Thread Jason Lotito
Question: A PHP/MySQL or PostgreSQL Programmer. How much per week (In american money) is a good price range for a small but promising startup to pay said programmer per week? Understanding everyone has their own opinions on this matter, if you could include the salary and the reasoning why? Also

[PHP] I don't get it ... suddenly my script doesn't work ...

2001-04-20 Thread Tim Thorburn
Hi, I have a PHP script that I wrote several months ago which allows a user to enter information into a MySQL database through a basic web form - it worked very well. However, since then I had a system crash - luckily I made a backup of the script days before the crash. My problem is, that n

Re: [PHP] MySQL, PHP low-load problems

2001-04-20 Thread Rasmus Lerdorf
> We are using the following piece of code to connect to the dbase: > > if(!mysql_pconnect($db[$no]["host"],$db[$no]["user"],$db[$no]["pass"])){ > if(!mysql_connect($db[$no]["host"],$db[$no]["user"],$db[$no]["pass"])){ > die(error(55)); Could you explain why you are connecting like that? F

Re: [PHP] mysql_free_result

2001-04-20 Thread Rasmus Lerdorf
> Does php release the memory used by the result set when it is done > executing? Correct > if so why should I use mysql_free_result() In case you are making multiple queries within the same script and want to keep your runtime memory usage low. -Rasmus -- PHP General Mailing List (http://w

RE: [PHP] mysql_free_result

2001-04-20 Thread Randy Johnson
Does the Mysql_free_result slow down the script at all? Randy -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 8:49 PM To: Randy Johnson Cc: Php-General Subject: Re: [PHP] mysql_free_result > Does php release the memory used by the result

Re: [PHP] I'm a moron. So?

2001-04-20 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Dddogbruce \(@home.com\)") wrote: > A friend told me something about > "seeding" for random() but I didn't find anything on that. Umm, where did you look? 'Cuz the manual page on rand()--the function which you are using to generate the rando

RE: [PHP] mysql_free_result

2001-04-20 Thread Rasmus Lerdorf
> Does the Mysql_free_result slow down the script at all? Sure, calling the function will be slower than not calling it. But not significantly since the same operation will happen automatically. The difference being that you have the option of controlling exactly when you want it to happen. -R

Re: [PHP] fflush() function

2001-04-20 Thread Yasuo Ohgaki
It will do the same thing as standard C lib. How about take a look at C reference? Basically, all output is buffered by OS. It's just tells write to file if data, associated with the file pointer/descriptor, is in buffer. You will see why this function is useful, if you 'tail -f' while writing d

Re: [PHP] Uninstalling PHP

2001-04-20 Thread Yasuo Ohgaki
You are supposed to uninstall(delete) files by yourself. Locations of files are depend on your config. Take a look at your Makefile(s). Regards, -- Yasuo Ohgaki "Maron Kristófersson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! I want to uninstall P

Re: [PHP] Advanced Help Needed

2001-04-20 Thread Yasuo Ohgaki
Try latest CVS snapshot, you might find what's wrong. (Make sure you set error_reporting to E_ALL) http://snaps.php.net Regards, -- Yasuo Ohgaki ""Marc Davenport"" <[EMAIL PROTECTED]> wrote in message 002201c0c91e$d4f96590$5d3e04d8@marcd">news:002201c0c91e$d4f96590$5d3e04d8@marcd... I need some

Re: [PHP] Mail form error in script

2001-04-20 Thread Yasuo Ohgaki
is depreciated under current PHP. See NEWS file in source. Regards, -- Yasuo Ohgaki ""John Silverio"" <[EMAIL PROTECTED]> wrote in message 9bne0n$pug$[EMAIL PROTECTED]">news:9bne0n$pug$[EMAIL PROTECTED]... > Whenever I try to mail a form I receive this message: > > Warning: is no longer suppor

[PHP] Output graphic or other download file to client's browser

2001-04-20 Thread Jason Lam
Hello! I am trying to develop a web site where some files and images are private, I am using session to auth. user. I would like to know how I can send some local files to the client so that others without the access to the web site will not be able to download. How would I stream the local

Re: [PHP] PERL vs. PHP

2001-04-20 Thread Jason Caldwell
Ramus Lerdof, Are you the Ramus that created PHP? If so, just want to say -- THANKS! -- PHP is the coolest thing since Delphi !!! Really Love it! Jason "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > PHP was started as a suite of perl p

[PHP-CVS] cvs: CVSROOT / gen_acl_file.m4

2001-04-20 Thread Thies C. Arntzen
thies Fri Apr 20 23:48:43 2001 EDT Modified files: /CVSROOTgen_acl_file.m4 Log: give asautins,dbenson karma for oci8 and docs Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.150 CVSROOT/gen_acl_file.m4:1.151 --- CVSROOT/gen_acl_file.m4

[PHP] Recursive Childs

2001-04-20 Thread Natasha
Hiya, This is something that I'm not able to figure out : I am building something like a Yahoo! directry. I wanted to display a "new" image infront of a category, like Yahoo! does. But I want to show this even if the main category may not have any new link, but a category in that might have,

<    1   2