[PHP] using ereg

2001-07-02 Thread Yamin Prabudy
Hi there I need some hand here... I'm trying to write a script that call wget about like this $filename=someurl; $get=`/usr/local/bin/wget -t0 -c $filename`; while (ereg(saved,$get)) { echo file get; } from wget program i get this kind of output 0K - .. ..

[PHP] cURL and XML?

2001-07-02 Thread Petras Virzintas
Hi, has anyone successfully posted an XML data file using the PHP cURL functions? If so, could you please send an example of the curl_setopt function names used. Thanks in advance Petras

RE: [PHP] newbie has include path error new problem

2001-07-02 Thread Peter Houchin - SunRentals Australia
if the windows machine is the host machine ie for your internet http://localhost/ will only be for the windows machine so if you are tring to get to that address from your linux machine you won't be able to ... however if your machines ip was say 123.123.123.123(windows machine) then from your

[PHP] Can any one spot the Parse error Here

2001-07-02 Thread ReDucTor
Hey, Right at the end i get a prase error, which i figure i have missed a break; or a } but i just can't seem to find it, can some one look thro it, tell me if they spot it? My Code: ?php $usersfile = users.php; session_start();

Re: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread infoz
We regularly use PHP to send messages to a 100,000+ member mailing list. No problem. I did insert some periodic pauses to give the mail server some breathing room. :) - Tim http://www.phptemplates.org From: Matthew Delmarter [EMAIL PROTECTED] I at looking at using PHP to send a monthly

Re: [PHP] Can any one spot the Parse error Here

2001-07-02 Thread Andrew Halliday
Brace count mismatch. You are missing a '}'. God knows where it is...inconsistent spacing and code too lengthy. Functionise/objectise your code! AndrewH - Original Message - From: ReDucTor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 4:17 PM Subject: [PHP] Can any

Re: [PHP] Can any one spot the Parse error Here

2001-07-02 Thread ReDucTor
Only typed it up in like 20 min, i normaly do that after :) - Original Message - From: Andrew Halliday [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 5:26 PM Subject: Re: [PHP] Can any one spot the Parse error Here Brace count mismatch. You are missing a '}'. God

[PHP] Showing an Image

2001-07-02 Thread kachaloo
HI, I want to show an image from a database but to do that I am using : $result = @mysql_query($sql); $data = @mysql_result($result, 0, PICTURE); $type = @mysql_result($result, 0, FILETYPE); Header(Content-type: $type); echo $data;

RE: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread Richard Heyes
We regularly use PHP to send messages to a 100,000+ member mailing list. No problem. I did insert some periodic pauses to give the mail server some breathing room. :) Are you using the mail() function for this? Or talking direct to an smtp server? -- Richard Heyes -- PHP General

[PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)

2001-07-02 Thread Andrew Halliday
Only typed it up in like 20 min, i normaly do that [code tidying] after :) hehe tisk tisk...the merits of design havent been hammered through you yet? you are lucky!!! But, this does raise an interesting issuegood PHP code structure/form. What do people consider good PHP form? Ive coded

Re: [PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)

2001-07-02 Thread ReDucTor
Many of my other scripts i use functions, and classes, first time i used cases and switchs..was fun but i still like to use loops and functions more :) hehehee - Original Message - From: Andrew Halliday [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 6:29 PM Subject:

[PHP] Get highest value of key most efficiently

2001-07-02 Thread Kraa de Simon
Hi, SQL newbie... What is the most efficient way to get the highest value of a key value using the odbc_* functions/SQL syntax? E.g. if I have a table with key values 1,2,3...1567 I need the higest value: 1567 so I can create a new record and assign key value 1568. I don't want to read the

Re: [PHP] Get highest value of key most efficiently

2001-07-02 Thread Wieger Uffink
Hi, SELECT MAX(column_name) FROM table_name Though for what youre trying to do its better to use an autoincrementing field. That way the database will automaticly increment the key when you do an insert regards, wieger Kraa de Simon wrote: Hi, SQL newbie... What is the most efficient

[PHP] How to execute passwd with php?

2001-07-02 Thread Moise Bertrand TACHAGO
Hi, can somebody tell me how to change user password using passwd with php? -- Moise Bertrand TACHAGO Computer scientist Intern SDNP Cameroon, 506 Hajal Center Building, Yaounde CAMEROON phone (237)22 24 90 E_mails [EMAIL PROTECTED] [EMAIL PROTECTED]

[PHP] How can i read php from browser??

2001-07-02 Thread alberbeat
Hello, i have apache 1.3.19 configured with php 4. i think is configured ok because /usr/local/apache/logs/error_log says: Apache/1.3.19 (Unix) PHP/4.0.6 configured -- resuming normal operations When i connect to machine via web, the browser (netscape) don't show me the text and

[PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. It can not find the page the thing is the page that it needs to find is the same page the login form is on and the path to

RE: [PHP] Problems with Netscape

2001-07-02 Thread Jason Murray
I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. form name=login action=?$SCRIPT_URL? method=post ^ try an echo here. -- Jason Murray

Re: [PHP] Problems with Netscape

2001-07-02 Thread Tomasz Abramowicz
I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. form name=login action=?$SCRIPT_URL? method=post ^ try an echo here. dont think

Re[2]: [PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
Hello Jason, No that does not make it work any different Monday, July 02, 2001, 3:08:58 AM, you wrote: I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. Jason Murray

RE: [PHP] php / apache

2001-07-02 Thread Pétur Björn Thorsteinsson
its because I have a php file that needs a password to view - that file contains 'includes' to another script that gets images from a database and displays them. I need to make it so that only that particular php file can access these image-viewing scripts. -petur

RE: Re[2]: [PHP] Problems with Netscape

2001-07-02 Thread Jason Murray
No that does not make it work any different What did you actually *do*, though? -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Page Cannot Be Displayed

2001-07-02 Thread Dave Stewart
Fixed it. Seems I had to copy a file php4ts.dll to c:\windows\system. Found the answer here; http://www.faqts.com/knowledge_base/view.phtml/aid/5495/fid/336 Cheers, Dave - Original Message - From: Dave Stewart [EMAIL PROTECTED] To: PHP (General) [EMAIL PROTECTED] Sent: Monday, July

RE: [PHP] Passing an array to a C program from a php script??

2001-07-02 Thread Nicolas Guilhot
Here is a solution I've found for my problem. I use join to convert my array into a string. Then, I use exec to run the c program, having a pipe passing the result from an echo. I would like to know if this solution is a good one (in term of speed, security...), and would appreciate your

Re: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread Justin Farnsworth
Richard Heyes wrote: We regularly use PHP to send messages to a 100,000+ member mailing list. No problem. I did insert some periodic pauses to give the mail server some breathing room. :) Are you using the mail() function for this? Or talking direct to an smtp server? - We

Re: [PHP] Getting Information from a CGI POST

2001-07-02 Thread Clayton Dukes
Don, Thanks for the info. I'm a bit confused, When I call the function, what is the syntax as it applies to my form? ie: openpost (dps2.usairways.com, /cgi-bin/fi, FltNum=2972 page=fi); I know this doesn't work, but do you see what I mean? Forgive my ignorance, I'm still learning :-) Also, how

[PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
I am having a problem with the PHP mail() function. Here is the code: if (mail ([EMAIL PROTECTED], Quote Request, $message)) { echo Email sent!; } else { echo Email NOT sent!; } Everytime, I receive the Email NOT sent message and the email isn't sent. However, from the console

[PHP] problem PHP4 (4.0.3pl1) flush() on Linux

2001-07-02 Thread didier tanti
Hi, Now that I changed from PHP3 to PHP4, my flush() called don't work anymore, For example this script: ?php while (true) { #echo coucoubr; print(coucou); flush(); sleep(1); } ? do NOT flush the datas on the browser (client side). In addition, if we exit the script before the

RE: [PHP] mail function fails

2001-07-02 Thread Tim Taubert
hey ryan try something like this mail([EMAIL PROTECTED], Quote Request, $message, From: [EMAIL PROTECTED]\nX-Mailer: PHP/ . phpversion()); hope this helps cya tim - Tim Taubert | [EMAIL PROTECTED] |

[PHP] sessions and cache

2001-07-02 Thread Adrian Ciutureanu
Hi, I have a problem: if I use session_start(), the page will not cache. Is that normal? Adrian CIUTUREANU Software Developer -- 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

RE: [PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
I tried that in this format: if ( mail([EMAIL PROTECTED], Quote Request, $message, From: [EMAIL PROTECTED]\nX-Mailer: PHP/ . phpversion()) ) { echo Email sent!; } else { echo Email NOT sent!; } and still get the Email NOT sent and no emails go anywhere. Is there another

Re: [PHP] Patch for PHP 4.0.6 memory limit problem posted

2001-07-02 Thread Rouvas Stathis
This is the official PHP 4.0.6 version. After line 448 insert: #if MEMORY_LIMIT AG(allocated_memory) -= REAL_SIZE(ptr-size); #endif If you'll take a good look at the diff file the first half is what you're supposed to have and the second half is what

Re: [PHP] Convert

2001-07-02 Thread teo
Hi Roman! On Mon, 02 Jul 2001, Roman wrote: Have you some program for convert Microsoft Access Database (*.mdb) to the MySQL database ? have you tried looking on mysql site? you'll find there dbf2mysql and mssql2mysql (this one I used w/ no problems) -- teodor -- PHP General Mailing List

Re: [PHP] sessions and cache

2001-07-02 Thread teo
Hi Adrian! On Mon, 02 Jul 2001, Adrian Ciutureanu wrote: Hi, I have a problem: if I use session_start(), the page will not cache. Is that normal? yes, check session.cache_limiter session.cache_expire in your php.ini -- teodor -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] mail function fails

2001-07-02 Thread Tim Taubert
mh.. ?php if (mail([EMAIL PROTECTED], Quote Request, test)) { echo Email sent!; } else { echo Email NOT sent!; } ? this worked successfully... don't have any other ideas.. bye tim - Tim Taubert | [EMAIL

RE: [PHP] sessions and cache

2001-07-02 Thread Adrian Ciutureanu
Thanks a lot! It works. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 2 iulie 2001 16:43 To: [EMAIL PROTECTED] Subject: Re: [PHP] sessions and cache Hi Adrian! On Mon, 02 Jul 2001, Adrian Ciutureanu wrote: Hi, I have a problem: if I use

Re: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread infoz
We use mail(). I have on my list to re-write it to use SMTP sometime to see if it works any faster, but it also goes into the if it ain't broke, don't fix it category. If all the messages were identical, we might be able to get some efficiency by sorting the list by domain name and batching

[PHP] file upload

2001-07-02 Thread Wilbert Enserink
Hi all, i'm using php version 4.0.5 and i'm playing around with the file upload command using form and script which i copied from php.net Unfornunately the script is giving an error: Warning: Unable to open '/tmp/phpmOSK48' for reading: No such file or directory in

RE: [PHP] file upload

2001-07-02 Thread Adrian Ciutureanu
Try this: --upload.php-- ?php if (is_uploaded_file($userfile)) { move_uploaded_file($userfile, $new_location/$userfile_name); } else { echo Possible file upload attack: filename '$userfile'.; } ? -Original Message- From: Wilbert Enserink [mailto:[EMAIL

RE: [PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
Darn, still didn't work. Anyone else have a suggestion? Or a way to view an error message of some kind? Ryan Shrout -Original Message- From: Tim Taubert [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 9:51 AM To: PHP Mailingliste Subject: RE: [PHP] mail function fails mh..

Re: [PHP] file upload

2001-07-02 Thread Wilbert Enserink
thanx adrian. I humbly bow for da masta :-] Wilbert - Original Message - From: Adrian Ciutureanu [EMAIL PROTECTED] To: Wilbert Enserink [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 4:19 PM Subject: RE: [PHP] file upload Try this:

RE: [PHP] how to determine size of gz-handler output

2001-07-02 Thread scott [gts]
as far as i know, $cont is not GZ compressed so you're getting the length of the uncompressed data. the contents only get compressed right before sending output to the browser... -Original Message- From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] Sent: Friday, June 29, 2001

[PHP] pdf_open_image_file says it can't find file, altough it's there

2001-07-02 Thread Marius Andreiana
Hi After upgrading to pdflib-4.0.1 from 3.x (and php 4.0.4pl1), both pdf_open_gif (deprecated) and pdf_open_image_file say Could not open file, although images are there and they were working before. Someone else had this problem too http://www.php.net/manual/en/function.pdf-open-image-file.php

RE: [PHP] Please Help......

2001-07-02 Thread scott [gts]
as a start, you'll probably have to update httpd.conf (if you're using apache) and named ... or at least know how both work. please read the pertinent docs. -Original Message- From: Man He [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 28, 2001 10:51 PM To: [EMAIL PROTECTED]

Re: [PHP] mail function fails

2001-07-02 Thread mike cullerton
hmmm... i just copied your code and changed the email address to mine and it worked. $message was set to 'blah'. this tells me you either have a problem with your email address or $message. why don't you echo $message along with Email NOT sent!. mail messages are particular about

RE: [PHP] mail function fails

2001-07-02 Thread Shrout, Ryan
I don't think that is it anymore. I have a new discovery. Upon running the actually PHP script from the console, the code works! But only when I am logged in as root. When logging is as anyone else, the mail() function fails with a Permission Denied on /usr/sbin/sendmail So, it would appear

Re: [PHP] mail function fails

2001-07-02 Thread Julia A. Case
/usr/sbin/sendmail should be SUID root, if your isn't change that and it should work fine. Julia Quoting Shrout, Ryan ([EMAIL PROTECTED]): I don't think that is it anymore. I have a new discovery. Upon running the actually PHP script from the console, the code works! But only when I am

Re: [PHP] Showing an Image

2001-07-02 Thread mike cullerton
how about something like, $result = @mysql_query($sql); $data = @mysql_result($result, 0, PICTURE); $type = @mysql_result($result, 0, FILETYPE); $comment = @mysql_result($result, 0, COMMENT); Header(Content-type: $type); echo $data . br . $comment; or, instead of using Header, create a

RE: [PHP] Reducing Brackets is a Logical expression

2001-07-02 Thread scott [gts]
i dont know the function you're looking for, but read up on the rules of formal logic, and maybe you can roll your own. i know that simplification of logical statements (and therefore, easing the burden of analyzing those statements) is a foundation of formal logic... -Original

RE: [PHP] Regular Expression help

2001-07-02 Thread scott [gts]
try something like this: $emails = array('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'); $doms = array( 'domain1.com'=1, 'domain2.com'=1, ); while ( list(,$email) = each($emails) ) {

[PHP] RE: Help Please.

2001-07-02 Thread scott [gts]
or you could output the raw contents of the file after sending the appropriate headers... albeit, a simple redirect is much easier :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gonzalo Quan Sent: Monday, July 02, 2001 4:42 AM To: Syed

RE: [PHP] RE: Help Please (DISREGARD THIS)

2001-07-02 Thread scott [gts]
that last email accidentally got sent to the wrong list... 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] How can i read php from browser??

2001-07-02 Thread Chris Anderson
You need to open your httpd.conf and add the extension lines to make it parse php. Mine looked like this: ServerRoot C:/Dev/Apache Group/Apache ScriptAlias /php4/ C:/php/ Action application/x-httpd-php4 /php4/php.exe AddType application/x-httpd-php4 .php AddType application/x-httpd-php4 .php3

[PHP] OO v. Functions Was: Re: [PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)

2001-07-02 Thread Aral Balkan
Ive coded in both PHP and ASP and in both OO and function oriented. Ultimately, i find functionally oriented PHP to be the best ... what do other people think? Having learnt how to program using Basic when I was 8, I had to unlearn a lot of things as I moved from Basic to Pascal (what? I can't

RE: [PHP] Creating domain and default page

2001-07-02 Thread scott [gts]
i dont mean any offense at this, but if you dont even know how to give an unprivileged script 'root' privileges, you probably shouldnt be doing it ;) you can inadvertently make your system extremely vulnerable. but if you're intent, read up on SUID scripts and wrapper programs that give your

[PHP] Good intro to SQL reference Was: Re: [PHP] Get highest value of key most efficiently

2001-07-02 Thread Aral Balkan
You might also want to reference James Hoffman's excellent Introduction to Structured Query Language (SQL Tutorial) page: http://w3.one.net/~jhoffman/sqltut.htm Aral :) __ ([EMAIL PROTECTED]) New Media Producer, Kismia, Inc. ([EMAIL PROTECTED]) Adj. Prof.,

RE: [PHP] Pricing Advice Needed

2001-07-02 Thread scott [gts]
maximum verbosity is not good programming practise. :) don't succumb to the dreaded Charles Dickens Syndrome and make the code too wordy and cluttered to be easily maintanable or understandeable. i've had to wade thru code written by people with CDS, and it's a nightmare seeing some of the

Re: [PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)

2001-07-02 Thread Michael Kimsal
Andrew Halliday wrote: Ive coded in both PHP and ASP and in both OO and function oriented. Ultimately, i find functionally oriented PHP to be the best ... what do other people think? As much classes/objects as possible, imo. 'functions' by themselves are OK for smaller stuff, but when you

[PHP] Large Text Fields from MS SQL DB Truncated

2001-07-02 Thread James Crowley
Hi, I've hit a little problem... When retreiving large TEXT data (equivilant to MySQL's MEDIUMTEXT) from a MS SQL database using PHP, the data becomes truncated after 4,095 bytes. I have tried connecting both with ODBC, and the MsSQL php functions, but to no avail. It works fine in ASP

RE: [PHP] Numerical refs to assoc array suddenly undefined offset??

2001-07-02 Thread scott [gts]
mysql returns an assoc array that also have numerical keys, perhaps you're thinking of that... to my knowledge, PHP never supported numeric string indexing to it's assoc. arrays... i've tested the code below on PHP v4.0.4 and v4.0.6 and it runs the same: numerical index values return nothing.

RE: [PHP] Uploading files

2001-07-02 Thread scott [gts]
use assoc. arrays, please. your code will be *much* easier to maintain and extend. variables-of-variables are headaches for everyone involved. $location = $input_form[$i]; -Original Message- From: David A Castillo [mailto:[EMAIL PROTECTED]] Sent: Friday, June 29, 2001 1:41 PM To:

[PHP] setcookie problem

2001-07-02 Thread Mark Lo
Hi, How to set a forever cookie into client machine. I use the following syntax to set the cookie, but when I close the brower's window, then the cookie is deleted when the browser closed. setcookie(buyerid,$email,time()+360,,$domain);

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-07-02 Thread Bill Rausch
Rasmus, et.al., OK, I'm still confused. What does SSL have to do with any of this? If I'm running a site using SSL, all that does is encrypt the transmitted info right? It doesn't have anything to do directly with the sessions though? The problem I'm wrestling with is: Person A logs in to

[PHP] Best Way to set cookies

2001-07-02 Thread Gonyou, Austin
Id like to discuss what the best params are for setting cookies using PHP. Specifically the expirey. Anyone? -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] Question on Commercial Offerings

2001-07-02 Thread scott [gts]
if what you need is to obscure source code, scripting languages are probably not what you're looking for... there are ways to compile/encrypt/obscure the source, but they're usually a bit of a pain in the neck and easy to crack. -Original Message- From: Thomas Deliduka

Re: [PHP] Large Text Fields from MS SQL DB Truncated

2001-07-02 Thread Frank M. Kromann
Have a look at these two settings in your php.ini ; Valid range 0 - 2147483647. Default = 4096. ;mssql.textlimit = 4096 ; Valid range 0 - 2147483647. Default = 4096. ;mssql.textsize = 4096 - Frank Hi, I've hit a little problem... When retreiving large TEXT data (equivilant to

Re: [PHP] Re: mailing list php-general@lists.php.netµÄ×Ô¶¯»ØÐÅ

2001-07-02 Thread Chris Anderson
You guys have some serious problems. I recommend getting help - Original Message - From: Justin Farnsworth [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 02, 2001 8:42 AM Subject: [PHP] Re: mailing list [EMAIL PROTECTED]µÄ×Ô¶¯»ØÐÅ What

Re: [PHP] Getting Information from a CGI POST

2001-07-02 Thread Don Read
On 02-Jul-01 Clayton Dukes wrote: Don, Thanks for the info. I'm a bit confused, When I call the function, what is the syntax as it applies to my form? ie: openpost (dps2.usairways.com, /cgi-bin/fi, FltNum=2972 page=fi); I know this doesn't work, but do you see what I mean? Forgive

Re: [PHP] setuid

2001-07-02 Thread mike cullerton
i'm pretty sure apache tries its best to keep things like this (doing anything as root) from happening. you might look at apaches documentation for suexec. on 7/2/01 3:31 AM, Yamin Prabudy at [EMAIL PROTECTED] wrote: sorry i might miss the discussion bout setuid can anyone give me an help on

RE: [PHP] accessing files not in www root directory.

2001-07-02 Thread scott [gts]
do you have the image data in the database, or are all the images stored in the filesystem? it appears to be the latter... so i'd say either: 1) move the images into the webserver's document root, or somewhere web-accessable. 2) symlink them permanently. i can't understand why you'd

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-07-02 Thread Christopher Ostmo
Bill Rausch pressed the little lettered thingies in this order... Rasmus, et.al., OK, I'm still confused. What does SSL have to do with any of this? SSL makes it impossible (well, improbable anyway) to sniff the session ID from the network. Without SSL, anyone on the network between the

[PHP] Function Reqest/Question

2001-07-02 Thread Anil
Is there a func() that will let me break or skip to the END of the ? ? code snippet? I have a file that contains both HTML and PHP. html header code ? if condition skip; ... php code ... ? html footer code I know there are several ways of attacking this. Including making a func() that

RE: [PHP] apache+php chroot

2001-07-02 Thread scott [gts]
using the full pathname of the uptime binary should work. although, there are issues on some servers that user 'nobody' (a common owner for apache) cannot get 'uptime' information... so even if you get uptime to work correctly, beware that it may return bogus data. -Original Message-

RE: [PHP] sending 5000+ emails - use PHP?

2001-07-02 Thread scott [gts]
of course it can ;) -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 01, 2001 9:13 PM To: PHP Mailing List Subject: [PHP] sending 5000+ emails - use PHP? I at looking at using PHP to send a monthly newsletter to 5000+ users who have

[PHP] General Tutorials

2001-07-02 Thread Kevin Johnson
I have found that browsing through the tutorials at www.devshed.com to be quite useful. It covers alot of the basics and some advanced stuff as well. Kevin Johnson Jr. System Administrator Erogo, Inc. www.erogo.com Contact Info: Email: [EMAIL PROTECTED] Office: (714) 832- x150 Cell: (714)

RE: [PHP] Pricing Advice Needed

2001-07-02 Thread scott [gts]
it's also a dangerously common misconception among non-programmer manager-types that the more important or essential a program is, the more lines of code it will require -Original Message- From: Brad Hubbard [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Pricing Advice Needed On

[PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. It can not find the page the thing is the page that it needs to find is the same page the login form is on and the path to

[PHP] Installation PHP on W2K and Apache

2001-07-02 Thread ignacio . estrada
Hi, I'am trying to install PHP406 under W2K and Apache132 web server. The installation of Apache was successfull and it works. About PHP I'am trying to install the CGI version but even the installation finishes ok, the PHP looks not working becouse nothing happen when I load some PHP file. I

[PHP] Installation PHP on W2K and Apache

2001-07-02 Thread ignacio . estrada
Hi, I'am trying to install PHP406 under W2K and Apache132 web server. The installation of Apache was successfull and it works. About PHP I'am trying to install the CGI version but even the installation finishes ok, the PHP looks not working becouse nothing happen when I load some PHP file. I

RE: [PHP] Can any one spot the Parse error Here

2001-07-02 Thread scott [gts]
confucious say: typing it up in 20 minutes and then spending 2 hours debugging is much worse than taking an hour to type it up and spending only 20 minutes debugging ;) -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 3:31 AM To: [EMAIL

RE: [PHP] How to execute passwd with php?

2001-07-02 Thread scott [gts]
exec('passwd'); that's how you do it. now figure out why it wont work. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Moise Bertrand TACHAGO Sent: Monday, July 02, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: [PHP] How to execute passwd with

RE: Re[2]: [PHP] Problems with Netscape

2001-07-02 Thread scott [gts]
did you try viewing source to make sure that the ACTION= tag actually contains something? AFAIR, MSIE will post to the same location if there's no ACTION=, but netscape will not... so it looks like your ACTION= tag is empty, but becuase IE and Netscape handle things differently, you're getting

[PHP] session.gc_probablity on NT

2001-07-02 Thread Damian Sobieralski
Hi, I posted this on Friday but figured I would try one more time before learning to live with it. I am running PHP 4.0.5 as an Apache Module (with Zend Optimizer) on NT 4.0 SP6 and have been very happy with it. Until we think about using Easysoft solution the only method we have to get

Re: [PHP] Installation PHP on W2K and Apache

2001-07-02 Thread Phil Driscoll
On Monday 02 July 2001 18:25, [EMAIL PROTECTED] wrote: Hi, I'am trying to install PHP406 under W2K and Apache132 web server. The installation of Apache was successfull and it works. About PHP I'am trying to install the CGI version but even the installation finishes ok, the PHP looks not

Re: [PHP] referencing arrays in arrays

2001-07-02 Thread hassan el forkani
have you tried doing it using while()? At 01:28 29/06/01, Anette Löfquist wrote: I have an array, $field, like following: Array ( [0] = Array ( [0] = Array ( [disp] = computer [index] = computer ) [1] =

RE: [PHP] Function Reqest/Question

2001-07-02 Thread scott [gts]
i dont know of a function to skip to the end of the nearest ?, and i suspect that there isn't one... you can use other control func's to do what you need, in the context that you're working in... read up on: goto, break, continue, return -Original Message- From: Anil [mailto:[EMAIL

[PHP] session handler class

2001-07-02 Thread scott [gts]
in regards ot the OO v. Functions, where you asked about a session handler class... i have written a class that handles sessions, although i dont know if it's exactly what you're looking for, you might want to give it a peek. since i am a big fan of code reuse, i must include my DB abstraction

RE: [PHP] setcookie problem

2001-07-02 Thread scott [gts]
this is my guess at what's happening... i dont know 100% if that's why cookies aren't setting properly, but here's an educated guess on my part: probably becuase time() is seconds since 1970, and as far as i understand, once it gets over 999,999,999 it will not work correctly becuase it will

RE: [PHP] Installation PHP on W2K and Apache

2001-07-02 Thread scott [gts]
does your browser prompt you to download the file when you try and look at *.php files? did you make the appropriate entires into the apache httpd.conf and restart apache? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 1:26 PM To:

RE: [PHP] Best Way to set cookies

2001-07-02 Thread scott [gts]
you could print Set-Cookie: name=value; etc. etc. etc. but setcookie(); is really what you want. -Original Message- From: Gonyou, Austin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 12:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Best Way to set cookies Id like to

Re[4]: [PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
Hello scott, You are right the Action tag is empty in Netscape but in IE it is in there. How come it puts it there in IE but not in Netscape Monday, July 02, 2001, 10:46:10 AM, you wrote: scott [gts] did you try viewing source to make sure that scott [gts] the ACTION= tag actually contains

[PHP] help: unzip files for php 3.0

2001-07-02 Thread John Holcomb
The company that houses our servers only has php 3.0 installed. I need a function that can unzip files. Are there any methods(functions) that can handle this in php3.0 or any version of php that's before php 4.0. Thank you, John __ Do You

RE: Re[4]: [PHP] Problems with Netscape

2001-07-02 Thread scott [gts]
IE does a lot of mysterious things behind the scenes... perhaps IE automatically puts in the current page's location if no ACTION is specified. however, i really dont know. try echo-ing the variable somewhere outside of a form, to see if the variable itself contains anything... to my

[PHP] array_traverse

2001-07-02 Thread scott [gts]
Here's a little function i use to traverse an array of arbitrary complexity... it uses recursion. function array_traverse ($ary, $b=array()) { while ( list($k,$v) = each($ary) ) { print (join(, $b)) . $k = $v\n; array_push($b, \t); if ( is_array($ary[$k]) ) {

RE: [PHP] Function Reqest/Question

2001-07-02 Thread Matthew Loff
The best way I've seen this done is: ?php while(0) { blah blah blah... // Want to get out of here... break; } ? But putting it within while(0), you can simply break; from it... There may be better ways... Any other suggestions? -Original Message- From: scott

Re: [PHP] help: unzip files for php 3.0

2001-07-02 Thread Mark Maggelet
On Mon, 2 Jul 2001 12:55:32 -0700 (PDT), John Holcomb ([EMAIL PROTECTED]) wrote: The company that houses our servers only has php 3.0 installed. I need a function that can unzip files. Are there any methods(functions) that can handle this in php3.0 or any version of php that's before php 4.0.

Re: [PHP] session handler class

2001-07-02 Thread Aral Balkan
Hi Scott, I'd love to see the class you made but couldn't find a link in your email. Could you let me know where to find it? Thanks :) Aral __ ([EMAIL PROTECTED]) New Media Producer, Kismia, Inc. ([EMAIL PROTECTED]) Adj. Prof., American University

Re: [PHP] Capturing output of shell script.

2001-07-02 Thread Charles Williams
- Original Message - From: Brad Hubbard [EMAIL PROTECTED] To: Charles Williams [EMAIL PROTECTED]; Php-General (E-mail) [EMAIL PROTECTED] Sent: Saturday, June 30, 2001 1:12 PM Subject: Re: [PHP] Capturing output of shell script. On Sat, 30 Jun 2001 06:36, Charles Williams wrote:

Re: [PHP] Capturing output of shell script.

2001-07-02 Thread Charles Williams
correction below chuck - Original Message - From: Charles Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Php-General (E-mail) [EMAIL PROTECTED] Sent: Monday, July 02, 2001 10:54 PM Subject: Re: [PHP] Capturing output of shell script. - Original Message - From: Brad

RE: [PHP] session handler class

2001-07-02 Thread scott [gts]
it's attached to the email. did you get the attachment, or was it stripped off somewhere? i can upload the files to a server and provide a link if you didn't get the email attachment. -Original Message- From: Aral Balkan [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 4:26 PM

RE: [PHP] newbie has include path error new problem

2001-07-02 Thread Daniel Goldin \(E-mail\)
Appreciate your help. Yes I can ping localhost. I do believe I can solve the php problem once I solve the networking problem as I've discovered that the prepend path was set incorrectly. Best, Daniel -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Sunday, July

  1   2   >