[PHP] postgres session handling

2001-12-17 Thread James Gregory
I have need to get php to use postgres to store session information. I've changed the directive in php.ini and written a set of functions that should do the job and I've made the call to set the session handler. The following simple test case works: ? require_once ('database.php');

Re: [PHP] Goofy interactions between $this and vars in classs. 4.1.0

2001-12-17 Thread Maxim Derkachev
Hello Mark, Monday, December 17, 2001, 11:05:15 AM, you wrote: M However, if I Change the Zabba function to: M function Zabba() M { M $localVariable = $this; M $localVariable-addValue(asdfasdfasdf); M } M Then I will get on

RE: [PHP] PHP as a web browser?

2001-12-17 Thread Lawrence . Sheed
you may want to look at the curl functions as a start. thats most of the functionality down already. otherwise you'll have to parse raw data. not too hard, but can be painful to keep stateful info. you'll also have to rewrite code when the interface changes, you'll probably want to look at

[PHP] Checking a frames url..

2001-12-17 Thread Necro
Lo all, I am trying to write a script that will output to a frame the current location within a site.. like Home :: Contact I need PHP to be able to check the url of the frame main and then parse out anything after the domain to decide what to output as the location. e.g.

Re: [PHP] PHP as a web browser?

2001-12-17 Thread Stefan Rusterholz
if you want a php-only solution, you should probably also consider fsockopen. http://www.php.net/manual/en/function.fsockopen.php best regards Stefan Rusterholz - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 17, 2001 9:26

php-general Digest 17 Dec 2001 10:15:05 -0000 Issue 1057

2001-12-17 Thread php-general-digest-help
php-general Digest 17 Dec 2001 10:15:05 - Issue 1057 Topics (messages 77884 through 77924): large object problem 77884 by: David H 77907 by: Manuel Lemos URL checking 77885 by: trx 77903 by: Phillip Oertel Question for you MySQL gurus... 77886 by:

[PHP] RE: problem finding out original filename while using php to upload.

2001-12-17 Thread Jerry Verhoef (UGBI)
You could also use the function getimagesize this will tell what kind of image it is, and if it is not an image it will return false. GD LIB is NOT needed for getimagesize. Kind Regards, Jerry Verhoef -Original Message- From: Daniel Grace [mailto:[EMAIL PROTECTED]] Sent: Monday,

Re: [PHP] mysql_query() problem

2001-12-17 Thread Girish Nath
Hi Try the following to find out what's happening : $result = mysql_query($query,$conn) or die (mysql_error()); Or try echo'ing $result to see what it contains. It should contain something like this if everything is working fine : Resource id #2 Regards Girish - Original Message -

Re: [PHP] Logo proposal - voting script!

2001-12-17 Thread Nicolas Costes
Arg - Not Found The requested URL /vote/logo.php was not found on this server. Apache/1.3.22 Server at zoon.se Port 80 -- What's happenin' ?? Le Vendredi 14 Décembre 2001 18:50, Andrew Chase a écrit : Hmm, I get a 404 error as of 17:44 GMT. I hope

[PHP] LIBXML- Auto-Indent - How do it?

2001-12-17 Thread Junior, Ricardo
Hi All, I would like to know if there is any way to auto-indent the XML file when I add a new node in a docxml object and export the string of the created XML file with dumpmem() function... For example: $new = new_xmldoc(1.0); $root = $new-add_root(ROOT); $level1 = $root-new_child(LEVEL-1, );

RE: [PHP] LIBXML- Auto-Indent - How do it?

2001-12-17 Thread Junior, Ricardo
The conversion to plain text mail format changed the correct indent that I need I'm needing it like this: ROOT LEVEL-1 LEVEL2/ /LEVEL-1 /ROOT Thanks !!! _ Ricardo J. A. Júnior, Software Engineer Trainee Bowne Global Solutions Phone

RE: [PHP] Checking a frames url..

2001-12-17 Thread Richard Black
You can get the URL of a frame using JavaScript - maybe you could pass this in somehow to the PHP script??? -Original Message- From: Necro [SMTP:[EMAIL PROTECTED]] Sent: 17 December 2001 08:59 To: [EMAIL PROTECTED] Subject:[PHP] Checking a frames url.. Lo all, I am

RE: [PHP] Session storage and the --with-mm option

2001-12-17 Thread Jaime Bozza
John (and all), I was using --with-mm on my system and immediately saw a jump in memory usage and I wasn't even using the mm session support! The memory doubled from 4.0.6 to 4.1.0. I've since removed it from my compile. Jaime Bozza GeoComm International Corp. -Original Message-

RE: [PHP] LIBXML- Auto-Indent - How do it?

2001-12-17 Thread Christian Stocker
In 100984FEB15DD511BA9300104B6980760AC36B@EXCHANGE-RIO, Ricardo Junior wrote: The conversion to plain text mail format changed the correct indent that I need I'm needing it like this: ROOT LEVEL-1 LEVEL2/ /LEVEL-1 /ROOT Thanks !!! no need to scream here :)

[PHP] multicolumn table

2001-12-17 Thread Rodrigo Peres
Hi list, I've tried for many times, but couldn't make a table with 3 columns and n rows This is my code, someone please, can help in make it outputs a 3 column table?? $sql = SELECT categorias.Nome_Categoria,celebridades.CelebID,celebridades.Nome_Artistico, lcase(left(Nome_Artistico,1)) as

RE: [PHP] LIBXML- Auto-Indent - How do it?

2001-12-17 Thread Christian Stocker
In 100984FEB15DD511BA9300104B6980760AC36B@EXCHANGE-RIO, Ricardo Junior wrote: The conversion to plain text mail format changed the correct indent that I need I'm needing it like this: ROOT LEVEL-1 LEVEL2/ /LEVEL-1 /ROOT Thanks !!! no need to scream here

Re: [PHP] multicolumn table

2001-12-17 Thread Andrey Hristov
try to start the sql at a prompt and post the error which mysql returns Regards, Andrey Hristov - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday, December 17, 2001 4:04 PM Subject: [PHP] multicolumn table Hi list, I've tried for

[PHP] can php pretend to be a MSIE or Netscape?

2001-12-17 Thread Sebastian
hi all how do i prevent php from exposing itself when opening url with fopen() ? kann i make it look like MSIE or whatever? reaons : i want to query google by script but it does not allow that... Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Logo proposal - voting script!

2001-12-17 Thread Michael Cronström
Let´s say the site was attacked, abused or so so we don´t run it anymore;-| Anyhow, even I say: LEAVE IT THE WAY IT IS!!! Michael Cronstrom Web Inventor [EMAIL PROTECTED] At 13:36 17/12/01, you wrote: Arg - Not Found The requested URL /vote/logo.php was not

Re: [PHP] User Authentication

2001-12-17 Thread Paul Burney
on 12/16/01 12:58 PM, Daniel Grace at [EMAIL PROTECTED] wrote: Anyways, though the 401 part works and actually brings up the typical Enter Username/Password box, $PHP_AUTH_USER and $PHP_AUTH_PW are not being set. There are no .htaccess files in the directory (or any parent dirs for that

Re: [PHP] can php pretend to be a MSIE or Netscape?

2001-12-17 Thread Stefan Rusterholz
You should be able to using fsockopen. You can use the class below and modify it. Search the class for the string User-Agent: and change what's behind. http://phpclasses.upperdesign.com/browse.html?file=1222 happy querying Stefan Rusterholz - Original Message - From: Sebastian [EMAIL

[PHP] PHP + DB2

2001-12-17 Thread Rares Vasilescu
hi Anyone here used PHP to connect to a IBM DB2 database? Of course, using ODBC. I am having difficulties calling stored procedures with input/output parameters. Any help is appreciated. Rares

[PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)

2001-12-17 Thread usenet6
I have a php document which I direct my server to use as a 404 error doc. In it I write: print $REQUEST_URI\n; print $HTTP_REFERER\n; The thing is I get the the error page itself in place of $REQUEST_URI and $HTTP_REFERER is blank. any suggestions as to how I can get the URL which the user

RE: [PHP] PHP + DB2

2001-12-17 Thread Andrew Hill
Rares, Using ODBC should be fine; what problems are you having with input/output parameters? Also, what ODBC drivers are you using? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology

Re: [PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)

2001-12-17 Thread Bas van Rooijen
PHP 4.1.0 : $_SERVER[REDIRECT_URL] and $_SERVER[REDIRECT_STATUS] PHP 4.0.6 and earlier: $HTTP_SERVER_VARS[REDIRECT_URL] and $HTTP_SERVER_VARS[REDIRECT_STATUS] greets, bvr. On Mon, 17 Dec 2001 14:27:45 GMT, [EMAIL PROTECTED] wrote: I have a php document which

Re: [PHP] multicolumn table

2001-12-17 Thread Rodrigo Peres
Sorry list, I think, I was not clear enough. I don't have errors, what I could do with this code is output a table in alphabetical order ex: A a.. ab.. B b... bc... But what I really need and I couldn't make work is, my table output one name per row and a long one singlke column, and I need a

Re: [PHP] Using PHP in an HTTP 404 error document ($HTTP_REFERER is blank)

2001-12-17 Thread Andrey Hristov
Maybe you use 4.1.0 and register_globals is off (in php.ini). try this var_dump($HTT_SERVER_VARS); Regards, Andrey Hristov - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 17, 2001 4:27 PM Subject: [PHP] Using PHP in an HTTP 404 error document

Re: [PHP] PHP + DB2

2001-12-17 Thread Rares Vasilescu
Using ODBC should be fine; what problems are you having with input/output parameters? I have a stored procedure like this: CREATE PROCEDURE ADMINISTRATOR.Proc2 (IN idc INT,OUT max int) . P1: BEGIN SET max = 22; END P1 And I try to call it like this: $ps = CALL

[PHP] stat failed error

2001-12-17 Thread Matthieu Brunet
Since I've installed the 4.1 version of PHP, i have a lot of stat failed warning. By exemple, in PHPmyAdmin : Warning: stat failed for ./sql.php?lang=frserver=1db=phototable=Users_x_magasinpos=0sql_query=SE LECT+%60UXM_id%60%2C%60U_email%60%2C%60MAG_id%60%2C%60UXM_paiement_magasin%6

Re: [PHP] multicolumn table

2001-12-17 Thread jimtronic
Try something like this... $my_array = array( A=array(1,2,3),B=array(1,2,3),C=array(1,2,3)); $num_columns = 3; echo table; foreach($my_array as $key=$value) { echo trtd$key/td; for($i=1;$i=$num_columns;$i++) { echo td.$value[$i-1]./td; }

[PHP] Using persistent connection to database

2001-12-17 Thread Berlina
Hi to everybody, first sorry for my poor english. im trying to use persistents connections to an Oracle Database through PHP, for manageing transactions, and have some problems. My Schema: * Web Server: Apache 1.3.20 on a Linux RedHat 7.0 * PHP: 4.0.6 compiled with oracle module functions

[PHP] another GD problem

2001-12-17 Thread Jan Maska
I have a problem.. I build some images by GD library via PHP.. Next, I need them to contain some text (i.e. date) I use the ImageString function, with color allocation black (ImageColorAllocate($img,0,0,0)). And there's the problem: IE5.0+ display the pictures properly... bud NN 4.7 draws the

[PHP] sending Email

2001-12-17 Thread William Sanchez Sanchez
is imap_mail() currently available in Win32?? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] multicolumn table

2001-12-17 Thread Jeremy Peterson
Here is a script I use to create columns. I wrote this my first month phping, so it may be ugly. (Hence it may not be up to my new standards... :) Not to mention, this was designed for creating menu button which sounds different than what you do. I use it as follows: display_columns( mysql

[PHP] Re: another GD problem

2001-12-17 Thread Jan Maska
I take it back.. after some time of tracing the error, I found out that I handed over the date as a string argument (img src=image.php?date=25. 01. 2001...) And the problem were the whitespaces.. If you run into similiar trouble, just URLEncode the string, and before using it in imagePHP, simply

[PHP] PHP not able to send email

2001-12-17 Thread Peter
Hi, Recently, I have found that I have had a problem sending emails with particular accounts on my RedHat Linux 6.2 server using Sendmail-8.9.3. There are two examples of my inability to send email and I think they are related. I have a PHP script used to send email and the user rights of the

Re: [PHP] PHP not able to send email

2001-12-17 Thread Andreas Landmark
On Mon, Dec 17, 2001 at 11:48:13PM +0800, Peter wrote: Dec 17 12:59:16 ns sendmail[14686]: NOQUEUE: SYSERR(webuser): queuename: Cannot create qfMAA14686 in /var/spool/mqueue Your sendmail-setup is b0rked, check permissions on /var/spool and fix sendmail, there's nothing wrong with PHP (read:

Re: [PHP] Re: another GD problem

2001-12-17 Thread Bas van Rooijen
Small comment: No need to use urldecode() here, as the data is automatically decoded during submit. greets, bvr. On Mon, 17 Dec 2001 17:11:33 +0100, Jan Maska wrote: I take it back.. after some time of tracing the error, I found out that I handed over the date as a string argument (img

[PHP] How can i send eMail under Win32

2001-12-17 Thread William Sanchez Sanchez
I need to send eMail under Win32 Regards.. William -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Why don't ...

2001-12-17 Thread Yoel Benitez Fonseca
H! Thank you, but yuor fragment of code read all file and I'm really want is read an integer from the file. There are some fuction of PHP thas serve me to make that? Rasmus Lerdorf said: Is your second character perhaps a 0? That while loop is going to end as soon as it gets a character

Re: [PHP] PHP not able to send email

2001-12-17 Thread Peter
WOW! You were right! It worked! But how did it happen in the first place? Thanks a lot for your help. On Mon, 17 Dec 2001, Andreas Landmark wrote: On Mon, Dec 17, 2001 at 11:48:13PM +0800, Peter wrote: Dec 17 12:59:16 ns sendmail[14686]: NOQUEUE: SYSERR(webuser): queuename: Cannot

Re: [PHP] User Authentication

2001-12-17 Thread Daniel Grace
Paul Burney [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on 12/16/01 12:58 PM, Daniel Grace at [EMAIL PROTECTED] wrote: Anyways, though the 401 part works and actually brings up the typical Enter Username/Password box, $PHP_AUTH_USER and $PHP_AUTH_PW are

Re: [PHP] How can i send eMail under Win32

2001-12-17 Thread Valentin V. Petruchek
Mail() function works fine on win32, you need enter smtp server in your php.ini and sendfrom address. example: SMTP = 10.1.25.1 ; for Win32 only sendmail_from = [EMAIL PROTECTED] Zliy Pes, http://zliypes.com.ua - Original Message - From: William Sanchez Sanchez [EMAIL PROTECTED] To:

[PHP] PMA worry

2001-12-17 Thread Seb Frost
Just got this. Never had it before. Am I being hacked? Warning: Too many connections in /htdocs/PMA/lib.inc.php3 on line 305 Warning: MySQL Connection Failed: Too many connections in /htdocs/PMA/lib.inc.php3 on line 305 Error MySQL said: Too many connections --- Outgoing mail is certified

[PHP] Re: LIBXML- Auto-Indent - How do it?

2001-12-17 Thread Manuel Lemos
Hello, Ricardo Junior wrote: Hi All, I would like to know if there is any way to auto-indent the XML file when I add a new node in a docxml object and export the string of the created XML file with dumpmem() function... This PHP Class generates properly indented XML as you need.

Re: [PHP] Re: large object problem

2001-12-17 Thread David H
Manuel, Thanks for the comment. I am able to load the output correctly, if I do a import directly from the server. I am only having trouble with the upload code. Any idea from the code below? Thanks, David --- Manuel Lemos [EMAIL PROTECTED] wrote: Hello, David H wrote: Hi all, I

Re: [PHP] Re: large object problem

2001-12-17 Thread Manuel Lemos
Hello, David H wrote: Manuel, Thanks for the comment. I am able to load the output correctly, if I do a import directly from the server. I am only having trouble with the upload code. Any idea from the code below? Sure, the problem is that you think that $img contains the contents of

[PHP] Re: streaming media via php

2001-12-17 Thread Mike Eheler
Try re-writing your script to accept the url as such: http://server/content.php/media/file.asf Mike Stephen Vandyke wrote: Hello PHP people :) I have a tough one here, I wrote a content script that plays media files, but I can't seem to get things to actually buffer and stream as they

Re: [PHP] Checking a frames url..

2001-12-17 Thread Fred
This will not work. JavaScript is a client side language and will not have the frame information until the browser has the web page, at which time all parsing of the php code (done on the server side) is already complete. Fred Richard Black [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] 'Select All'

2001-12-17 Thread Shane Wright
Hi I'm having somewhat of a problem :( I have my banks of checkboxes, all named 'mycheckbox[]' with the values as different IDs. The user happily checks a few of them and my scripts happily process the resulting arrays. But... how do I get Javascript to do a 'select all' on them?? I cant

Re: [PHP] Checking a frames url..

2001-12-17 Thread Charles Williams
Necro, inline below - Original Message - From: Necro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 17, 2001 9:58 AM Subject: [PHP] Checking a frames url.. Lo all, I am trying to write a script that will output to a frame the current location within a site.. like

Re: [PHP] 'Select All'

2001-12-17 Thread Charles Williams
Shane, is this meant for initial settings of the form only or as a button, or some such, to allow someone to select all the boxs? chuck - Original Message - From: Shane Wright [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 17, 2001 6:54 PM Subject: [PHP] 'Select All'

[PHP] Delete File Contents?

2001-12-17 Thread Chris
I've created a program that runs a process then stores the results to a file on the server. I would like the file to contain only the most recent update, but it seems I can only append to my using fopen. Is there a way to open the file and overwrite the data in that file? I've considered deleting

Re: [PHP] 'Select All'

2001-12-17 Thread Bas van Rooijen
I know *exactly* what you mean, the solution (took me at least an hour) is attached. have fun, bvr. On Mon, 17 Dec 2001 17:54:42 +, Shane Wright wrote: Hi I'm having somewhat of a problem :( I have my banks of checkboxes, all named 'mycheckbox[]' with the values as different IDs. The

Re: [PHP] 'Select All'

2001-12-17 Thread Shane Wright
Hi Charles, As a button, ideally two in fact - 'select all' and 'unselect all'. I've done it easily with ASP sites - where the '[]' is not required to have the values passed back as an array. (I know I could find a non-array way of doing it but its a pain) -- Shane On Monday 17 Dec 2001

Re: [PHP] 'Select All'

2001-12-17 Thread Bas van Rooijen
Oh, one more thing.. The latest MSIE suddenly doesn't seem to support the function to be named 'selection' . change that and it'll work ;) bvr. I know *exactly* what you mean, the solution (took me at least an hour) is attached. have fun, bvr. -- PHP General Mailing List

RE: [PHP] Delete File Contents?

2001-12-17 Thread Jeremy Allen
Just open the file in mode w. $fp = fopen(your_file, w); There is also the the function fseek(), which will allow you to move the file pointer around to any place in the file. Mode w will suffice for your needs. fopen() - http://www.php.net/manual/en/function.fopen.php fseek() -

[PHP] $PHPSESSID on PHP 4.1.0

2001-12-17 Thread Julio Nobrega Trabalhando
Hi All, I have a few scripts using $PHPSESSID to softly disable cookies requirement on some pages. I just installed PHP 4.1.0 and I am porting some lines to adapt to the new version. If I do this: ?php echo $PHPSESSID; ? It doesn't show nothing at all. Did something changed, does

[PHP] telnet or ssh in PHP (Curl?)

2001-12-17 Thread Bas van Schaik
Hello everybody! I need some help. I want to use a SSH (or, if SSH is impossible, telnet) connection in PHP. But I can't find anything about it. The only thing about telnet in the PHP manual (English), is that Curl supports it, but how? Tanks in advance for all replies! Bas -- PHP General

Re: [PHP] telnet or ssh in PHP (Curl?)

2001-12-17 Thread Bas van Rooijen
Hi Bas! SSH is possible but complicated. For telnet, simply use fsockopen() (default telnet port is 23). This returns a filepointer so you can read/write like as a regular file. greets, Bas van Rooijen On Mon, 17 Dec 2001 17:28:04 +0100, Bas van Schaik wrote: Hello everybody! I need some

[PHP] Re: Using persistent connection to database

2001-12-17 Thread John Lim
I would recommend switching to the oci_* functions. More reliable. Bye, John Berlina [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi to everybody, first sorry for my poor english. im trying to use persistents connections to an Oracle Database through PHP,

[PHP] Re: Delete File Contents?

2001-12-17 Thread Matt Friedman
http://www.php.net/manual/en/function.ftruncate.php Chris writes: I've created a program that runs a process then stores the results to a file on the server. I would like the file to contain only the most recent update, but it seems I can only append to my using fopen. Is there a way

[PHP] installing php on apache

2001-12-17 Thread Jeremiah Jester
i'm having trouble running php on my linux box running apache. the rpm is installed but cant get my simple script to execute. What else do i need to do. Edit php.ini? Edit httpd.conf? Peremissions? Apache runs fine by itself. Thanks. JJ -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: installing php on apache

2001-12-17 Thread LaserJetter
You need to add lines to the httpd.conf file and maybe edit the php.ini file. On windows, the instructions for doing this are in install.txt which is found in the directory in which PHP was installed. If doing this doesnt help (make sure you restart apache!), I'm not sure what to do as my Linux

[PHP] http message

2001-12-17 Thread LaserJetter
Is there a way for PHP to attempt to open a URL and return the HTTP response header? For example, I want to make a PHP page which will redirect a visitor to a mirror site if it encounters a 404 Not found error whilst trying to open the website homepage. This test page will reside on a seperate

[PHP] Re: http message

2001-12-17 Thread Phillip Oertel
see my message Re: URL checking. i just posted a few curl functions that do exactly what you want to. phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] please help! ./common_db.inc'

2001-12-17 Thread Caleb Carvalho
Hi all, this is my first real php program -can any one explain to me what this error message means? Warning: Failed opening './common_db.inc' for inclusion (include_path='') in /var/www/html/myphp/ex.php on line 2 thanks a lot, Caleb

[PHP] Re: http message

2001-12-17 Thread David
use fsockopen http://www.php.net/manual/en/function.fsockopen.php to \talk\ to the remote host. Is there a way for PHP to attempt to open a URL and return the HTTP response header? For example, I want to make a PHP page which will redirect a visitor to a mirror site if it encounters a 404

[PHP] Re: replacing Carriage Return

2001-12-17 Thread Phillip Oertel
Phantom wrote: I solicit information from a text field and save the data in mysql to be pulled out later and displayed as text on a webpage. However, Carrage Returns in the text field do not appear in the webpage text. they're not supposed to show up in HTML ! you need to replace the

[PHP] PHP 4.1.0 SAPI on Apache Win32?

2001-12-17 Thread Garth Dahlstrom
I'm wondering if anyone else is trying to run the SAPI version of PHP on Apache for Win32 and hitting problems with the include_path? I'm running Win2K, if I set the include_path parameter to any non-blank value I get an error as follows: Warning: Failed opening

[PHP] Re: please help! ./common_db.inc'

2001-12-17 Thread LaserJetter
It couldnt open ./common_db.inc which you referenced in an include() function on line 2 of /var/www/html/myphp/ex.php Its a bit like the PHP version of the 404 not found message. Check the path for typing mistakes etc. You might like to try using ../../dir1/dir2 instead of ./ Caleb Carvalho

[PHP] fopen - permission denied

2001-12-17 Thread DigitalKoala
Hi Folks, I've been scanning the documentation for a simple answer to this.. but can't seem to find one. How can I solve fopen(/path/filename,w) running from my script - without it resulting in a permission denied error? I'm not sure what it is in my apache conf file that I have to change to

[PHP] Re: http message

2001-12-17 Thread LaserJetter
Thanks all of you. I'm sure one of these will work!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP as a web browser?

2001-12-17 Thread Matt McClanahan
On Sun, Dec 16, 2001 at 11:48:38PM -0800, David Yee wrote: Is it possible to have PHP act like a web browser, accept cookies and post data (for login)? I'm not sure exactly where to start- I know you can use fopen/file to retrieve url's but I'm not too sure about the other steps. I would

[PHP] printer_write()

2001-12-17 Thread Michael Eaton
Hello php-general, I can print directly from the server, but from the script page I get Warning: couldn't allocate the printerjob in code line whatever. I'm using php version 4.06 on Win2000 Advanced Server. Code sample... ? $DATA = array(Test Header, Test Page); //dump list of local

[PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Michael Jurgens
Hi, Now that register_globals is (or will be) OFF by default (just like error_reporting) I'm facing a huge rewrite of existing code if my hosting provider decides that he wants to upgrade his php (and believe me, he will use default settings) Is there any way to override register_globals and

[PHP] How deep can I go with embedded if s.

2001-12-17 Thread Mehmet Kamil ERISEN
Hello All, Is anybody aware of any limitations of php on embedded if ..else statements? For example: if ($a$b) { if ($c$d) { this(); } else { if ($gg==$dd) { echo 'ladooo'; } else { echo

[PHP] mysql php error

2001-12-17 Thread Jeremiah Jester
im trying to run phpMyAdmin but everytime i try to pull the index.php file or any other associated with the MyAdmin program i get the following error in my browser: cannot load MySQL extension, please check PHP Configuration. I'm guessing this means mysql is not installed properly or the php.ini

Re: [PHP] How deep can I go with embedded if s.

2001-12-17 Thread jimtronic
Well, I just made a test program that nested 1000 if() statements and it worked. Just make sure you close all your curly brackets correctly. IMHO, a large number of nested if else elseif statements indicate poor programming design. Sometimes they are necessary, but usually can be simplified

[PHP] RE: mysql php error

2001-12-17 Thread LaserJetter
try ?PHP phpinfo(); ? to see if there's any clues in there make sure the mysql daemon is running (not sure how to do this) see if you can connect using the MySQL client (not PHP). If you can then MySQL is running ok It sounds like the mysql exetension is damaged of missing. Check its in the

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
a quick and inelegant hack 4.1 includes an array that has all of the data sent to the script...(or use the different ones like $_GET etc if need be) then write a globalize function that extracts the vars and declares them global...then use this snippet in an auto_prepend file to magically

[PHP] mySQL INSERT question

2001-12-17 Thread Mike Krisher
I suppose this is more of a SQL question, but how do I insert a row into a table right before the very last row in the table. I am sure there is a way to insert a row other than just at the beginning or end of a table but I can't find the syntax on the mySQL site. Anyone know? » Michael Krisher

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Richard Heyes
a quick and inelegant hack 4.1 includes an array that has all of the data sent to the script...(or use the different ones like $_GET etc if need be) then write a globalize function that extracts the vars and declares them global...then use this Or use extract(). -- Richard Heyes If

[PHP] electronic postcard recommendation?

2001-12-17 Thread Brian Tully
hi there :) i've been asked to implement an electronic postcard app for a client's website, and was wondering if anyone can recommend an existing implementation, be it open source or commercial -- preferably PHP!. I found a couple of CGI scripts that do a minimal job, but i'm not to keen on

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Michael Jurgens
Thank you for your answers. The hack seems the way to go, but I haven't found anything like this on the net. Presumably because the 'problem' is so new... I have absolutely no control over my hosting providers settings, and I wish PHP 4.10 would just understand something like

[PHP] Re: electronic postcard recommendation?

2001-12-17 Thread LaserJetter
I've just been sending some from totl.net. I'm not sure how they do it though and I think they've written the code themselves. Brian Tully [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi there :) i've been asked to implement an electronic postcard app for

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
exactly...in the function you'd have to extract the variables then globalize them... or you could loop through the arrays and store the keys and values in the globals array...that loop should be simple... jack -Original Message- From: Richard Heyes [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] 'Select All'

2001-12-17 Thread Martin Towell
you _can_ reference it by name - try this: script function my_select(type) { frm = document.forms.test; ele = frm[mycheckbox[]]; len = ele.length; for (i = 0; i len; i++) ele[i].checked = type; } /script form name=test input type=button value=All

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Richard Heyes
for all in $_GET { $[varname] = $_GET[varname] } Could anyone give me some pointers in actually programming this? extract($_GET); -- Richard Heyes If you have any trouble sounding condescending, find a Unix user to show you how it's done. - Scott Adams -- PHP General

[PHP] Re: mySQL INSERT question

2001-12-17 Thread Philip Hallstrom
Maybe I'm reading your question wrong, but what you are asking isn't possible and more importantly doesn't make sense. I think you're thinking of a database table as you'd think about say an excel worksheet (in that it's ordered). tables aren't ordered in that way. Think about a table as

[PHP] Re: electronic postcard recommendation?

2001-12-17 Thread Philip Hallstrom
Check www.zend.com and php.resourceindex.com and you'll probably find something... On Mon, 17 Dec 2001, Brian Tully wrote: hi there :) i've been asked to implement an electronic postcard app for a client's website, and was wondering if anyone can recommend an existing implementation, be

[PHP] Newsgroups????

2001-12-17 Thread Eddie Shipman
Just signed up for the mailing list because I couldn't access the newsgroups, what's going on there? __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at

RE: [PHP] Re: electronic postcard recommendation?

2001-12-17 Thread steph
hotscripts.com should have something. Steph -Original Message- From: LaserJetter [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: electronic postcard recommendation? I've just been sending some from totl.net. I'm not sure how

[PHP] TN3270 socket

2001-12-17 Thread brendan
does anyone know of how or where I can find info on, accessing a IBM mainframe which uses the TN3270 protocol via a socket? TN3270 isnt ordinary telnet so I assume the existing telnet socket info isnt helpful ta brendan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Newsgroups????

2001-12-17 Thread Jack Dempsey
a preventative measure against spamAFAIK you don't actually have to sign up for the e-mail list, you just need to give an e-mail address to prove you're not a spammer. jack -Original Message- From: Eddie Shipman [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 5:23 PM

[PHP] Displaying html

2001-12-17 Thread Steve Osborne
Does anyone know of an easy way to store html code in a mysql database, and then retreive it, in such a way that it can display the page as if it were a standard html page? Would using php be of benefit to me? Steve Osborne [EMAIL PROTECTED] ?php /* Happy Holidays */

[PHP] Re: Newsgroups????

2001-12-17 Thread Fred
Seems to be working fine from here. Fred Eddie Shipman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Just signed up for the mailing list because I couldn't access the newsgroups, what's going on there? __

[PHP] Re: TN3270 socket

2001-12-17 Thread Fred
http://www.faqs.org/rfcs/rfc1576.html Google Search took 0.3 seconds. Fred Brendan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... does anyone know of how or where I can find info on, accessing a IBM mainframe which uses the TN3270 protocol via a socket?

[PHP] Re: mySQL INSERT question

2001-12-17 Thread Mike Krisher
I figured out my question was a little illogical, I figured out how to get what I needed with an insert and update statement. Thanks for those that responded. » Michael Krisher [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] How deep can I go with embedded if s.

2001-12-17 Thread Charles Williams
Mehmet, If you can keep the scope ({and}) correct then you will have no problems. However, it will get kinda slow after going deep enough. chuck - Original Message - From: Mehmet Kamil ERISEN [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Monday, December 17, 2001 10:07 PM Subject:

  1   2   >