[PHP] Deleting directories...
Hi, I'm trying to delete non-empty directories. I'm using a windows 2000 server. I have a script that seems to be trying to delete the directories as it should but it can't delete the directories because it does not have permission. The script runs CHMOD on the direcory to make sure it has permission but it still doesn't work. Can anyone help? Thanks in advance - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL PROTECTED] (daytime) [EMAIL PROTECTED] (evening) -
Re: [PHP] Deleting directories...
On Tuesday 02 April 2002 16:42, Philip Jeffs wrote: Hi, I'm trying to delete non-empty directories. I'm using a windows 2000 server. I have a script that seems to be trying to delete the directories as it should but it can't delete the directories because it does not have permission. The script runs CHMOD on the direcory to make sure it has permission but it still doesn't work. Does the chmod operation actually work? Does the user which runs the webserver have permissions to chmod the directories that you want to delete? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* May you live in uninteresting times. -- Chinese proverb */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] R: [PHP] getting at the server environment variables
make a php file and fille it with ? phpinfo(); ? save the file run it and look at all php and apache global variables. Unknown Sender [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED] Andreas Pour wrote: Hi, Have all server requests for domain.org point to this php script: ? header(Location: . ereg_replace(domain.org, domain.net, $BASE_URL)); ? Andreas, Great idea, but it doesn't work. The $BASE_URL is empty. Looking at a PHP book I have, it appears that I should be using the HTTP_HOST server environment variable, but being brand new to PHP, I have no clue how to get at the variable. Can you enlighten me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] what should be my wishlist?
Hi I'm creaating my wishlist for my php build for my isp. I've got the usual stuff gd/ftp/xml etc and was wondering what else should i ask for e.g. i've never used pear but it might be useful? curl etc.
[PHP] help please - strange session behaviour on IIS with php4.1.2
i've written a simple script, which tests the session behaviour on the IIS, since it didnt seem to work the following script should increase the session-var $testVar and display it but it always stays at the same value can someone explain that? is that a bug? also if i would increase $_SESSION['testVar'] it doesnt work. i have been looking at the server and the session-file is also updated, but not with the new values, only the timestamp is updated, it seems session_start(); // make the session variable globally available // we have register_globals = Off $testVar = $_SESSION['testVar']; // init testVar to 1 or increase it if( !isset($testVar) ) { print 'set testVar to 1br'; $testVar = 1; } else { print 'increasebr'; $testVar++; } // i can put session_register before // or after the 'if' it always happens the same session_register('testVar'); print $testVar; the environment: - IIS-Server5.0, WIN2k - PHP4.1.2 - session.auto_start = 0 - register_globals = Off i am using the recommended-php.ini, that's why register_globals is off thanks for help -- Wolfram ... translating template engine http://sf.net/projects/simpletpl ... authentication system http://sf.net/projects/auth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:[PHP] what should be my wishlist?
2/04/2002 7:47:34 PM Make sure you get all the TTF packages with GD Adrian Murphy [EMAIL PROTECTED] wrote on 2/04/2002 9:36:43 AM: Hi I'm creaating my wishlist for my php build for my isp. I've got the usual stuff gd/ftp/xml etc and was wondering what else should i ask for e.g. i've never used pear but it might be useful? curl etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] WWW-Authenticate problem in Apache
Hi, I've never tried requiring authentication via a header (only through httpd.conf or .htaccess), but here's my best guess: You're telling it what type of authentication to do, and you're telling it what realm to authenticate to, but: - You're not telling it what to require, and you're not telling it where to find that info. For example, with the httpd.conf format, you would have something like: Directory /var/www/htdocs/foo AuthType Basic AuthName My Realm AuthUserFile /var/www/auth/htpasswd require valid-user /Directory Any reason you're not using .htaccess? /bsh/ dssopt wrote: Hi everybody, I try to install Apache 3.1.2 + PHP-4.1.2 on RedHat 7.2. All seems to be fine but when I write a PHP to test the authenticate. ?php header(WWW-Authenticate: Basic realm=\My Realm\); ? Whatever I input to the login box, the failed, retry message comes out and it becomes a dead loop - login - retry - login .. Can anyone help me ?? Ken -- /-=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | All opinions and technical advice offered in this message are my | | own and not necessarily endorsed by my employer. | \--=[ [EMAIL PROTECTED] ]=/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Checking if a link is valid
Hi there! This is a general networking problem, I guess... $fp = fsockopen ($tempUrl, $tempPort, $errno, $errstr, 30); // variables are fine, it works in most cases... if ($fp) { fputs ($fp, GET / HTTP/1.0\r\n\r\n); $code = fgets($fp,1024); $code = str_replace(HTTP/1.1 , , $code); $code = (int)$code; echo $code; fclose($fp); echo nbsp;a href=\ . $url . \ . $tempName . /abr; } I just have my code that does an fsockopen on a webpage. This works just fine, and in most cases I can extract the error code (404,200 etc.). But now I experienced the following strange behaviour: When trying this on a domain that is automatically redirected by the provider, I just get a 404. If I adress this site with my browser, I get redirected and everything works fine. The url in this case is http://www.gruppe-69.de/ 't is redirected by my provider directly to http://www.gruppe-69.com but my linkchecker thinks it would be dead (404) Any idea how I can check this, too? Thanx and cheers, Kiko - It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] including file hosted by www.a.com on www.b.com
I'm in trouble with include procedure. I have a file on host http://www.a.com that must be included by the file on the host http://www.b.com The code of the file to be included is as follows: included.php on http://www.a.com ? $vett[0] = zero; $vett[1] = one; $vett[2] = two; return $vett; ? The code of the file which must include first file is as follows: master.php on http://www.b.com ? $value = include('http://www.a.com/included.php'); echo $value; echo $value[0]; echo $value[1]; echo $value[2]; ? The expected output would be: Arrayzeroonetwo but the include procedure doesn't work correctly working on different host. Can anyone help me please?? I'm in a very big trouble. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mysql unique statement help...
Hello, Well I have a field in Mysql Database called threadid. I have unique threadid's stored in this field. But the problem is that I have like 10 entries for each threadid. When I do a select statement for Mysql I want only unique threadid's to be read. How do I do that because I didn't find any function as unique() under Mysql. Could anybody help me out please. Thank You Best Regards, Dhaval Desai _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mysql unique statement help...
Hi, if you want to select a unique threadid to be read, try the following MySQL sentence : SELECT DISTINCT threadid FROM tablename; Hope it helps you SR Dhaval Desai a écrit : Hello, Well I have a field in Mysql Database called threadid. I have unique threadid's stored in this field. But the problem is that I have like 10 entries for each threadid. When I do a select statement for Mysql I want only unique threadid's to be read. How do I do that because I didn't find any function as unique() under Mysql. Could anybody help me out please. Thank You Best Regards, Dhaval Desai _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Another ?
Have a look here: http://www.evilwalrus.com/viewcode.php?codeEx=313 Craig Eric Coleman [EMAIL PROTECTED] wrote in message 001501c1d84e$42a4f480$0201a8c0@zaireweb">news:001501c1d84e$42a4f480$0201a8c0@zaireweb... Probably Opera - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 30, 2002 12:28 PM Subject: [PHP] Another ? Hello, Whats the HTTP_USER_AGENT for opera? Thanks, -Sean Kennedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $HTTP_USER_AGENT
Have a look here: http://www.evilwalrus.com/viewcode.php?codeEx=313 Craig Donnelly Eric Coleman [EMAIL PROTECTED] wrote in message 000b01c1d845$55158020$0201a8c0@zaireweb">news:000b01c1d845$55158020$0201a8c0@zaireweb... Why not echo $HTTP_USER_AGENT and find out? - Original Message - From: Sean Kennedy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 30, 2002 11:43 AM Subject: [PHP] $HTTP_USER_AGENT Hello, Im making a small php script, but I need to know how to do something. My problem is: I have a script thats like this: ?php if ($HTTP_USER_AGENT == WHAT GOES HERE FOR IE AND NS?) { echo You have Internet Explorer; } else { echo You have Netscape; } ? Do you know what I mean? Thanks, -Sean Kennedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Custom 404
Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Custom 404
.htaccess :) Andrew - Original Message - From: Craig Donnelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 1:36 PM Subject: [PHP] Custom 404 Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 404 error triggered by Include error??
Is there a way to setup either the apache/php directives to produce a custom 404 if a file fails to be included ?? Or is this a job for .HTACCESS?? Regards, ~Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Custom 404
http://rob-mike.php4hosting.com/mike/htaccess/ -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: 02 April 2002 13:50 To: [EMAIL PROTECTED] Subject: Re: [PHP] Custom 404 .htaccess :) Andrew - Original Message - From: Craig Donnelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 1:36 PM Subject: [PHP] Custom 404 Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: what should be my wishlist?
Curl, gd, zlib, sockets, pdf... pear is fine but you don't need your isp to install, can have on your own directory. Humm... if possible, no safemode() enabled :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Adrian Murphy [EMAIL PROTECTED] wrote in message 004401c1da29$e6eb9e40$02646464@ade">news:004401c1da29$e6eb9e40$02646464@ade... Hi I'm creaating my wishlist for my php build for my isp. I've got the usual stuff gd/ftp/xml etc and was wondering what else should i ask for e.g. i've never used pear but it might be useful? curl etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] BUG in recursion
No, this is NOT a bug. You recurse 10 times down into the function. Therefore, as you come back up and exit the previous call to test(), you complete Test's processing, which is to print j The recursion process is as expected and correct == At 09:59 AM 31/03/2002, Uros Gruber wrote: Hi! This is a code function Test() { static $count = 0; $count++; echo $count; if ($count 10) { Test (); } echo j; } test(); Output is 12345678910jj Why is there 10 j at the and. If this would work it can be only one. If $count is grater than 10 it does not call itself but end. Is this maybe a bug or what. -- lp, Uros mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Need some help please
$query=INSERT INTO news VALUES($newsid,'$title','$author',$posted,'$body' ); -Original Message- From: menezesd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Need some help please Hello Friends. I know I am asking for too much. But somehow, I am stuck with three books I am refering and still not being able to solve my problem, which I would greatly appreciate if any of you gurus can assist. The problem is as follows : I have three sections in this mail : 1. My table structure 2. My test.html file whose ACTION is testphp1.php file 3. My testphp1.php file. The problem is that I keep getting the error error adding rows as the rows are not adding in the database. My table structure : Table name : news Fields : newsid INT(11) title carchar(100) author varchar(40) posted INT(11) body MEDIUMTEXT My test.htm file : == html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 form name=form1 method=post action=testphp1.php p input type=text name=newsid /p p input type=text name=title /p p input type=text name=author /p p input type=text name=body /p p input type=submit name=Submit value=Submit /p /form /body /html My testphp1.php file : == html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 ? $link=mysql_connect(localhost,menezesd,FX3PYTys); if ($link){ print link id is $link; } else { print error connecting to database; } $posted=time(); $query=INSERT INTO 'news' ('newsid','title','author', 'posted', 'body') VALUES($newsid,'$title','$author',$posted,'$body' ); print ($query); IF (mysql_query($query)){ print Row added to table; } else { print error adding row; } mysql_close($link); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] date expressions
How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] date expressions
Convert it to timestamp and then compare or if the date's in a mysql database let mysql handle the comparison for you. James -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] date expressions How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query
Jason means that you should execute it from the mysql command line; In your PHP code: print $sql. Then copy from that window and paste into mysql command line and execute. What are the results? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 10:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query Hmm, run it manually? I'm a newbie, so, could you explain how I'd do that? =) Jason Murray [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd say $id is blank, not being passed in, or is equal to a nonexistant IDArt. Maybe you should echo out your SQL and run it manually to see what's going on. J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 2:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query I have a variable which is appeneded to the end of a URL, like http://www.your_web_site.com/your_page/?your_variable=your_value This would return your_value; echo $your_variable; But this wouldn't work, and returns an error $sql = SELECT * FROM fldField WHERE IDField = . $id; What could possibly be wrong? If you need more info, then tell me. Here's my code: ?php $db = @odbc_connect('ReviewDatabase', 'root', '') or exit)(Error occured:br$php_errormsg); $sql = SELECT * FROM tblArt WHERE IDArt = $id; $cursor = @odbc_exec($db, $sql) or exit (Error occrued:br$php_errormsg); odbc_close($db); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] date expressions
Robert, I believe you are extracting this info from a mysql database. let mysql do it for you as I explained in my examples yesterday. If you need more infor from me, just ask/ -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:25 AM To: [EMAIL PROTECTED] Subject: [PHP] date expressions How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] date expressions
Don't need to convert to timestamp. Mysql will handle dates directly without this unnecessary conversion. -Original Message- From: James E. Hicks III [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:31 AM To: ROBERT MCPEAK; [EMAIL PROTECTED] Subject: RE: [PHP] date expressions Convert it to timestamp and then compare or if the date's in a mysql database let mysql handle the comparison for you. James -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] date expressions How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Variable names
If I have a variable, how do I extract the name of the variable. In principle: $varname=somefunction($myvar); The value of $varname is then myvar How do I do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] New php functions?
FYI: http://www.lindows.com Unlike the http://www.mslinux.org (see below), which is an April Fool's joke, Lindows is an actual product in beta development now. It is a Linux based operating system that runs MS Windows applications. I can't wait to see the impact on PHP development that Lindows may offer -Original Message- From: margehair.terra.es [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 5:17 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] New php functions? I love that manual! And what about the one in win help format? Not too bad, int it? They say it now works under MSLinux. Probably Mandrake too, but not tested yet. Extended info at http://www.mslinux.org See ya, Marga -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Including Picture in PHP
if the output of graph.php is a URL, your code should work. img src=/images/mypic.jpg if graph outputs the image itself, you have to do it a bit different: in the html it should look like: img src=graph.php?... and graph.php should do something like: header(Content-Type: image/gif); echo $imagecontent; Hope that helps Michael Moschitz Martin [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What is wrong with the following statement? The Picture which is generated in graf.php is not displayed. echo img src=; include( graf.php ); echo ; thanxs martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help please - strange session behaviour on IIS with php4.1.2
Hi, It sounds like you are experiencing a similar problem to one I had. It seems there are some problems with setting cookies when using IIS, and as I understand it one of the ways that sessions work is by storing the data in a cookie on the clients machine. On the page at www.php.net it suggests appending the session id to the url, go here to look at that http://www.php.net/manual/en/ref.session.php, An example of this would be; ?php if (!session_is_registered('count')) { session_register('count'); $count = 1; } else { $count++; } ? Hello visitor, you have seen this page ?php echo $count; ? times.p; ?php # the ?php echo SID? (?=SID? can be used if short tag is enabled) # is necessary to preserve the session id # in the case that the user has disabled cookies ? To continue, A HREF=nextpage.php??php echo SID?click here/A on the notes at the bottom someone said this, sounds like a similar problem, [EMAIL PROTECTED] 01-Apr-2002 04:30 Using PHP 4.1.2 on IIS 5.0, Win2k, haven't migrated app yet to Linux (later!) Managed to eventually get the sessions to work as follows. In the php.ini, session.auto_start = 1 Then without a session_start(); $xvar = something ; Use session_register(xvar); then u CAN retrieve from a later page using the new way: $var = $_SESSION[xvar] ; also without session_start(); even doing a var_dump($_SESSION); seems to work at least some of the time! The odd thing is that storing vars using the new way: $_SESSION[xvar] = something; will save only for the CURRENT page, this gets lost when moving on to the next page! best regards Mike Hope this helps with your problem, Steve. - Original Message - From: Wolfram Kriesing [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 10:44 AM Subject: [PHP] help please - strange session behaviour on IIS with php4.1.2 i've written a simple script, which tests the session behaviour on the IIS, since it didnt seem to work the following script should increase the session-var $testVar and display it but it always stays at the same value can someone explain that? is that a bug? also if i would increase $_SESSION['testVar'] it doesnt work. i have been looking at the server and the session-file is also updated, but not with the new values, only the timestamp is updated, it seems session_start(); // make the session variable globally available // we have register_globals = Off $testVar = $_SESSION['testVar']; // init testVar to 1 or increase it if( !isset($testVar) ) { print 'set testVar to 1br'; $testVar = 1; } else { print 'increasebr'; $testVar++; } // i can put session_register before // or after the 'if' it always happens the same session_register('testVar'); print $testVar; the environment: - IIS-Server5.0, WIN2k - PHP4.1.2 - session.auto_start = 0 - register_globals = Off i am using the recommended-php.ini, that's why register_globals is off thanks for help -- Wolfram ... translating template engine http://sf.net/projects/simpletpl ... authentication system http://sf.net/projects/auth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variable names
Hello Kodrik, I would do the following code. Excuse me if there are many mistakes. I am only a newbie. So: function somefunction($myvar) { do something... ... ... return \$myvar; } $varname = somefunction($myvar); echo $varname; Hope it helps you SR kodrik a écrit : If I have a variable, how do I extract the name of the variable. In principle: $varname=somefunction($myvar); The value of $varname is then myvar How do I do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] DB Question
Hello all, I've been waiting in the shadows, reading, trying to get a handle on what type of questions go here. I'm hoping this one does, and that some of you guru's might be able to offer some insight. I've just started out with PHP, and want to get to know relational databases. I've seen numerous tutorials that show you how to create the DB with PHP... something along the lines of... $link = mysql_connect('localhost', 'mylogin', 'mypass'); And the like... but here's my question... You connect to the database program (MySQL in MyCASE, hehe) and create the database and tables you want to use, but... do you only have to run this PHP script once to create the database/tables... or do you have to run the lines that create the database and tables each time you want to write information to them or extract information from them? I've not come across any tutorials that expand on that. I'm guessing you run the script once to create the DB and Tables, then it's there. After that, you need only write to/extract from them. If anyone can please offer information on this I'd greatly appreciate it. Also, direct replies to this mail address are encouraged, as I'm in digest mode and want to get your answers as soon as I can :o) Take care all, and thanks in advance! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] DB Question
Normally, you'll create the databases within the native database environment. For instance, for mysql, at the mysql command line. Then, you use PHP/PERL/C/sh/bash/... to access the database with various queries, such as SELECT. You also use the database native environment to update/maintain table structures. -Original Message- From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:46 AM To: [EMAIL PROTECTED] Subject: [PHP] DB Question Hello all, I've been waiting in the shadows, reading, trying to get a handle on what type of questions go here. I'm hoping this one does, and that some of you guru's might be able to offer some insight. I've just started out with PHP, and want to get to know relational databases. I've seen numerous tutorials that show you how to create the DB with PHP... something along the lines of... $link = mysql_connect('localhost', 'mylogin', 'mypass'); And the like... but here's my question... You connect to the database program (MySQL in MyCASE, hehe) and create the database and tables you want to use, but... do you only have to run this PHP script once to create the database/tables... or do you have to run the lines that create the database and tables each time you want to write information to them or extract information from them? I've not come across any tutorials that expand on that. I'm guessing you run the script once to create the DB and Tables, then it's there. After that, you need only write to/extract from them. If anyone can please offer information on this I'd greatly appreciate it. Also, direct replies to this mail address are encouraged, as I'm in digest mode and want to get your answers as soon as I can :o) Take care all, and thanks in advance! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Custom 404
Custom 404 what? Do you want to make one? On Tue, 2 Apr 2002, Craig Donnelly wrote: Custom 404 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: preventing back button usage?
This is not possible. You cannot force the browser not to go back in its history, don't even trie to find a solution for this... the question you should ask yourself is not how to disable the browser history but how you can prevent your page by getting screwed by multiple posts. Erik Price [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... Sorry to plague this list with questions today, but I was hoping someone could help me understand a fundamental thing about how browsers work -- how can I achieve the effect that many ecommerce sites (such as Amazon) use to prevent the user from going back in their history? For obvious reasons, I would like to avoid JavaScript to achieve this feat. I have some multi-part forms that I do not wish users to be able to repeat accidentally. I believe it has something to do with a header and the browser's cache, but I really don't know anything about it. TIA, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how did this become an array?
Hi, I am trying to figure out a part of the PHP code which belongs to one of the files that is responsible for operating a discussion group. I was examining some of a part of the code which produces the total number of messages and displays the subject of the message. I encountered a part that looks like this: mysql_select_db(discussionboard, $db) or die(Couldnot select database); $sql = select max(thread) as thread, max(mesgid) as mesgid from discussionboard; $result = mysql_query($sql) or die(Query failed); $numrows = mysql_num_rows($result); $result_row = mysql_fetch_row($result); echocenterbNo of topics: $result_row[0]br No of total messages: $result_row[1]/b What I don't understand is how did $result_row become $result_row[0] and $result_row[1]? Also what does it mean to select max(thread) as thread, max(mesid) as mesgid? I have never used this as command before. Thanks for any insight. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] List server
Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. -Jim _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how did this become an array?
What I don't understand is how did $result_row become $result_row[0] and $result_row[1]? mysql_fetch_row() returns an array structure Also what does it mean to select max(thread) as thread, max(mesid) as mesgid? I have never used this as command before. max(x) returns the highest value for all records in that particular field The AS clause renames the resulting field. For instance, in this case, max(thread) returns as a field named thread. So you would access like: $result_row = mysql_fetch_array($result); $mythread = $result_row['thread']; I suggest you experiment in the mysql command line to see the various results. -Original Message- From: The PHP newbie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:10 AM To: [EMAIL PROTECTED] Subject: [PHP] how did this become an array? Hi, I am trying to figure out a part of the PHP code which belongs to one of the files that is responsible for operating a discussion group. I was examining some of a part of the code which produces the total number of messages and displays the subject of the message. I encountered a part that looks like this: mysql_select_db(discussionboard, $db) or die(Couldnot select database); $sql = select max(thread) as thread, max(mesgid) as mesgid from discussionboard; $result = mysql_query($sql) or die(Query failed); $numrows = mysql_num_rows($result); $result_row = mysql_fetch_row($result); echocenterbNo of topics: $result_row[0]br No of total messages: $result_row[1]/b What I don't understand is how did $result_row become $result_row[0] and $result_row[1]? Also what does it mean to select max(thread) as thread, max(mesid) as mesgid? I have never used this as command before. Thanks for any insight. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help please - strange session behaviour on IIS with php4.1.2
On Tuesday 02 April 2002 15:34, Stephen Phillips wrote: Hi, It sounds like you are experiencing a similar problem to one I had. It seems there are some problems with setting cookies when using IIS, and as I understand it one of the ways that sessions work is by storing the data in a cookie on the clients machine. On the page at www.php.net it suggests appending the session id to the url, go here to look at that http://www.php.net/manual/en/ref.session.php, i can definitely say, that the session-ID is always appended on the links etc. session.use_trans_sid is on, so all links etc. are extended by the SID automatically, so it should not be the problem with the cookies :-( any other suggestions? -- Wolfram ... translating template engine http://sf.net/projects/simpletpl ... authentication system http://sf.net/projects/auth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: preventing back button usage?
use cache control in your HTML to prevent BACK button usage This is easily done Erik Price [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... Sorry to plague this list with questions today, but I was hoping someone could help me understand a fundamental thing about how browsers work -- how can I achieve the effect that many ecommerce sites (such as Amazon) use to prevent the user from going back in their history? For obvious reasons, I would like to avoid JavaScript to achieve this feat. I have some multi-part forms that I do not wish users to be able to repeat accidentally. I believe it has something to do with a header and the browser's cache, but I really don't know anything about it. TIA, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variable names
function somefunction($myvar) { do something... ... ... return \$myvar; } $varname = somefunction($myvar); echo $varname; That won't work, because you escaped the $ sign, the variable won't get processed and the name returned will be the one of the variable as it is declared in the function, always the same. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how did this become an array?
Hi, I am also a newbie in PHP, but your question is more a MySQL question I believe... : $sql = select max(thread) as thread, max(mesgid) as mesgid from discussionboard; This MySQL request gives you two informations : the maximum of the values of the two fields (thread and mesgid) of the table named discussionboard : these values are then put with $result_row = mysql_fetch_row($result) inside a row of two values : $result_row[0] and $result_row[1]. I hope that helps you P.S.: see the site www.mysql.com for more or clearer explanations and also of course www.php.net SR The PHP newbie a écrit : Hi, I am trying to figure out a part of the PHP code which belongs to one of the files that is responsible for operating a discussion group. I was examining some of a part of the code which produces the total number of messages and displays the subject of the message. I encountered a part that looks like this: mysql_select_db(discussionboard, $db) or die(Couldnot select database); $sql = select max(thread) as thread, max(mesgid) as mesgid from discussionboard; $result = mysql_query($sql) or die(Query failed); $numrows = mysql_num_rows($result); $result_row = mysql_fetch_row($result); echocenterbNo of topics: $result_row[0]br No of total messages: $result_row[1]/b What I don't understand is how did $result_row become $result_row[0] and $result_row[1]? Also what does it mean to select max(thread) as thread, max(mesid) as mesgid? I have never used this as command before. Thanks for any insight. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variable names
function somefunction($myvar) { do something... ... ... $variablealacon = \$myvar; return $variablealacon; } $varname = somefunction($myvar); echo $varname; kodrik a écrit : function somefunction($myvar) { do something... ... ... return \$myvar; } $varname = somefunction($myvar); echo $varname; That won't work, because you escaped the $ sign, the variable won't get processed and the name returned will be the one of the variable as it is declared in the function, always the same. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] set browser timeout
Is there an HTTP tag in the header that can be sent to tell the browser not to timeout? I found the HTTP spec page, but I'm not sure what to look for. Carl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Warning: Undefined variable
On Monday, April 1, 2002, at 11:15 PM, Philip Olson wrote: Good little programmers define variables before using them, or at least before evaluating them. Really? I'm not arguing with you, I'm curious: I thought that it was a valued feature of newer scripting languages that they do not require declaration of variables. At least that's what people say when they praise PHP or Python or whichever language allows this. Is this feature not as desirable as what I had first heard? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] set browser timeout
what do you mean timeout? What is timing out? -Original Message- From: Carl Schmidt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] set browser timeout Is there an HTTP tag in the header that can be sent to tell the browser not to timeout? I found the HTTP spec page, but I'm not sure what to look for. Carl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Warning: Undefined variable
I've used undefined variables for over 30 years...which has caused many late-night debugging sessions and much pain. Defining and initializing variables is a good thing. I believe PHP has a flag set to warn of use of un-initialized data. I do prefer strongly-typed languages, such as C++. That said, I love the power that PHP provides as far as functionality is concerned. just my 2 pfennigs... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:26 AM To: Philip Olson Cc: kip; [EMAIL PROTECTED] Subject: Re: [PHP] Warning: Undefined variable On Monday, April 1, 2002, at 11:15 PM, Philip Olson wrote: Good little programmers define variables before using them, or at least before evaluating them. Really? I'm not arguing with you, I'm curious: I thought that it was a valued feature of newer scripting languages that they do not require declaration of variables. At least that's what people say when they praise PHP or Python or whichever language allows this. Is this feature not as desirable as what I had first heard? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: WWW-Authenticate problem in Apache
You should only send the HTTP Authentication Header, if the user isn't already authenticated. Try something like this: ?php $usr = guest; $pw = guest; if(!($PHP_AUTH_USER==$usr $PHP_AUTH_PW==$pw)) { header(WWW-Authenticate: Basic realm=\My Realm\); header(HTTP/1.0 401 Unauthorized); } ? Bob Dssopt [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everybody, I try to install Apache 3.1.2 + PHP-4.1.2 on RedHat 7.2. All seems to be fine but when I write a PHP to test the authenticate. ?php header(WWW-Authenticate: Basic realm=\My Realm\); ? Whatever I input to the login box, the failed, retry message comes out and it becomes a dead loop - login - retry - login .. Can anyone help me ?? Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] set browser timeout
I'm uploading a file to a web site using forms. I'm trying to narrow down if the problem is the connection is timing out on file upload, or if I'm exceeding a web host imposed limit on file upload size. I've found the server i'm running on has: upload_max_filesize 2M post_max_size 8M Apache connection: 300 sec 1. I was assuming that post_max_size (since I'm posting the file, not uploading via ftp) takes precedence, so I should be able to upload up to 8M. 2. I'm uploading via a T1, so there is no reason why the apache connection should timeout 3. However, no matter what I do, it seems that the file upload times out after about 30 seconds for files below 2M. So there are 2 things I need to test: 1. Is it that the upload_max_filesize is really what is limiting the upload and my assumption is wrong? OR 2. Is it just a coincedence that anything over 2M takes over 30 sec to upload, and that the conenction times out after 30 seconds but the server _could_ handle more? Sorry for the long winded reply, but I wanted to provide some context for this question I posted as best I could. i was afraid if I put up the usual file upload problems in the subject line it may get ignored. Carl Rick Emery wrote: what do you mean timeout? What is timing out? -Original Message- From: Carl Schmidt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] set browser timeout Is there an HTTP tag in the header that can be sent to tell the browser not to timeout? I found the HTTP spec page, but I'm not sure what to look for. Carl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] set browser timeout
I'm uploading a file to a web site using forms. I'm trying to narrow down if the problem is the connection is timing out on file upload, or if I'm exceeding a web host imposed limit on file upload size. I've found the server i'm running on has: upload_max_filesize 2M post_max_size 8M Apache connection: 300 sec 1. I was assuming that post_max_size (since I'm posting the file, not uploading via ftp) takes precedence, so I should be able to upload up to 8M. 2. I'm uploading via a T1, so there is no reason why the apache connection should timeout 3. However, no matter what I do, it seems that the file upload times out after about 30 seconds for files below 2M. So there are 2 things I need to test: 1. Is it that the upload_max_filesize is really what is limiting the upload and my assumption is wrong? OR 2. Is it just a coincedence that anything over 2M takes over 30 sec to upload, and that the conenction times out after 30 seconds but the server _could_ handle more? Sorry for the long winded reply, but I wanted to provide some context for this question I posted as best I could. i was afraid if I put up the usual file upload problems in the subject line it may get ignored. __ Carl Schmidt | Developer | Latitude360.com a division of RWD Technologies,Inc. | [EMAIL PROTECTED] | 877.9LAT360 | 410.869.7025 | -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 9:27 AM To: Schmidt, Carl; [EMAIL PROTECTED] Subject: RE: [PHP] set browser timeout what do you mean timeout? What is timing out? -Original Message- From: Carl Schmidt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] set browser timeout Is there an HTTP tag in the header that can be sent to tell the browser not to timeout? I found the HTTP spec page, but I'm not sure what to look for. Carl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] date expressions
On Tuesday, April 2, 2002, at 08:25 AM, ROBERT MCPEAK wrote: How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? There was a recent tutorial on DevShed introducing date usage in PHP. http://www.devshed.com/Server_Side/PHP/DateTime Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: preventing back button usage?
On Tuesday, April 2, 2002, at 09:15 AM, Rick Emery wrote: use cache control in your HTML to prevent BACK button usage This is easily done I've tried this using the HTTP headers recommended on the header() man page, such as header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache); These don't seem to have the effect that I'm looking for. Someone else on the list suggested storing a session variable that basically says this page has been filled out, do not do anything if it has been resubmit which is a good idea, but I was hoping to have the user automatically re-routed to an error page if they hit the back button. (The session variable idea won't work until they refresh a page or submit a form, because they will be returning to a page in their history.) Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: preventing back button usage?
On Thursday, March 28, 2002, at 06:50 PM, Michael Virnstein wrote: This is not possible. You cannot force the browser not to go back in its history, don't even trie to find a solution for this... the question you should ask yourself is not how to disable the browser history but how you can prevent your page by getting screwed by multiple posts. I see. Then, when I try to do something similar to this on FedEx.com or Amazon.com, is it JavaScript that redirects me to an error page? If so then I will have to use both tactics -- preventing a form from being resubmit, and JavaScript to disable the back button (unethical as it may be). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Please help me
Hi all: I was working with PHP 4.0.6, ISAPI on a Win2000, IIS server, ; now I install PHP 4.1.2 on the same server but CGI module and I'm geting the following errors when I try to run any script: Security Alert! PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set. This variable is set, for example, by Apache's Action directive redirect. You may disable this restriction by recompiling the PHP binary with the --disable-force-cgi-redirect switch. If you do this and you have your PHP CGI binary accessible somewhere in your web tree, people will be able to circumvent .htaccess security by loading files through the PHP parser. A good way around this is to define doc_root in your php.ini file to something other than your top-level DOCUMENT_ROOT. This way you can separate the part of your web space which uses PHP from the normal part using .htaccess security. If you do not have any .htaccess restrictions anywhere on your site you can leave doc_root undefined. If you are running IIS, you may safely set cgi.force_redirect=0 in php.ini. PHP Warning: Unable to load dynamic library 'e:\php/php_dotnet.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_ifx.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_iisfunc.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_ingres.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_mcrypt.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_oci8.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_oracle.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_printer.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_sablot.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) PHP Warning: Unable to load dynamic library 'e:\php/php_sybase_ct.dll' - No se puede encontrar el módulo especificado. in Unknown on line 0 Any help will be welcome. Thanks, Fernando
[PHP] Passing a variable invisibly via a href?
Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don´t want the variable, and it´s value to appear in the adress bar of the browser. And i don´t want people to be able to pass the same variable by reloading the destination page. Any pointers on how i can do this? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 705 38 10 30 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] Warning: Undefined variable
PHP does give warnings about undefined array positions if you don't use quotes around them like $array1[var1] will warning (if warnings are on), but $array1[var1] won't. I have never seen (even with error reporting turned to the maximum setting) PHP throw an error about doing something like: $robot = findRobot(); or whatever without defining var $robot; above this, so I'm pretty sure it's ok not to define them, and other then organizationally, it doesn't really serve a purpose since you can't define datatypes (strings, int's, or any other type can go directly into the same $robot). Adam Voigt [EMAIL PROTECTED] On Tue, 2 Apr 2002 08:30:59 -0600 , Rick Emery [EMAIL PROTECTED] wrote: I've used undefined variables for over 30 years...which has caused many late-night debugging sessions and much pain. Defining and initializing variables is a good thing. I believe PHP has a flag set to warn of use of un-initialized data. I do prefer strongly-typed languages, such as C++. That said, I love the power that PHP provides as far as functionality is concerned. just my 2 pfennigs... -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:26 AM To: Philip Olson Cc: kip; [EMAIL PROTECTED] Subject: Re: [PHP] Warning: Undefined variable On Monday, April 1, 2002, at 11:15 PM, Philip Olson wrote: Good little programmers define variables before using them, or at least before evaluating them. Really? I'm not arguing with you, I'm curious: I thought that it was a valued feature of newer scripting languages that they do not require declaration of variables. At least that's what people say when they praise PHP or Python or whichever language allows this. Is this feature not as desirable as what I had first heard? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing a variable invisibly via a href?
You could use a form and have a hidden vield that contains a value. The user would have to click the submit button for the variable/value to carry over though. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Daniel Alsén [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 9:02 AM Subject: [PHP] Passing a variable invisibly via a href? Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don´t want the variable, and it´s value to appear in the adress bar of the browser. And i don´t want people to be able to pass the same variable by reloading the destination page. Any pointers on how i can do this? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 705 38 10 30 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] Passing a variable invisibly via a href?
You could actually have javascript auto-submit the form if you didn't want the button like: script language=javascript document.form1.submit(); /script Adam Voigt [EMAIL PROTECTED] On Tue, 2 Apr 2002 09:08:18 -0600, Tyler Longren [EMAIL PROTECTED] wrote: You could use a form and have a hidden vield that contains a value. The user would have to click the submit button for the variable/value to carry over though. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Daniel Alsén [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 9:02 AM Subject: [PHP] Passing a variable invisibly via a href? Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don´t want the variable, and it´s value to appear in the adress bar of the browser. And i don´t want people to be able to pass the same variable by reloading the destination page. Any pointers on how i can do this? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 705 38 10 30 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
SV: [PHP] Passing a variable invisibly via a href?
You could use a form and have a hidden vield that contains a value. The user would have to click the submit button for the variable/value to carry over though. I thought about that. But i have two possible values (via two links) that could be passed and i can´t really get it together. Two forms? - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing a variable invisibly via a href?
That might not be such a good idea then. Tyler - Original Message - From: Daniel Alsén [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 9:11 AM Subject: SV: [PHP] Passing a variable invisibly via a href? You could use a form and have a hidden vield that contains a value. The user would have to click the submit button for the variable/value to carry over though. I thought about that. But i have two possible values (via two links) that could be passed and i can´t really get it together. Two forms? - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: preventing back button usage?
On Tuesday 02 April 2002 16:59, Erik Price wrote: On Thursday, March 28, 2002, at 06:50 PM, Michael Virnstein wrote: This is not possible. You cannot force the browser not to go back in its history, don't even trie to find a solution for this... the question you should ask yourself is not how to disable the browser history but how you can prevent your page by getting screwed by multiple posts. I see. Then, when I try to do something similar to this on FedEx.com or Amazon.com, is it JavaScript that redirects me to an error page? If so then I will have to use both tactics -- preventing a form from being resubmit, and JavaScript to disable the back button (unethical as it may be). i dont know if this really would solve your problem, but what i am using sometimes is: if( $save_data ) { $id = save( $_REQUEST['data'] ); if( $id != false ) // is it a valid id? { header('Location:'.$_SERVER['PHP_SELF'].'?id='.$id ); die(); } } explaination: what it does is saving the $_REQUEST['data'] and on success, it reloads the same page again but without the posted data to show exactly the data that had been saved i use the $id returned by the 'save'-method, which is the id of the data set that was saved so reload or back buttons wont disturb on reload, simply the same page with the GET-param is reloaded and back button goes to the page before, since it seems the header-redirection is not saved in the history this only works for special cases: - if you load the same page again, and want to show the entered data, it has to be the same page for showing and editing the data - showing data also has to work using $_GET-parameters, as this is what the header function does drawbacks are: - only useful in some special cases - browser gets contacted once more, than actually necessary ('header') -- Wolfram ... translating template engine http://sf.net/projects/simpletpl ... authentication system http://sf.net/projects/auth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing a variable invisibly via a href?
or use javascript href=javscript:form.submit() or if you really wanted you could encrypt the variable pass it via the url and then decrypt it on the next page! to avoid a reload put no-cache in the header. - Original Message - From: Daniel Alsén [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 4:02 PM Subject: [PHP] Passing a variable invisibly via a href? Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don´t want the variable, and it´s value to appear in the adress bar of the browser. And i don´t want people to be able to pass the same variable by reloading the destination page. Any pointers on how i can do this? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 705 38 10 30 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] New php functions?
Its amazing how a message can change like this. My original meesage was just humorous. Charles ---Original Message--- I went to php.net wnating info on the date() function. To my surprise the word date was already in the search for field. Has PHP developed some new functions? Possible code ? $question = read_psychic_aura(user); $answer = answer_question($question); echo $answer; ? If not are these ever planned as I have use for them. Thanks Charles Killmer PS In case you are wondering yes this is supposed to be humorous. ;-) -- Original Message -- From: Rick Emery [EMAIL PROTECTED] Date: Mon, 1 Apr 2002 17:23:13 -0600 Extended info at http://www.mslinux.org ROFLMAO -Original Message- From: margehair.terra.es [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 5:17 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] New php functions? I love that manual! And what about the one in win help format? Not too bad, int it? They say it now works under MSLinux. Probably Mandrake too, but not tested yet. Extended info at http://www.mslinux.org See ya, Marga Vas escriure: I've got the PHP manual as a series of hyper-linked HTML pages. Searchig is is very fast. And, I don't need to wait for download of single page. I've got the index.html page in my Favoties list, so the PHP manual ia always available; I don't have to try to remember where the downloaded doc is. -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 4:52 PM To: 'Jason Wong'; [EMAIL PROTECTED] Subject: RE: [PHP] New php functions? It begs the question, why don't you just download the manual? It's available in a myriad of different formats, one of which must suit you. It may not be bang up-to-date and it may not have the (sometimes) useful user comments but it sure saves you a lot of time and bandwidth. Heheh ... well, for one, it's not my bandwidth :) And the time it takes to open a new browser and type www.php.net/date and download the page is a lot faster than the amount of time it'd take to find out where the heck I put the downloaded document, then find the right page / entry / etc... :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] odbc_pconnect
Hi All! I have a situation where I need to keep connection still active after php script is done and page displayed! I tried to use $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); But unfortunately connection closes automatically when script is done! What must I do to keep connection alive and be able to use $cx again and again without connectign? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
SV: SV: [PHP] Passing a variable invisibly via a href?
Yes, there is a way to do it without using any forms. I may be able to help you better if you could show me the relevant code -- I'm not sure if what I have in mind is really applicable to what you want to do. It´s not really advanced: session_start(); session_register('text_size'); if ($change == inc) { $text_size++; } elseif ($change == dec) { $text_size--; } I use the variable $change to set the text size in my stylesheet: if (isset($text_size)) {echo $text_size;} else {echo 10; $text_size = 10;} And i set the variable via a link: a href=? echo $PHP_SELF; ??change=inc (or change=dec) Now - i don´t want the variable to be visible. And i would prefer if the variable didn´t get set every time someone hit reload. Or am i attacking this changing-text-size-thingy the wrong way? - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Passing a variable invisibly via a href?
Daniel alsén wrote: Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don?t want the variable, and it?s value to appear in the adress bar of the browser. And i don?t want people to be able to pass the same variable by reloading the destination page. Any pointers on how i can do this? cookies or sessions, your choice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connecting to a DB using PHP and mysql...
Using the script below, I was able to connect to a database named contacts for output. *However*, when I insert a [username] and [password] in place of the , I get: Couldn't connect to the database - eventhough I am able to connect to mysql. How do I go about replacing the and to insert a password and username so that it can be connected to a database? Any advice will be greatly appreciated. TR . HTML BODY ? $connection=mysql_connect(localhost,,); if(!$connection) { echo Couldn't connect.; exit; } $db=mysql_select_db(contacts,$connection); if(!$db) { echo Couldn't connect to the database.; exit; } $sql=SELECT * FROM leads; $mysql_result=mysql_query($sql, $connection); $num_rows=mysql_num_rows($mysql_result); if($num_rows==0) { echo There is no information; } else { echoTABLE ALIGN=\Center\ BORDER=\1\; echoTRTHFONT FACE =\Arial\ SIZE=\2\First Name/THTHFONT FACE =\Arial\ SIZE=\2\Last Name/THTHFONT FACE =\Arial\ SIZE=\2\email/THTHFONT FACE =\Arial\ SIZE=\2\State/TH; while($row=mysql_fetch_array($mysql_result)) { $fname=$row[fname]; $lname=$row[lname]; $email=$row[email]; $state=$row[state]; $ID=$row[ID]; echo TRTHFONT FACE =\Arial\ SIZE=\2\$fname/THTHFONT FACE =\Arial\ SIZE=\2\$lname/THTHFONT FACE =\Arial\ SIZE=\2\$email/THTHFONT FACE =\Arial\ SIZE=\2\$state/TH/TR; } } mysql_close($connection); ? /BODY /HTML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Connecting to a DB using PHP and mysql...
have permissions been granted to contacts in mysql using that combination of username and password? -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Connecting to a DB using PHP and mysql... Using the script below, I was able to connect to a database named contacts for output. *However*, when I insert a [username] and [password] in place of the , I get: Couldn't connect to the database - eventhough I am able to connect to mysql. How do I go about replacing the and to insert a password and username so that it can be connected to a database? Any advice will be greatly appreciated. TR . HTML BODY ? $connection=mysql_connect(localhost,,); if(!$connection) { echo Couldn't connect.; exit; } $db=mysql_select_db(contacts,$connection); if(!$db) { echo Couldn't connect to the database.; exit; } $sql=SELECT * FROM leads; $mysql_result=mysql_query($sql, $connection); $num_rows=mysql_num_rows($mysql_result); if($num_rows==0) { echo There is no information; } else { echoTABLE ALIGN=\Center\ BORDER=\1\; echoTRTHFONT FACE =\Arial\ SIZE=\2\First Name/THTHFONT FACE =\Arial\ SIZE=\2\Last Name/THTHFONT FACE =\Arial\ SIZE=\2\email/THTHFONT FACE =\Arial\ SIZE=\2\State/TH; while($row=mysql_fetch_array($mysql_result)) { $fname=$row[fname]; $lname=$row[lname]; $email=$row[email]; $state=$row[state]; $ID=$row[ID]; echo TRTHFONT FACE =\Arial\ SIZE=\2\$fname/THTHFONT FACE =\Arial\ SIZE=\2\$lname/THTHFONT FACE =\Arial\ SIZE=\2\$email/THTHFONT FACE =\Arial\ SIZE=\2\$state/TH/TR; } } mysql_close($connection); ? /BODY /HTML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Connecting to a DB using PHP and mysql...
Try this for your connection: - ? // Database constants define(DATABASE_HOST, localhost); define(DATABASE_USER, root); define(DATABASE_PASSWORD, *YOUR_PASS*); define(DATABASE_NAME, *YOUR_DB_NAME*); // Establish connection $dbLink = mysql_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD); if(!$dbLink) { print Unable to connect to the database, please contact Sysadmin asap.; } else { $dbUse = mysql_select_db(DATABASE_NAME, $dbLink); } ? - Hope it helps ya, Craig Anthony Ritter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Using the script below, I was able to connect to a database named contacts for output. *However*, when I insert a [username] and [password] in place of the , I get: Couldn't connect to the database - eventhough I am able to connect to mysql. How do I go about replacing the and to insert a password and username so that it can be connected to a database? Any advice will be greatly appreciated. TR . HTML BODY ? $connection=mysql_connect(localhost,,); if(!$connection) { echo Couldn't connect.; exit; } $db=mysql_select_db(contacts,$connection); if(!$db) { echo Couldn't connect to the database.; exit; } $sql=SELECT * FROM leads; $mysql_result=mysql_query($sql, $connection); $num_rows=mysql_num_rows($mysql_result); if($num_rows==0) { echo There is no information; } else { echoTABLE ALIGN=\Center\ BORDER=\1\; echoTRTHFONT FACE =\Arial\ SIZE=\2\First Name/THTHFONT FACE =\Arial\ SIZE=\2\Last Name/THTHFONT FACE =\Arial\ SIZE=\2\email/THTHFONT FACE =\Arial\ SIZE=\2\State/TH; while($row=mysql_fetch_array($mysql_result)) { $fname=$row[fname]; $lname=$row[lname]; $email=$row[email]; $state=$row[state]; $ID=$row[ID]; echo TRTHFONT FACE =\Arial\ SIZE=\2\$fname/THTHFONT FACE =\Arial\ SIZE=\2\$lname/THTHFONT FACE =\Arial\ SIZE=\2\$email/THTHFONT FACE =\Arial\ SIZE=\2\$state/TH/TR; } } mysql_close($connection); ? /BODY /HTML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem reading in and displaying an image...
I'm trying to read in a 1x1 pixel file and display it, basically to assist in setting 3rd party cookies (our other affiliated sites that don't follow under the same domain.. it's really sloppily set up, but thats another story).. The problem I have is the script is just hanging, sits there and does nothing, constantly trying to load.. setcookie($cookieName, $u, $expire, /); setcookie($cookieName.logon, $t, $expire, /); $fd = fopen(http://www.armytimes.com/images/spacer.gif;, r); $image = fread($fd, 5024); fclose($fd); Header(Content-type: image/gif); echo $image; exit(); now, if I comment out the Header and echo $image; lines, the script works fine, it reads in the file with no problem it seems. But when I turn those 2 lines back on, it totally hangs. does anyone have any ideas? I am totally stumped. Thanks, Chad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: SV: SV: [PHP] Passing a variable invisibly via a href?
On Tuesday, April 2, 2002, at 10:28 AM, Daniel Alsén wrote: I use the variable $change to set the text size in my stylesheet: if (isset($text_size)) {echo $text_size;} else {echo 10; $text_size = 10;} And i set the variable via a link: a href=? echo $PHP_SELF; ??change=inc (or change=dec) Now - i don´t want the variable to be visible. And i would prefer if the variable didn´t get set every time someone hit reload. Or am i attacking this changing-text-size-thingy the wrong way? Hmm. I thought that I had a clever solution for you, but I don't. The one that I came up with would probably be far more complex and inelegant than you would ever want to use. If you were submitting your data to a database or some kind of service, then it would work (I am thinking of the PostToHost() function in the archives), but since you are trying to set a session variable, you really need to refresh the page in the process. This means that either using a form with POST data or the querystring method that you mention above is really the best way to do it. If you used a form with POST data, you'd probably want to use radio buttons or make a little listbox and a submit button, like: form method=post action=?php echo $_SERVER['PHP_SELF']; ? select name=change option value=incIncrease Size/option option value=decDecrease Size/option /select /form This would keep your querystring/URL free of extra data like page.php?change=inc. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Connecting to a DB using PHP and mysql...
On Tuesday, April 2, 2002, at 10:40 AM, Rick Emery wrote: have permissions been granted to contacts in mysql using that combination of username and password? And from that host? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Re: Error Handling
The set_error_handler didn't work correctly in that it wouldn't execute except when trigger_error was called, otherwise this would have worked great a week ago when we were trying to implement this. Thats why we went with a error log which was auto-emailed by a timed script. Adam Voigt [EMAIL PROTECTED] P.S. I apologize for cross emailing, but I thought it may be applicable to PHP's sourcecode in that there might be a line of C or something in the PHP source distro I could change. On Tue, 02 Apr 2002 18:03:48 +0200, Stefan Livieratos [EMAIL PROTECTED] wrote: Hi there, take a look at the first user contributed note on http://www.php.net/manual/en/function.set-error-handler.php. The fifth argument of the custom error handler is the context in which the error occured. Hope that helps. Regards Stefan Livieratos P.S.: Please don't crosspost your messages to php.dev. Adam Voigt wrote: At our web hosting facillity we have several developers (each who recieve a seperate email when an error occurs on the site there working on) and we would like to have extra data included in the log files which are written (such as the $_POST, $_GET, $_ENV, and $_SERVER arrays), this would help us to figure out more precisely why exactly an error occured for a particular user. I already looked at the error_append entry which allows you to append code to an error message but it appears that does not carry over to the log file, is there anyway to make all these arrays dump into the error log after each error entry (I know there is probably a way to do it with some combination of OR and die(customError()) or something, but it would be nice if the built in error handling could do it.). Thanks, Adam Voigt [EMAIL PROTECTED] -- ICS Plus Internet Consulting + Services == Aeussere Brucker Str. 51 D-91058 Erlangen Germany == Tel: +49 9131 127733 Fax: +49 9131 127744 E-mail : [EMAIL PROTECTED] Web: http://www.icsplus.de == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] April fools day - did anyone notice Thies's fangs on rc1???
Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I wonder what they where . . . french fries? Salty sticks (German 'Salzstangen')?? At first I though I was hallucinating, especially when I found that he was gone again today! Try setting your server's system date back to yesterday, as in $ date -s 04/01/02 :)) - Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] April fools day - did anyone notice Thies's fangs on rc1???
On Tuesday, April 2, 2002, at 11:52 AM, Frank Joerdens wrote: Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I wonder what they where . . . french fries? Salty sticks (German 'Salzstangen')?? At first I though I was hallucinating, especially when I found that he was gone again today! Try setting your server's system date back to yesterday, as in Pencils, I thought? I didn't know who that was. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] April fools day - did anyone notice Thies's fangs on rc1???
They were breadsticks. Picture was taken in early 1999 in a restaurant in Tel Aviv, Israel. -Rasmus On Tue, 2 Apr 2002, Erik Price wrote: On Tuesday, April 2, 2002, at 11:52 AM, Frank Joerdens wrote: Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I wonder what they where . . . french fries? Salty sticks (German 'Salzstangen')?? At first I though I was hallucinating, especially when I found that he was gone again today! Try setting your server's system date back to yesterday, as in Pencils, I thought? I didn't know who that was. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] set browser timeout
On Tuesday 02 April 2002 22:44, Schmidt, Carl wrote: I'm uploading a file to a web site using forms. I'm trying to narrow down if the problem is the connection is timing out on file upload, or if I'm exceeding a web host imposed limit on file upload size. I've found the server i'm running on has: upload_max_filesize 2M post_max_size 8M Apache connection: 300 sec 1. I was assuming that post_max_size (since I'm posting the file, not uploading via ftp) takes precedence, so I should be able to upload up to 8M. My understanding of those settings is that: upload_max_filesize determines the maximum size of a file and post_max_size determines the maximum size of the post which is all the bits of a form -- all the inputs, the textareas, the files etc. Thus the settings you have above would limit your max file size to 2MB. 2. I'm uploading via a T1, so there is no reason why the apache connection should timeout 3. However, no matter what I do, it seems that the file upload times out after about 30 seconds for files below 2M. So there are 2 things I need to test: 1. Is it that the upload_max_filesize is really what is limiting the upload and my assumption is wrong? OR 2. Is it just a coincedence that anything over 2M takes over 30 sec to upload, and that the conenction times out after 30 seconds but the server _could_ handle more? Try increasing the upload_max_filesize and see what happens -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* You own a dog, but you can only feed a cat. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] List server
On Tuesday 02 April 2002 22:10, Anzak Wolf wrote: Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. fopen(php://stdin, r); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats. -- Howard Aiken */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] List server
On Tuesday 02 April 2002 22:10, Anzak Wolf wrote: Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. fopen(php://stdin, r); How does that relate to readline()? _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need some help too!
In you php.ini, change the SMTP to the Solaris mail server. Hope this help, Harry --- Ryan F. Bayhonan [EMAIL PROTECTED] wrote: Good day to all. Just want to ask some help from you guys. I'h vaving problem with mail function. I'm currently making a PHP application that would be able to send mails to my co-employee. My webserver where my application reside runs on linux without a sendmail appliation. That is why the mail function fails to work. I don't want to install a sendmail program since our office already have a central mail server which runs on solaris. Is there a work around for my problem? Hope you could help me. Thank you very much. Ryan F. Bayhonan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://http://taxes.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and MS access
Anybody have a good tutorial on getting PHP to access a MS Access Database with ODBC? I cant even get a connection to succeed. Rance Hall 308.238.2455 Internal Office Extensions: 2455 or 6655 PC Programmer, The Buckle, Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query
I'm using ODBC (Access). But I can execute the SQL manually in Access too. I did, here's my query: SELECT * FROM fldField WHERE IDField = 3; I have to actually put in a value for IDField, it doesn't recognize my variable, of coarse. This works just fine. Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Jason means that you should execute it from the mysql command line; In your PHP code: print $sql. Then copy from that window and paste into mysql command line and execute. What are the results? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 10:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query Hmm, run it manually? I'm a newbie, so, could you explain how I'd do that? =) Jason Murray [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd say $id is blank, not being passed in, or is equal to a nonexistant IDArt. Maybe you should echo out your SQL and run it manually to see what's going on. J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 2:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query I have a variable which is appeneded to the end of a URL, like http://www.your_web_site.com/your_page/?your_variable=your_value This would return your_value; echo $your_variable; But this wouldn't work, and returns an error $sql = SELECT * FROM fldField WHERE IDField = . $id; What could possibly be wrong? If you need more info, then tell me. Here's my code: ?php $db = @odbc_connect('ReviewDatabase', 'root', '') or exit)(Error occured:br$php_errormsg); $sql = SELECT * FROM tblArt WHERE IDArt = $id; $cursor = @odbc_exec($db, $sql) or exit (Error occrued:br$php_errormsg); odbc_close($db); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] odbc vs mysql
When connecting to database (Sybase) through ODBC it takes some time to establish odbc connection with: $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); And only after that I am able to access data through SQL Selects The problem is that every time the script is finished this connection is automatically closed, how to keep it open after displaying a page - no idea ... How about using MySql in this situation? There will be no need to waste time connecting to ODBC every time, is it really so? could this be faster? is there any idea how to keep ODBC connections open after script is finished? Any other solutions? Thanks P.S. I tried to use Sybase funcitons.. but it says - that they're not defined or something like that.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] April fools day - did anyone notice Thies's fangs on rc1???
Wow, talk about things from your past coming back to haunt you :-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 11:52 AM To: Erik Price Cc: Frank Joerdens; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] April fools day - did anyone notice Thies's fangs on rc1??? They were breadsticks. Picture was taken in early 1999 in a restaurant in Tel Aviv, Israel. -Rasmus On Tue, 2 Apr 2002, Erik Price wrote: On Tuesday, April 2, 2002, at 11:52 AM, Frank Joerdens wrote: Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I wonder what they where . . . french fries? Salty sticks (German 'Salzstangen')?? At first I though I was hallucinating, especially when I found that he was gone again today! Try setting your server's system date back to yesterday, as in Pencils, I thought? I didn't know who that was. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and MS access
[EMAIL PROTECTED] writes: Anybody have a good tutorial on getting PHP to access a MS Access Database with ODBC? I cant even get a connection to succeed. Check at php.weblogs.com/ADOdb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and MS access
you can try http://www.accessmysql.com also. Thank You Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc. 954.346.4900x122 http://www.kbelectronics.com |+ || pong-TC | || [EMAIL PROTECTED]| || | ||| || 04/02/02 12:23| || PM| ||| |+ -| | | | To: [EMAIL PROTECTED] | | cc: [EMAIL PROTECTED] | | Subject: Re: [PHP] PHP and MS access | -| [EMAIL PROTECTED] writes: Anybody have a good tutorial on getting PHP to access a MS Access Database with ODBC? I cant even get a connection to succeed. Check at php.weblogs.com/ADOdb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] sessions
i have a problem with PHP sessions and maybe some of you could help what do i need in my php.ini to get them to work !!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Connecting to a DB using PHP and mysql...
Craig, I tried the following. I was able to connect to mysql but not to the database contacts. TR ... HTML BODY ? define(DATABASE_HOST, localhost); define(DATABASE_USER, johndoe); define(DATABASE_PASSWORD, abc); define(DATABASE_NAME, contacts); $connection=mysql_connect(DATABASE_HOST,DATABASE_USER,DATABASE_PASSWORD); if(!$connection) { echo Couldn't connect.; exit; } $db=mysql_select_db(DATABASE_NAME,$connection); if(!$db) { echo Couldn't connect to the database.; exit; } $sql=SELECT * FROM leads; $mysql_result=mysql_query($sql, $connection); $num_rows=mysql_num_rows($mysql_result); if($num_rows==0) { echo There is no information; } else { echoTABLE ALIGN=\Center\ BORDER=\1\; echoTRTHFONT FACE =\Arial\ SIZE=\2\First Name/THTHFONT FACE =\Arial\ SIZE=\2\Last Name/THTHFONT FACE =\Arial\ SIZE=\2\email/THTHFONT FACE =\Arial\ SIZE=\2\State/TH; while($row=mysql_fetch_array($mysql_result)) { $fname=$row[fname]; $lname=$row[lname]; $email=$row[email]; $state=$row[state]; $ID=$row[ID]; echo TRTHFONT FACE =\Arial\ SIZE=\2\$fname/THTHFONT FACE =\Arial\ SIZE=\2\$lname/THTHFONT FACE =\Arial\ SIZE=\2\$email/THTHFONT FACE =\Arial\ SIZE=\2\$state/TH/TR; } } mysql_close($connection); ? /BODY /HTML ... Craig Donnelly wrote in message: Try this for your connection: ? // Database constants define(DATABASE_HOST, localhost); define(DATABASE_USER, root); define(DATABASE_PASSWORD, *YOUR_PASS*); define(DATABASE_NAME, *YOUR_DB_NAME*); // Establish connection $dbLink = mysql_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD); if(!$dbLink) { print Unable to connect to the database, please contact Sysadmin asap.; } else { $dbUse = mysql_select_db(DATABASE_NAME, $dbLink); } ? -- -- Hope it helps ya, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] global vars within 2-level functions
I have some code, in which I am using the function keyword to create subroutines of code (in otherwords, not true functions but rather reuseable chunks of other code). Yeah, it's ugly, but I need to do it this way for now. So my question is this: One of my subroutine/functions generates a variable. I would like to make this variable available to another subroutine/function, which is called from the first subroutine/function. If what I say is confusing, think of it like this: function1 - creates variable_A - calls function2 function2 - needs to access variable_A The problem is that this variable is not available to function2, even if I use the global keyword. The only way I can pass this variable to function2 is if I pass it as an argument. However, in some cases, I need to call function2 without this argument, but this creates some Warnings which I don't want to see. I don't want to just suppress these warnings, how can I either (a) Pass a variable from a function to a subfunction called from the first function (b) Pass a variable as an argument to a function but make that argument optional so that it does not have to exist to make the function legitimate. Thank you, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] April fools day - did anyone notice Thies's fangs on rc1???
Well, not really. This easter egg has been in the code since April 2000, so it isn't actually a new thing. We had this same discussion in April 2001. You guys just have a short memory. ;) -Rasmus On Tue, 2 Apr 2002, Brian Drexler wrote: Wow, talk about things from your past coming back to haunt you :-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 11:52 AM To: Erik Price Cc: Frank Joerdens; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] April fools day - did anyone notice Thies's fangs on rc1??? They were breadsticks. Picture was taken in early 1999 in a restaurant in Tel Aviv, Israel. -Rasmus On Tue, 2 Apr 2002, Erik Price wrote: On Tuesday, April 2, 2002, at 11:52 AM, Frank Joerdens wrote: Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I wonder what they where . . . french fries? Salty sticks (German 'Salzstangen')?? At first I though I was hallucinating, especially when I found that he was gone again today! Try setting your server's system date back to yesterday, as in Pencils, I thought? I didn't know who that was. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] sessions
On Wednesday 03 April 2002 21:34, R. Lindeman wrote: i have a problem with PHP sessions and maybe some of you could help what do i need in my php.ini to get them to work !!! You just need to edit it until it works. Seriously, if you're going to keep your problem a secret nobody will be able to help you. *What* problems are you having with your sessions? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* It's a funny thing that when a woman hasn't got anything on earth to worry about, she goes off and gets married. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] global vars within 2-level functions
On Wednesday 03 April 2002 02:11, Erik Price wrote: (b) Pass a variable as an argument to a function but make that argument optional so that it does not have to exist to make the function legitimate. function function2 ($variable_A=) { } It's in manual under Functions -- original isn't it? :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Kids, the seven basic food groups are GUM, PUFF PASTRY, PIZZA, PESTICIDES, ANTIBIOTICS, NUTRA-SWEET and MILK DUDS!! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Connecting to a DB using PHP and mysql...
at the mysql command line, type: mysql show grants for johndoe@localhost; what does it show? -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Connecting to a DB using PHP and mysql... Craig, I tried the following. I was able to connect to mysql but not to the database contacts. TR ... HTML BODY ? define(DATABASE_HOST, localhost); define(DATABASE_USER, johndoe); define(DATABASE_PASSWORD, abc); define(DATABASE_NAME, contacts); $connection=mysql_connect(DATABASE_HOST,DATABASE_USER,DATABASE_PASSWORD); if(!$connection) { echo Couldn't connect.; exit; } $db=mysql_select_db(DATABASE_NAME,$connection); if(!$db) { echo Couldn't connect to the database.; exit; } $sql=SELECT * FROM leads; $mysql_result=mysql_query($sql, $connection); $num_rows=mysql_num_rows($mysql_result); if($num_rows==0) { echo There is no information; } else { echoTABLE ALIGN=\Center\ BORDER=\1\; echoTRTHFONT FACE =\Arial\ SIZE=\2\First Name/THTHFONT FACE =\Arial\ SIZE=\2\Last Name/THTHFONT FACE =\Arial\ SIZE=\2\email/THTHFONT FACE =\Arial\ SIZE=\2\State/TH; while($row=mysql_fetch_array($mysql_result)) { $fname=$row[fname]; $lname=$row[lname]; $email=$row[email]; $state=$row[state]; $ID=$row[ID]; echo TRTHFONT FACE =\Arial\ SIZE=\2\$fname/THTHFONT FACE =\Arial\ SIZE=\2\$lname/THTHFONT FACE =\Arial\ SIZE=\2\$email/THTHFONT FACE =\Arial\ SIZE=\2\$state/TH/TR; } } mysql_close($connection); ? /BODY /HTML ... Craig Donnelly wrote in message: Try this for your connection: ? // Database constants define(DATABASE_HOST, localhost); define(DATABASE_USER, root); define(DATABASE_PASSWORD, *YOUR_PASS*); define(DATABASE_NAME, *YOUR_DB_NAME*); // Establish connection $dbLink = mysql_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD); if(!$dbLink) { print Unable to connect to the database, please contact Sysadmin asap.; } else { $dbUse = mysql_select_db(DATABASE_NAME, $dbLink); } ? -- -- Hope it helps ya, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Counting months between two dates
I want to determine the number of months between two dates. Is there a function in PHP or a way to make strtotime do the job? For instance, how many months between 2001-08-27 and 2002-06-05. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] global vars within 2-level functions
On Tuesday, April 2, 2002, at 01:24 PM, Jason Wong wrote: (b) Pass a variable as an argument to a function but make that argument optional so that it does not have to exist to make the function legitimate. function function2 ($variable_A=) { } Thanks for the pointer. I didn't realize that passing a blank argument would achieve this effect. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Counting months between two dates
John, Are you pulling dates from mysql? If so, let mysql do it for you. If you don't know how, ask again. -Original Message- From: John Hughes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Counting months between two dates I want to determine the number of months between two dates. Is there a function in PHP or a way to make strtotime do the job? For instance, how many months between 2001-08-27 and 2002-06-05. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: April fools day - did anyone notice Thies's fangs on rc1???
He was eating fish n chips . .but he didn;t like the chips so . . .he put them in his f..k..nose.. hahahahah -- Sapilas/dev/pinkeye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] header location redirect to frameset target
Can you specify a frameset target, i.e. _blank, in a redirect. I have a site built with frames and one of the frames has a redirect in it. Currently the redirect works but pulls the site I want up in the frame and doesn't create an entire new page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] header location redirect to frameset target
I think what your looking for is _new, but I'm not sure if you can do it in what I guess your saying is a meta refresh, I know you can as target=_new in a href. Adam Voigt [EMAIL PROTECTED] On Tue, 02 Apr 2002 10:42:19 -0800, Tom Beidler [EMAIL PROTECTED] wrote: Can you specify a frameset target, i.e. _blank, in a redirect. I have a site built with frames and one of the frames has a redirect in it. Currently the redirect works but pulls the site I want up in the frame and doesn't create an entire new page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] List server
On Wednesday 03 April 2002 01:05, Anzak Wolf wrote: On Tuesday 02 April 2002 22:10, Anzak Wolf wrote: Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. fopen(php://stdin, r); How does that relate to readline()? With fopen() you can do something like: cat textfile | myprog.php readline() is for interactive input. What exactly are you trying to do? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* It's not the inital skirt length, it's the upcreep. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: sessions
okay i'll explain a bit i want my sessions to store some values but instead of storing them their doing nothing at all here's some code // beginning of registering of values session_start(); session_register(fu); session_register(bar); $fu=fu; $bar =bar; // end of registering values //getting values $fu = $HTTP_SESSION_VARS[fu]; echo $fu; //end of getting values R. Lindeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i have a problem with PHP sessions and maybe some of you could help what do i need in my php.ini to get them to work !!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php