Re: [PHP] $PHPSESSID on PHP 4.1.0

2001-12-17 Thread Morten Winkler Jørgensen
JNT> If I do this: JNT> echo $PHPSESSID; I've encountered the same when instaling the Mandrake Linux 8.1 with a precompiled php - also 4.1.0. Sessions just doesn't seem to work no matter how I access them. I installed Redhat 7.1 on my server again, and left the problem for my ISP. Kind reg

RE: [PHP] php in free()

2001-12-17 Thread Niklas Lampén
Your code runs more than 30 seconds. Try using set_time_limit(n) function. Niklas -Original Message- From: Rick [mailto:[EMAIL PROTECTED]] Sent: 18. joulukuuta 2001 2:46 To: [EMAIL PROTECTED] Subject: [PHP] php in free() I'm running a script that times out durring a certian action.

[PHP] Ftp PORT problem

2001-12-17 Thread Conrad Strydom
Damn , i hate ftp'ing twas the simplest thing in development but noe i'm trying to deploy!! Pleez help! Getting an WARNING! ftp_put! PORT command succesfull on also the file doesn't seem to be uploading!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

RE: [PHP] htaccess problems

2001-12-17 Thread Jack Dempsey
i don't think you want that space inbetween private/ and .htpasswd -Original Message- From: Jeremiah Jester [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:38 AM To: Php-General Subject: [PHP] htaccess problems I cant seem to get my htaccess file to work. Can anyone help?

[PHP] htaccess problems

2001-12-17 Thread Jeremiah Jester
I cant seem to get my htaccess file to work. Can anyone help? Heres what i have now: AuthUserFile /var/www/html/private/ .htpasswd AuthGroupFile /dev/null AuthName PrivateDomain AuthType Basic require valid-user I then type 'htpasswd -c .htpasswd myusername' and then set password. Everything

[PHP] Serious Problems (Apache/PHP/Sessions)

2001-12-17 Thread lee
Ive been trying to get IMP 3.0 RC3 (web-based IMAP client) to work under php / apache / imap2000 c-client. When I install php 4.0.6 or 4.1.0 with apache 1.3.20 or 1.3.22 using dso/apxs everything works except for one major problem: After one is logged in (a session is opened) for a while (and

[PHP] Error handling

2001-12-17 Thread Yoel Benitez Fonseca
Hi! There is in PHP some way to handle errors like in other languages, I mean, something like this: . . . try to do ... if error then do ... . . . I'm tired of reciving warnings :-( -- Yoel Benitez Fonseca -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] php dir listing a couple of solutions

2001-12-17 Thread php
Hello Jeremiah, There is a variety of options to list files in a directory. This will list sort files by date. $file".date( "F d Y H:i:s",$time)." "; } } krsort($data); while(list($key,$val) = each($data)){ echo $val; } ?> This one gets a tag out of a document (.*)", $file, $title_array);

Re: [PHP] $PHPSESSID on PHP 4.1.0

2001-12-17 Thread Tom Rogers
Hi One way is or if cookies aren't used try $PHPSESSID seems to only get set if it comes back as a cookie Tom At 04:39 AM 18/12/01, Julio Nobrega Trabalhando wrote: > Hi All, > > I have a few scripts using $PHPSESSID to softly disable cookies >requirement on some pages. I just installed PH

[PHP] php in free()

2001-12-17 Thread Rick
I'm running a script that times out durring a certian action. Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/web/htdocs/mail/functions.php on line 1200 The error logs say: php in free(): warning: recursive call. The offending lines of code, and here's what really gets

[PHP] Re: array in sessions

2001-12-17 Thread Phillip Oertel
Gregor Jaksa wrote: > Hello, > > is it possible to register array in session .. something like that: > session_register("ex_array[field1]"); > session_register("ex_array[field2]"); session_register("ex_array") -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] array in sessions

2001-12-17 Thread Nick Winfield
On Tue, 18 Dec 2001, Gregor Jaksa wrote: > Hello, > > is it possible to register array in session .. something like that: > session_register("ex_array[field1]"); > session_register("ex_array[field2]"); > > this example of course doesnt work :), so if anyone knows a solution, plz > tell Why not j

[PHP] array in sessions

2001-12-17 Thread Gregor Jaksa
Hello, is it possible to register array in session .. something like that: session_register("ex_array[field1]"); session_register("ex_array[field2]"); this example of course doesnt work :), so if anyone knows a solution, plz tell thx -- PHP General Mailing List (http://www.php.net/) To unsu

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

2001-12-17 Thread David
you can do this to get what u want: foreach($_GET as $key => $val){ $$key = $val; } this is what u want to do, right? :) >for all in $_GET >{ >$[varname] = $_GET[varname] >} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Cookie Name=Value Pairs

2001-12-17 Thread Bas van Rooijen
I don't know! But if you're only accesing the cookie from PHP you could use serialize()/unserialize() or *sessions*, they both work even on full objects. bvr. On Mon, 17 Dec 2001 16:30:28 -0700, Zach Curtis wrote: >What is the syntax to set multiple name=value pairs in a cookie? > >Thanks.

Re: [PHP] Re: Returning html code-PROB SOLVED

2001-12-17 Thread Kevin Stone
Ahh.. I was about to reply but nevermind. The two functions you're talking about are addslashes() and stripslashes(). Yes those are very handy. :) > > > > 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

[PHP] Re: Returning html code-PROB SOLVED

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? Figured it out. I completely forgot about two php functions that escape prob

[PHP] Cookie Name=Value Pairs

2001-12-17 Thread Zach Curtis
What is the syntax to set multiple name=value pairs in a cookie? Thanks. Zach Curtis POPULUS -- 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 PROTE

Re: [PHP] php dir listing

2001-12-17 Thread Bas van Rooijen
scripts like this are widely available. check: sourceforge.net/projects/phpfilemanager/ bvr. On Mon, 17 Dec 2001 14:55:48 -0800, Jeremiah Jester wrote: >Anyone have a php directory listing script that creates clickable links for >all items in folder list? > >JJ -- PHP General Mailing L

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

2001-12-17 Thread Sterling Hughes
> > Hi Bas! > > SSH is possible but complicated. > Not really, just create a tunnel... -Sterling -- 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: [

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

2001-12-17 Thread Michael Jurgens
Hey Guys, Thanks a lot, I allways use some config files that I include in every page, and with "extract ($_REQUEST);" added to one of those files, almost all of my problems are history. I'm now working on getting $PHP_SELF etc back working, but that should work out. Amazing this newsgroup, thank

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

2001-12-17 Thread Jack Dempsey
i understand that, but if he extracts inside a function, those variables will be in that scope. if his auto_prepend file is simply 'extract($_GET)' then that'd be fine as well jack -Original Message- From: Charles Williams [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 5:59 P

[PHP] php dir listing

2001-12-17 Thread Jeremiah Jester
Anyone have a php directory listing script that creates clickable links for all items in folder list? JJ -- 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: [E

[PHP] Re: Displaying html

2001-12-17 Thread Fred
It depends on how you have magic quotes set up in your php.ini file. Mine are set up as follows: magic_quotes_gpc On On magic_quotes_runtime Off Off which I believe is the default, because I certainly never changed them. I have never had a problem simply inserting or selecting html without the n

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

2001-12-17 Thread Charles Williams
Jack $_GET is automatically global to all scopes. No need to globalize. chuck - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: "Michael Jurgens" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 10:49 PM Subject: Re: [PHP] PHP 4.10: any way to

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 Su

[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 a

[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: 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] 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] * *(borrowed from Paul) -- PHP General Mailing Li

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 T

[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, e-mail:

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 t

[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

[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,

[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 um...

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 G

RE: [PHP] 'Select All'

2001-12-17 Thread Martin Towell
you _can_ reference it by name - try this: function my_select(type) { frm = document.forms.test; ele = frm["mycheckbox[]"]; len = ele.length; for (i = 0; i < len; i++) ele[i].checked = type; } Martin -Original Message- From: Shane Wright [mailto:[E

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: Monday

[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 ap

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 set_register_globals

[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 doin

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

[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 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 register

[PHP] RE: mysql php error

2001-12-17 Thread LaserJetter
try 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 right folder etc and

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] 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

[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] 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 erro

[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 . I'm using php version 4.06 on Win2000 Advanced Server. Code sample... $val) { foreach($val as $sub_key=>$value) {

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 woul

[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 t

[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]

[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] 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 '/apache/htdocs/helloworld.php

[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

[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

[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 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] 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 ex

[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 unsub

[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 ser

[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 wa

[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 throug

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 so

[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 Ma

[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: It doesn't show nothing at all. Did something changed, does this var now have a new nam

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() - http:

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 (http:

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
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.

[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 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 Al

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

[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 a

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 PROTECTED]

[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

[PHP] Re: PHP as a web browser?

2001-12-17 Thread Fred
Try using CURL. http://php.he.net/manual/en/ref.curl.php Fred David Yee <[EMAIL PROTECTED]> wrote in message 012501c186cf$3e14b020$[EMAIL PROTECTED]">news:012501c186cf$3e14b020$[EMAIL PROTECTED]... > Is it possible to have PHP act like a web browser, accept cookies and post > data (for login)?

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 content

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

[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. http

[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 Viru

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

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_AU

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] 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 th

[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] 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 src

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

[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 f

[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, simpl

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 qu

[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]

[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 pict

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 ""; foreach($my_array as $key=>$value) { echo "$key"; for($i=1;$i<=$num_columns;$i++) { echo "".$value[$i-1]."";

[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=fr&server=1&db=photo&table=Users_x_magasin&pos=0&sql_query=SE LECT+%60UXM_id%60%2C%60U_email%60%2C%60MAG_id%60%2C%60UXM_paiement_magasin%6 0%2C%60

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 ADMINISTRATOR.PROC

[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 (ora_

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 documen

  1   2   >