[PHP] Re: Just Curious

2002-12-08 Thread rolf vreijdenberger
outlook express 6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dumb session cookie question?

2002-12-08 Thread Douglas Douglas
Hi all. I'm sorry about the dumb question, but I've just expend two hours trying to find the damn cookie and I couldn't :( I've read that when you use sessions and configure the php.ini with session.use_cookies = 1, your sessions will always send cookies to the client (if the client accept the cook

[PHP] Re: Just Curious

2002-12-08 Thread Thomas Seifert
Mail/News-Client Sylpheed On Sat, 7 Dec 2002 23:31:57 -0500 [EMAIL PROTECTED] (Conbud) wrote: > I was just curious, but what program or website do you all use to view and > reply to the newsgroups with ? > > Lee > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Dumb session cookie question?

2002-12-08 Thread Justin French
if you are allowing cookies on your browser, and the sessions are working (as they appear to be), then there WILL be a cookie somewhere on your browsing computer. However, I think you're a little confused about what you'll find... you'll just find a cookie named PHPSESSID, with a value of

Re: [PHP] Just Curious

2002-12-08 Thread Davy Obdam
Mozilla 1.2.1 ;-) conbud wrote: I was just curious, but what program or website do you all use to view and reply to the newsgroups with ? Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Snoopy Class

2002-12-08 Thread DL Neil
(pardon the pun) Please recommend a Snoopy tutorial, =dn PS Google has not been my friend! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Domxml and problem

2002-12-08 Thread Winthux
I have the newest foxserv on my comp. When i'm trying to open a xml document with function $doc = domxml_open_file("test.xml"); It appears an error like this: Warning: warning: in C:\FoxServ\www\nTrophy_usr_auth\nowy.php on line 3 Warning: failed to load external entity "menu.xml" in C:\FoxServ\

Re: [PHP] Just Curious

2002-12-08 Thread Henrik Malmberg
Also using Mozilla Davy Obdam wrote: Mozilla 1.2.1 ;-) conbud wrote: > I was just curious, but what program or website do you all use to view > and > reply to the newsgroups with ? > > Lee > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Dumb session cookie question?

2002-12-08 Thread Robert Pruitt
IE traditionally puts cookies in a folder named Cookies. Do a search for 'cookies' -- see what you come up with. on 08/12/02 10:17 PM, Douglas Douglas ([EMAIL PROTECTED]) wrote: Hi all. I'm sorry about the dumb question, but I've just expend two hours trying to find the damn cookie and I cou

Re: [PHP] save file from outside url

2002-12-08 Thread Jason Wong
On Sunday 08 December 2002 00:47, Jeremiah Breindel wrote: > Thanks for responing Jason! > > There is other code in there for updating some database entries and > producing a confirmation page, but I had them working perfectly before I > added the image code below. Only when acessing the outside s

RE: [PHP] Finding Mode

2002-12-08 Thread Ford, Mike [LSS]
> -Original Message- > From: Rick Widmer > > At 07:12 PM 12/7/02 -0500, Stephen wrote: > >Another math question... How would I find the mode (number that repeats most > >often) of an array? Then, if there isn't a number that repeats most often, > >tell the user that. > > For each entry in

[PHP] open_basedir

2002-12-08 Thread Przemysław Żółczyński PRV
When I am try toput photo to the server I get this: Warning: open_basedir restriction in effect. File is in wrong directory in /mnt/host-users/zolty/tools/addprod.php on line 117 What is this? Przemek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] force download with header()

2002-12-08 Thread Patrick McKinley
i was reading about php.net looking for a way to force a download of a txt file, rather than the browser displaying the file. i ran into header() that seems to be able to accomplish it... but seeing as i'm very much a newbie at php, i can't seem to make this work if the file i want to download is

Re: [PHP] force download with header()

2002-12-08 Thread Marco Tabini
Are you using Internet Explorer? Then it's a "feature" of IE--it ignores the disposition headers sent by your server because its registry tells it that PDF files must be "viewed" inline. There's a way around it, although it's a bit kludgy--I wrote a small article about it that you can find here (it

[PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
Hello! When trying to connect to a mysql database under my linux system, I get the following error: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on line 2 Here is a copy of the code I am using: I am currently running Apa

[PHP] LogIn check within function within class :: HELP!

2002-12-08 Thread Sean Mayhew
Im just about at wits end here Im trying to verify that a users ID and Password exist in the MySQL Database and then if it does display certain content and if it does not display login form content. ###At present here is the error I'm recieving: Warning: Missing argument 3 for verifylogin() in

Re: [PHP] LogIn check within function within class :: HELP!

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 2:24:47 AM, you wrote: SM> Im just about at wits end here Im trying to verify that a users ID and SM> Password exist in the MySQL Database and then if it does display certain SM> content and if it does not display login form content. SM> ###At present here is the e

php-general Digest 8 Dec 2002 16:38:31 -0000 Issue 1751

2002-12-08 Thread php-general-digest-help
php-general Digest 8 Dec 2002 16:38:31 - Issue 1751 Topics (messages 127414 through 127436): Re: Just Curious 127414 by: Leif K-Brooks 127415 by: Justin French 127419 by: Kyle Gibson 127420 by: rolf vreijdenberger 127422 by: Thomas Seifert 1274

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 2:29:35 AM, you wrote: BJC> Hello! BJC> When trying to connect to a mysql database under my linux system, I get the BJC> following error: BJC> Warning: Can't connect to local MySQL server through socket BJC> '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Jason Wong
On Monday 09 December 2002 00:29, Brian J. Celenza wrote: > Hello! > > When trying to connect to a mysql database under my linux system, I get the > following error: How did you install your apache, mysql & php? Source/RPM? If RPM, where did you get the RPMs? IIRC Redhat's packaging of MySQL diff

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
I'm almost positive that the socket file is in the correct spot. My installation was with Redhat 8.0, I also have mysqlcc installed, and it uses /var/lib/mysql/mysql.sock successfully. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTE

[PHP] Re: mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
Found the problem... Somehow my version of mysql had become uninstalled, and I have no idea why that is. Thanks for all the help :) "Brian J. Celenza" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello! > > When trying to connect to a mysql database under m

Re: [PHP] open_basedir

2002-12-08 Thread Chris Hewitt
Przemysław Żółczyński PRV wrote: When I am try toput photo to the server I get this: Warning: open_basedir restriction in effect. File is in wrong directory in /mnt/host-users/zolty/tools/addprod.php on line 117 What is this? Przemek open_basedir restricts the directories that may be used. T

[PHP] Re: Finding Mode

2002-12-08 Thread Paul Chvostek
On Sat, Dec 07, 2002 at 07:12:09PM -0500, Stephen wrote: > > Another math question... How would I find the mode (number that repeats most > often) of an array? Then, if there isn't a number that repeats most often, > tell the user that. A while back, I wrote functions for mean, median and mode.

[PHP] fopen have a "setTimeout" feature?

2002-12-08 Thread Phil Powell
Can you set something like a "setTimeout" feature in fopen? That is, if you use fopen to open a URL for "scraping", if that URL's server is down or doesn't respond in x seconds, can you set a feature to show an error message or a "friendly" error message indicating such? Thanx Phil

[PHP] Can I check MYSQL version

2002-12-08 Thread John Taylor-Johnston
Hi, Can I check mysql version so if version >= 4 $sql = 'version 4 stuff' else $sql ="version 3 stuff"; -- John Taylor-Johnston - "If it's not open-source, it's Murphy's Law." - Université de Sherbrooke:

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Johannes Schlueter
On Sunday 08 December 2002 20:42, John Taylor-Johnston wrote: > Hi, > Can I check mysql version so if version >= 4 $sql = 'version 4 stuff' else > $sql ="version 3 stuff"; Try this SQL-Statement: SEELCT VERSION(); MySQL-Manual: http://www.mysql.com/doc/en/Miscellaneous_functions.html johannes

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread John Taylor-Johnston
mysql> SELECT VERSION(); -> '3.23.13-log' Ok, how do I PHP it for greater than or equals version 4 :? John Johannes Schlueter wrote: > On Sunday 08 December 2002 20:42, John Taylor-Johnston wrote: > > Hi, > > Can I check mysql version so if version >= 4 $sql = 'version 4 stuff' els

[PHP] Typo -- Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Johannes Schlueter
On Sunday 08 December 2002 20:40, Johannes Schlueter wrote: > SEELCT VERSION(); Should be SELECT VERSION() ;-) johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Stephen
$sql = "SELECT VERSION()"; $result = mysql_query($sql); $ver = mysql_fetch_assoc($result); if($ver[0] >= 4) { echo "You have MySQL 4.0 or greater"; } else { echo "You DON'T have MySQL 4.0 or greater"; } Not sure if that'll work or not, I haven't tested it. Hope it does though. - Ori

Re: [PHP] Can I check MYSQL version

2002-12-08 Thread Chris Knipe
oh gawd... get the spoons... $query = mysql_query("select version as version") while ($result = mysql_fetch_row($query)) { // do a strcmp() or ereg() on $row['0'] } - Original Message - From: "John Taylor-Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 08, 2

[PHP] Hiding URL Variable

2002-12-08 Thread Stephen
How can you hide URL variables without using the POST method in a form? Thanks, Stephen Craton http://www.melchior.us "What is a dreamer that cannot persevere?" -- http://www.melchior.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen have a "setTimeout" feature?

2002-12-08 Thread Tim Ward
how about something like... $start = time(); $timeout = 60; // number of seconds to try while (!$file = fopen("...") && time() < $start + $timeout); if ($file) { // do stuff with file } Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Phil Powell <[EM

Re: [PHP] Hiding URL Variable

2002-12-08 Thread Tim Ward
store them in a session or cookie Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Stephen <[EMAIL PROTECTED]> To: PHP List <[EMAIL PROTECTED]> Sent: Sunday, December 08, 2002 8:10 PM Subject: [PHP] Hiding URL Variable > How can you hide URL variables

Re: [PHP] Send PHP results in email

2002-12-08 Thread Malcolm Brownell
Thanks Jason, I saw this a while ago and it solved the problem perfectly. On Thu, 5 Dec 2002 06:11:40 +0800, [EMAIL PROTECTED] (Jason Wong) wrote: > On Thursday 05 December 2002 05:58, Malcolm Brownell wrote: > > Hi, > > > > I have some database fields I want to select and email. > > > > I h

[PHP] Re: PHP Configuration - Can't Change Post_Max_Size

2002-12-08 Thread Malcolm Brownell
I've got 4.1.1 and it's upload_max_filesizemine is default 2 M maybe you have a different version. hth m On Thu, 5 Dec 2002 10:32:44 -0800, [EMAIL PROTECTED] (Roger Lewis) wrote: > This is further to my post yesterday on Max File Size. > > I was able to set upload_max_filesize to 790

RE: Re[4]: [PHP] Simple text editor for Windows?

2002-12-08 Thread John W. Holmes
As a followup, I know someone mentioned Crimson Editor for my question. It installed fine on WinXP as a general user, but it wanted to access the registry and wouldn't install as a general user under Win2K. FYI... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get

[PHP] mpm perchild mod_php4

2002-12-08 Thread Jochen Kächelin
I ask this list now because nobody could answer my question on the apache list. I installed Apache 2.0.43 --with-mpm=perchild in order to get more security in executing php-scripts. I know that perchild is experimental but I couldn't run it at all. We will make some tests - without success. When

[PHP] Solaris

2002-12-08 Thread Kris
Sorry I know this is off subject but I'm in a bind. I have a problem with my Solaris box booting up. Does I fairly new to all of this so does anybody know a good newsgroup for Solaris?? My problem is I added a file so a program would auto load. I added the file to etc/rc2.d Now this program load

RE: [PHP] Solaris

2002-12-08 Thread Peter Houchin
Kris, a couple of options for you to try are http://www.sun.com/bigadmin http://www.solariscentral.com also have a search in google also you can try this... resart the machine and press stop a after the banner comes up and you get the "ok" prompt .. then type boot -s (for single user mode) (you w

[PHP] date() on two diff. servers

2002-12-08 Thread Justin French
Hi, I'm running the following code on two servers: On my local development box (Free BSD, PHP 4.1.1, on AUSTRALIAN time), the above echo's "Wed, 11 Dec 2002" (I consider this to be the "correct date". However on the live server (Red Hat, PHP 4.2.3, hosted in CANADA) the above code echo's "Tue,

Re: [PHP] Solaris

2002-12-08 Thread Kris
Thank you so much Worked like a charm!! :) Kris - Original Message - From: "Peter Houchin" <[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 12:01 PM Subject: RE: [PHP] Solaris > Kris, > > a couple of options for you to t

RE: [PHP] date() on two diff. servers

2002-12-08 Thread John W. Holmes
Daylight Savings Time? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED]] > Sent: Sunday, December 08, 2002 8:59 PM > To: php > Subject: [PHP] da

Re: [PHP] date() on two diff. servers

2002-12-08 Thread @ Edwin
Hello, "John W. Holmes" <[EMAIL PROTECTED]> wrote: > Daylight Savings Time? John, I think "Daylight Saving Time" creates a difference of 1 hour and not 1 day :) Anyway, I live in a place where we don't practice this so I could be wrong... ...[snip]... > > Now, what could be causing this probl

Re: [PHP] date() on two diff. servers

2002-12-08 Thread @ Edwin
But, then again, it could be just because the other server's time is really late... (caused by old motherboard batteries, etc.) - E "@ Edwin" <[EMAIL PROTECTED]> wrote: > Hello, > > "John W. Holmes" <[EMAIL PROTECTED]> wrote: > > > Daylight Savings Time? > > John, I think "Daylight Saving Time"

Re: [PHP] date() on two diff. servers

2002-12-08 Thread Justin French
on 09/12/02 1:30 PM, @ Edwin ([EMAIL PROTECTED]) wrote: >> Daylight Savings Time? > > John, I think "Daylight Saving Time" creates a difference of 1 hour and not > 1 day :) True... but I checked it anyway -- by adding just one and two hours to the stamp... which made no difference... but when I

Re: [PHP] date() on two diff. servers

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 11:59:07 AM, you wrote: JF> Hi, JF> I'm running the following code on two servers: JF> $stamp = 1039525200; JF> echo date('D, d M Y',$stamp); ?>> JF> On my local development box (Free BSD, PHP 4.1.1, on AUSTRALIAN time), the JF> above echo's "Wed, 11 Dec 2002" (I

[PHP] Re: C#

2002-12-08 Thread michael kimsal
Wilmar Perez wrote: Hello guys I'm sorry if this message disturbs anyone, I know it is completely off topic. I've been thinking about open a C# mailing list for I hadn't been able to find a good one so far. All I want to know is if there is enough people out there interested in joining such l

Re: [PHP] date() on two diff. servers

2002-12-08 Thread @ Edwin
"Justin French" <[EMAIL PROTECTED]> wrote: [snip] > Perhaps strtotime() is NOT running off GMT, [/snip] Bingo! ...or, Bull's eye!, whatever :) Anyway, I think this is "implied" in the manual. http://www.php.net/manual/en/function.strtotime.php Also, check "User Contributed Notes": pira

Re: [PHP] date() on two diff. servers

2002-12-08 Thread Justin French
on 09/12/02 3:06 PM, @ Edwin ([EMAIL PROTECTED]) wrote: > [snip] >> Perhaps strtotime() is NOT running off GMT, > [/snip] > > Bingo! *GULP*... so, what we're saying is, that if I intend to pass data around on multiple servers (in different timezones) using a unix timestamp for dates (which i pre

php-general Digest 9 Dec 2002 05:40:32 -0000 Issue 1752

2002-12-08 Thread php-general-digest-help
php-general Digest 9 Dec 2002 05:40:32 - Issue 1752 Topics (messages 127437 through 127468): Re: mysql_connect problem under RedHat 8.0 ? 127437 by: Tom Rogers 127438 by: Jason Wong 127439 by: Brian J. Celenza 127440 by: Brian J. Celenza Re: open_basedir

Re: [PHP] fopen have a "setTimeout" feature?

2002-12-08 Thread Phil Powell
Sorry, your code produced this error and I can't figure out how to debug it :( Warning: fopen("http://www3.brinkster.com/soa/val/profile/display.asp?showLeftNavBann er=1","r") - Error 0 in /users/ppowell/web/profiledisplay.php on line 4 Phil - Original Message - From: "Tim Ward" <[EMAIL

Re: [PHP] date() on two diff. servers

2002-12-08 Thread @ Edwin
"Justin French" <[EMAIL PROTECTED]> wrote: > on 09/12/02 3:06 PM, @ Edwin ([EMAIL PROTECTED]) wrote: > > > [snip] > >> Perhaps strtotime() is NOT running off GMT, > > [/snip] > > > > Bingo! > > *GULP*... so, what we're saying is, that if I intend to pass data around on > multiple servers (in diff