Re: [PHP] The secrecy of PHP code

2001-08-13 Thread ~~~i LeoNid ~~
On Mon, 13 Aug 2001 09:43:56 -0500 impersonator of [EMAIL PROTECTED] (Tyler Longren) planted I saw in php.general: The only real way to see the php code is if you don't have the webserver set to parse the code...then it will just be displayed on the page (or downloaded). If you're really

[PHP]Problem with Error/Mail/something...

2001-08-13 Thread Chris Cocuzzo
hey- I wrote this form checker/mailer for my website. I feel like I may have written it wrong, however there are a few things I wanted to ask about. I think I may be having a problem with how I'm checking if the mail was sent, or maybe something with the if statement to see if the submit button

RE: [PHP] new one is it ??

2001-08-13 Thread David Price
Well, you could send the junk data to micro$oft instead. -Original Message- From: Scott Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 7:52 AM To: 'scott [gts]'; [EMAIL PROTECTED] Subject: RE: [PHP] new one is it ?? Unfortunately, you're punishing the infected person,

RE: [PHP] How to get the query string?

2001-08-13 Thread Don Read
On 13-Aug-2001 Tamas Bucsu wrote: hi guys, I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not

RE: [PHP] ucwords Except 'The' 'And' etc?

2001-08-13 Thread Steve Edberg
Something like this, perhaps (untested): function smart_ucwords($String) { $ExceptionList = array('the', 'an', 'a'); # should all be in lowercase $String = ucwords(strtolower(ltrim($String))); # LINE A foreach ($ExceptionList as $Word) { $String =

[PHP] PHP and Apache

2001-08-13 Thread Jay Paulson
hello everyone- I was wondering if any of you had a problem compiling Apache 1.3.20 with mod_php4? Because I can compile, make, make install for redhat 7.1 for php 4.0.6. When I run my configure script for apache i have --activate-module=src/modules/php4/libmodphp.a as one of the lines in the

Re: [PHP] PHP and Apache

2001-08-13 Thread Rasmus Lerdorf
I was wondering if any of you had a problem compiling Apache 1.3.20 with mod_php4? Because I can compile, make, make install for redhat 7.1 for php 4.0.6. When I run my configure script for apache i have --activate-module=src/modules/php4/libmodphp.a as one of the lines in the script. I

[PHP] UPDATE syntax

2001-08-13 Thread Gerard Samuel
I have a database with 5 columns and cols 1,2,3 5 are filled. I want to insert into 4 and change 5. Could I use an UPDATE command to do this.. Here is what I have == $query = UPDATE mpn_asklee (Reply, Post) VALUES ('$Reply[$i]', '$post[$i]') WHERE ID = '$counts'; $result =

[PHP] figured it out!

2001-08-13 Thread Ben Rigby
figured it out. i had to use: array_multisort ($email_array,SORT_DESC); thanks, ben Ben Rigby wrote: hi. any help would be mych appreciated! i'm trying to sort an associative array, but when i do, the key is converted into a number (it should be a string). ie: $email_array[[EMAIL

Re: [PHP] UPDATE syntax

2001-08-13 Thread Tyler Longren
yeah...jibberish. Should be this: UPDATE mpn_asklee SET reply='$Reply[$i]', Post='$post[$i]' WHERE ID='$counts' On Mon, 13 Aug 2001 15:20:17 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: I have a database with 5 columns and cols 1,2,3 5 are filled. I want to insert into 4 and change 5.

RE: [PHP] UPDATE syntax

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 try this syntax: UPDATE table SET col=value, col2=value2 ... WHERE ID=$id; -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 3:20 PM To: PHP Subject: [PHP] UPDATE syntax I have a

RE: [PHP] How to get the query string?

2001-08-13 Thread Rasmus Lerdorf
I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work: for

[PHP] auto_prepend_file

2001-08-13 Thread lolodev
recetly i ask about running automatically a page after each request page. response is auto_prepend_file, auto_append_file, but how can i prepend file is the same for all php.ini but how can i do this with my provider , and how can i have a auto_prepend_file different to another web site? (my

[PHP] inserting a remote html file

2001-08-13 Thread Minardi boy
Hello I wanted the user to choose certain html files (one or more) via a checkbox and then insert them into the new php site. The checkbox thing is okay but I keep recieveing errors on the php site Could you help me? *** html body Here is your required information ?php if ($choice==arlberg) {

Re: [PHP] UPDATE syntax

2001-08-13 Thread Gerard Samuel
Thanks for telling me that I was talking jibberish :) OK it worked, but now I have to figure out why its only updating the first row. Ill be back if I cant figure it out. Thanks all Tyler Longren wrote: yeah...jibberish. Should be this: UPDATE mpn_asklee SET reply='$Reply[$i]',

[PHP] PHP's equivalent to Net::SSLeay?

2001-08-13 Thread Brandon Orther
Hello, I have a cgi script that logins to a site and then emulates a form POST. The script uses Net::SSLeay and was wondering if there is soemthing equvilent to it? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED]

[PHP] large external script to include in many pages

2001-08-13 Thread Web Manager
Hello, I am testing a new DHTML code for navigation menus. I plan to use it throughout my web pages made with PHP. The script is about 600 lines long! Beside making a : define (script1, . . . ); and calling the script1 name in my PHP pages... this will be very, very long, is there a

RE: [PHP] ucwords Except 'The' 'And' etc?

2001-08-13 Thread Mark Maggelet
Something like this, perhaps (untested): I needed this too so I just tested it. function smart_ucwords($String) { $ExceptionList = array('the', 'an', 'a'); # should all be in lowercase $String = ucwords(strtolower(ltrim($String))); # LINE A foreach ($ExceptionList as

[PHP] Re: ICMP Ping

2001-08-13 Thread Henrik Hansen
[EMAIL PROTECTED] (James Crowley) wrote: Hi, Is there any way to send an ICMP ping (or packet) from PHP? (without using exec(ping)!!) use sockets -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] large external script to include in many pages

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 here docs also work good for big blocks of text (although interpolation will occur, which you might not want) $mytext = EOT blah blah blah EOT; http://php.net/manual/en/language.types.string.php#language.types.string.syntax.hered oc

[PHP] Re: large external script to include in many pages

2001-08-13 Thread Henrik Hansen
[EMAIL PROTECTED] (Web Manager) wrote: Hello, I am testing a new DHTML code for navigation menus. I plan to use it throughout my web pages made with PHP. The script is about 600 lines long! Beside making a : define (script1, . . . ); and calling the script1

[PHP] Starting Interbase on RH Linux

2001-08-13 Thread Todd Cary
I am new to Linux and I have installed RH 7.1 along with Apache, PHP, and Interbase 6.0. I can start Apache, but how do I start Interbase? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Storing Credit Card Numbers, etc.

2001-08-13 Thread Christopher Raymond
PHP Fellows: Thanks for taking the time to look at this. I'm new to PHP and to e-commerce. Needless to say, I've done a lot of studying over the last few weeks and I'm ready to dive in head first! I'll be building an e-commerce site and I'll be using PHP. I'd like customers to have the

Re: [PHP] PHP and Apache

2001-08-13 Thread Jay Paulson
yeah i've tried that too and i still get the same error(s) From: Rasmus Lerdorf [EMAIL PROTECTED] To: Jay Paulson [EMAIL PROTECTED] CC: PHP [EMAIL PROTECTED] Subject: Re: [PHP] PHP and Apache Date: Mon, 13 Aug 2001 12:07:39 -0700 (PDT) I was wondering if any of you had a problem compiling

Re: [PHP] PHP and Apache

2001-08-13 Thread Rasmus Lerdorf
Then you didn't follow the steps in the INSTALL file exactly. Go back and start over. This stuff has been tested thousands of times. It works. -Rasmus On Mon, 13 Aug 2001, Jay Paulson wrote: yeah i've tried that too and i still get the same error(s) From: Rasmus Lerdorf [EMAIL

Re: [PHP] UPDATE syntax

2001-08-13 Thread Steve Werby
Gerard Samuel [EMAIL PROTECTED] wrote: OK it worked, but now I have to figure out why its only updating the first row. snip Tyler Longren wrote: yeah...jibberish. Should be this: UPDATE mpn_asklee SET reply='$Reply[$i]', Post='$post[$i]' WHERE ID='$counts' /snip If each row has a

[PHP] cropping a string

2001-08-13 Thread Tom Carter
hi all I was wondering if anyone had found a solution to the problem of cropping a string to a certain length...however a certain length based upon the actual size of it. By this I don't mean after n characters, or even after m words (have a function for this already)... what I'm looking for is

RE: [PHP] ucwords Except 'The' 'And' etc?

2001-08-13 Thread Jeff Oien
Fabulous. Thanks to Steve and Mark. Exactly what I needed. Jeff Oien Something like this, perhaps (untested): I needed this too so I just tested it. function smart_ucwords($String) { $ExceptionList = array('the', 'an', 'a'); # should all be in lowercase $String =

Re: [PHP] How give a 'timed' online quiz?

2001-08-13 Thread Daniel Adams
Sounds like you could use javascript rather than php for this one. Or you could try using an http refresh after a certain number of seconds. - Dan On Mon, 13 Aug 2001, Tom Henry wrote: Hi Could someone steer me in the right direction for this one - I can't seem to see the forest

[PHP] Re: cropping a string

2001-08-13 Thread Chris Lee
function truncate($string, $size) { $new_string = substr($string, 0, $size); $new_string = explode(' ', $new_string); array_pop($new_string); $new_string = implode(' ', $new_string); return $new_string; } this function can defn be improved apon. all this does is trims the string

Re: [PHP] How give a 'timed' online quiz?

2001-08-13 Thread Mark Maggelet
On Mon, 13 Aug 2001 17:06:37 -0400 (EDT), Daniel Adams ([EMAIL PROTECTED]) wrote: Sounds like you could use javascript rather than php for this one. Or you could try using an http refresh after a certain number of seconds. - Dan yeah but an http refresh won't post the form. you could try

[PHP] Re: How give a 'timed' online quiz?

2001-08-13 Thread Philip Hallstrom
I would use javascript... have javascript sleep for the time period, then switch a hidden variable to indicate they didn't finish, then submit the form. It's not bullet proof in that I could just turn javascript off on my machine, but it works... -philip In article [EMAIL PROTECTED], Tom Henry

[PHP] Need advice on building website registration system!

2001-08-13 Thread sunny AT wde
Hi all! I'm trying to build a registration system for a community site that I'm building, and was wondering if people could give me advice or tell me about problems they've been having?? I'm planning to let people register with a username and password (encrypted), and then make them login with

[PHP] cgi and module?

2001-08-13 Thread Daniel Adams
Is there any way to use the --with-apxs and make the cgi version in the make? - Dan -- -- 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

[PHP] How to stop images preloading in netscape?

2001-08-13 Thread Seb Frost
I have a php page which generates a page of thumbnails from a database. In internet explorer all of the layout loads first, and the thumbnails appear one by one as they are downloaded. Netscape however seems to insist on downloading all images before displaying the page. This makes it appear

[PHP] Re: large external script to include in many pages

2001-08-13 Thread Web Manager
Henrik Hansen wrote: [EMAIL PROTECTED] (Web Manager) wrote: Hello, I am testing a new DHTML code for navigation menus. I plan to use it throughout my web pages made with PHP. The script is about 600 lines long! Beside making a : define (script1, . . .

Re: [PHP] cgi and module?

2001-08-13 Thread Rasmus Lerdorf
Is there any way to use the --with-apxs and make the cgi version in the make? Nope, you need to do two separate builds. One using --with-apxs and one without. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] How to stop images preloading in netscape?

2001-08-13 Thread Mark Maggelet
On Mon, 13 Aug 2001 23:16:35 +0100, Seb Frost ([EMAIL PROTECTED]) wrote: I have a php page which generates a page of thumbnails from a database. In internet explorer all of the layout loads first, and the thumbnails appear one by one as they are downloaded. Netscape however seems to insist on

[PHP] Using a receiving a cookie with cURL?

2001-08-13 Thread Brandon Orther
Hello, I need to login to a site that requires you to have cookies. Can cURL receive and accept cookies? Thank you, Brandon Orther -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] How to stop images preloading in netscape?

2001-08-13 Thread Kelly Corkill
Define the height and width for each graphic, otherwise how does the browser know how to draw the screen? With height/width netscape will allocate space for the missing images and fill them in as the files complete, without - it waits until all are done before drawing to the screen. MSIE gets

Re: [PHP] Storing Credit Card Numbers, etc.

2001-08-13 Thread Miles Thompson
Christopher, 1. $25.00 / mth is trivial for the security and speed a database provides (And you can do development work on your own machine, start paying only when you move it to production.) 2. Your database can be, and probably will be in a web hosting environment, protected with a username

[PHP] Re: large external script to include in many pages

2001-08-13 Thread Chris Lee
putting something like script src=../myscript.js isnt really going to speed things up at all. the browser will still have to open myscript.js and read all 600 lines from there. if you ask me on GET / HTTP/1.1 call is faster then two. I would just include_once('../myscript.html'); in the file you

[PHP] Question about sessions

2001-08-13 Thread Chris Kay
I have a mysql/php db/website that uses session, (i am new to sessions). My question is that the session works and all but i notice that it writes alot of sess_*** files in the /tmp directory. Do i need to purge these weekly so it wont use tooo much room or are these spose to

[PHP] Cookie Help

2001-08-13 Thread Max Mouse
Hi, I have a problem with setting cookies...I am able to set cookies and retreive the information when using IE but not netscape. I'm not totally sure what the problem is. Here is the syntax that I am using, any suggestions are welcomed. $cookiedata = Mmmm; $time = mktime()+900; $expire =

Re: [PHP] Question about sessions

2001-08-13 Thread Peter Houchin
Chris, I have found that when you get the users to exit propperly they will go by them selves ... also have a look @ the garbage collection in your php.ini file Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL

[PHP] Win32 Manual error?

2001-08-13 Thread Boaz Amit
While building a simple feedback form, I came across what seemed like a puzzling error(?) in the manual. After the user has filled the form I call for the mail() function. To do so, I referred to the manual about the mail function: http://php.net/manual/en/function.mail.php ...Please also

Re: [PHP] Question about sessions

2001-08-13 Thread speedboy
There's a session deletion script based on the last time a session file was written to. You can set the duration a session is allowed to stay on the file system for. http://database.sf.net/ - Down the bottom. On Tue, 14 Aug 2001, Chris Kay wrote: I have a mysql/php db/website that uses

[PHP] Problems with split

2001-08-13 Thread Ville Mattila
Hi there, First the code: --- $invdate = 14.8.2001; echo $invdate\n; list($day, $month, $year) = split(., $invdate); echo $year-$month-$day; --- Somehow, the second echo outputs only -- as it should be 2001-8-14. Any idea why this happen and how this could be avoided? Thanks, - Ville -- PHP

[PHP] Re: Can't run perl script using exec or system

2001-08-13 Thread Richard Lynch
Using the following code, the two files copyUp.pl and convert.pl aren't called. I can run them peachy dandy from the commandline with the expected results. I've tried system(), exec(), and back tics. $command = /home/copyUp.pl $sellerid $image; exec($command, $output, $error); if($error)

[PHP] Re: Apache/PHP File Upload problems

2001-08-13 Thread Richard Lynch
If I try to submit a file for upload using the form using Netscape I get Document contains no data. If I do the same in IE5.0 it just waits forever. Looking at the apache server error_log file I appear to be getting a Segmentation Fault (11) each time I try and Post the contents of the

[PHP] Re: PHP's equivalent to Net::SSLeay?

2001-08-13 Thread Richard Lynch
I think you can do all that with cURL -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From:

[PHP] Re: variable variables and eval

2001-08-13 Thread Richard Lynch
i have come across a strange problem with variable variables. Basicly i'm doing the following and its not working: $section = 'data[SITE][0][NAME][0]'; $pData = 'My Site.'; ${sprintf('$%s', $section)}.=$pData; but it is not working. But if i do this:

Re: [PHP]Problem with Error/Mail/something...

2001-08-13 Thread Richard Lynch
? include(/home/fplg/lib/functions.php); We'll probably need this file as well... echo starting pagebr; if(!isset($action)) { $action = 1; } echo finished isset action ifbr; echo starting if for submit checkbr; if($submit) { //$action = 2; echo inside ifbr;

[PHP] Re: Postgresql large objects.

2001-08-13 Thread Richard Lynch
Does using pg_loread or any other php functions for postgresql large objects modify the size of the file? I'm seeing a size increase in a few bytes when I receive the file back to my hard drive. The file still seems to run ok, but I'm wondering what is doing this? Under Un*x, compare the

[PHP] Re: Interbase lob field on the web

2001-08-13 Thread Richard Lynch
I dunno about the Interbase part, but you need to have a separate script just for the image, since that's a separate HTTP request from a web-page. This separate file needs to send out the right header for GIF images: ?php header(Content-type: image/gif); ? You then need to get the GIF data

[PHP] Re: Using a receiving a cookie with cURL?

2001-08-13 Thread Richard Lynch
Probably -- You may need to examine the output of the HTTP stream coming back and store it yourself, but the data is all just text coming out of their server into your script. Read it, store it, figure out what to send back to get through the next page, and just keep plugging away at it. --

[PHP] Re: Problem with Zend Optimizer

2001-08-13 Thread Richard Lynch
You probably should take this to Zend support and/or their forums if nobody here knows it. That said, *WHERE* is libm.so.5, and where are they likely to be looking for it?... Make some SymLinks to it in the usual places until it works. Disclosure: I used to *BE* Zend support :-) -- WARNING

[PHP] Re: Storing Credit Card Numbers, etc.

2001-08-13 Thread Richard Lynch
I'm new to PHP and to e-commerce. Needless to say, I've done a lot of studying over the last few weeks and I'm ready to dive in head first! Actually, you're not... Sorry. The fact that you want to store data in flat files, and that you want to store CREDIT CARD INFO the way you describe

[PHP] Re: variable $PATH_INFO

2001-08-13 Thread Richard Lynch
why can i read PATH_INFO server variable with apache under windows server ? with IIS 5 it's OK how can i ? ? print $PATH_INFO ? - Warning: Undefined variable: PATH_INFO in e:\sitephp\php_edit\htdocs\var.php on line 3 Is Apache configured to pass that variable on? Did you compile as CGI

[PHP] Re: inserting a remote html file

2001-08-13 Thread Richard Lynch
What errors are you receiving? You probably should change your \\ to / for Windows paths to work right. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

Re: [PHP] Dealing with a file

2001-08-13 Thread Dan Lowe
Previously, John Meyer said: I haven't had much experience with dealing with uploaded files. Are there any links that would help me to deal with these files using PHP from a server-side. http://www.php.net/manual/en/features.file-upload.php -- If carpenters made buildings the way

Re: [PHP] Problems with split

2001-08-13 Thread Dan Lowe
Previously, Ville Mattila said: --- $invdate = 14.8.2001; echo $invdate\n; list($day, $month, $year) = split(., $invdate); echo $year-$month-$day; --- Somehow, the second echo outputs only -- as it should be 2001-8-14. Any idea why this happen and how this could be avoided? Change the

Re: [PHP] How to stop images preloading in netscape?

2001-08-13 Thread Dan Lowe
Previously, Kelly Corkill said: Define the height and width for each graphic, otherwise how does the browser know how to draw the screen? With height/width netscape will allocate space for the missing images and fill them in as the files complete, without - it waits until all are done before

Re: [PHP] auto_prepend_file

2001-08-13 Thread David Robley
On Tue, 14 Aug 2001 05:05, lolodev wrote: recetly i ask about running automatically a page after each request page. response is auto_prepend_file, auto_append_file, but how can i prepend file is the same for all php.ini but how can i do this with my provider , and how can i have a

Re: [PHP] Problems with split

2001-08-13 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dan Lowe) wrote: $invdate = 14.8.2001; echo $invdate\n; list($day, $month, $year) = split(., $invdate); echo $year-$month-$day; --- Somehow, the second echo outputs only -- as it should be 2001-8-14. Any idea why this happen and how

Re: [PHP] Cookie Help

2001-08-13 Thread Richard Baskett
header(Set-Cookie: cookiemonster=$cookiedata; expires=$expire; path=/; domain=domain.com, secure); or go to http://home.netscape.com/newsref/std/cookie_spec.html to view even more specs on it. I just found this way of setting cookies to always work compared to the php setcookie command which

[PHP] Re: Problems with split

2001-08-13 Thread Richard Lynch
--- $invdate = 14.8.2001; echo $invdate\n; list($day, $month, $year) = split(., $invdate); echo $year-$month-$day; --- split uses Regular Expressions. This means that a whole slew of characters like [, ], |, \, $, ^, and [drum roll please] '.' are special. Specifically, . means any damn

[PHP] Re: Cookie Help

2001-08-13 Thread Richard Lynch
Hi, I have a problem with setting cookies...I am able to set cookies and retreive the information when using IE but not netscape. I'm not totally sure what the problem is. Here is the syntax that I am using, any suggestions are welcomed. $cookiedata = Mmmm; $time = mktime()+900; $expire =

[PHP] Re: Win32 Manual error?

2001-08-13 Thread Richard Lynch
...Please also note that the cc: and bcc: headers are case sensitive and should be written as Cc: and Bcc: on Win32 systems. This depends more on the mailing software you use that Win32-ness. There might even exist some lame-ass Un*x software somewhere that insists on case-sensitivity, which

[PHP] Re: Dealing with a file

2001-08-13 Thread Richard Lynch
There's a File Upload Feature page on http://php.net that pretty much tells you everything you need to know... Then there's sample code in the various archives linked from http://php.net/links.php I'm willing to bet that every site linked there has at least one (1) file-upload sample. --

[PHP] Re: How give a 'timed' online quiz?

2001-08-13 Thread Bryan \Cyngon\ Helmkamp
You could have PHP insert a hidden form value holding the start time in the form. Then compare the start time with the current time when they submit and handle as needed. You could somehow encrypt the start time to prevent tampering. -Bryan -- PHP General Mailing List (http://www.php.net/)

[PHP] using eregi_replace to replace only substrings -- not the entire string.

2001-08-13 Thread Kurt Lieber
I'm trying to update a number in a text file using eregi_replace. The original line is: $registrationLimit = 100; and I'd like to change it to: $registrationLimit = 300; now, 100 appears multiple times throughout the file, so I have to match on the whole string, not just 100. I used the

Re: [PHP] using eregi_replace to replace only substrings -- not the entire string.

2001-08-13 Thread David Robley
On Tue, 14 Aug 2001 12:23, Kurt Lieber wrote: I'm trying to update a number in a text file using eregi_replace. The original line is: $registrationLimit = 100; and I'd like to change it to: $registrationLimit = 300; now, 100 appears multiple times throughout the file, so I have to

[PHP] stop a batch of mail during send

2001-08-13 Thread Matthew Delmarter
Let's say I am mailing 1000 members of a mailing list - is it possible to stop the process once started? In particular I am looking for a browser based solution... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] stop a batch of mail during send

2001-08-13 Thread Matthew Delmarter
Let's say I am mailing 1000 members of a mailing list - is it possible to stop the process once started? In particular I am looking for a browser based solution... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] space in strings

2001-08-13 Thread Martin Skjoldebrand
Some time ago I needed a function that remove space in strings. Sure there is one that remove space at the start of the string, and one that removes trailing space - but is there one that removes ALL spaces from a string? Like: $string = this is a string; rmspc($string); // $string is now

RE: [PHP] space in strings

2001-08-13 Thread Jack Dempsey
$string = str_replace(' ','',$string); -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 12:03 AM To: [EMAIL PROTECTED] Subject: [PHP] space in strings Some time ago I needed a function that remove space in strings. Sure there is one

[PHP] Need Info -Memory leakage tool

2001-08-13 Thread senthilvellan
Hello techies, In Java automatic garbage collection is there.How abt PHP?. Is there any tool(open source/free ware) to test the memory leakage.If it so where i can get that tool?Any suggestions will be appreciated. Thanks in advance. SenthilVellan.

[PHP] Put value directly into form?

2001-08-13 Thread Phil Latio
How can I directly put values into a form instead having to create hidden fields and drag the data from them? You can see what I mean at: http://www.yorkshire-search.co.uk/links/add.php3 Would a javascipt function be any use to me? -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP Script causing recursive free() calls (?)

2001-08-13 Thread Chris Cameron
I was told this was a PHP problem, and to submit a bug report. I'm not too sure what such a bug report would look like, or even if this is a PHP problem. Below is the message I sent to an Apache list, could someone tell me whether my problem is crummy code, or an actual problem with PHP/Apache?

Re: [PHP] space in strings

2001-08-13 Thread CC Zona
In article 001301c12476$3420f300$82602c3f@2pqjp01, [EMAIL PROTECTED] (Jack Dempsey) wrote: that removes trailing space - but is there one that removes ALL spaces from a string? Like: $string = this is a string; rmspc($string); // $string is now thisisastring $string =

[PHP] Regarding file upload using php

2001-08-13 Thread Parinda
Hi !! Can I upload a file to a server without using input type=file I don't want to browse a file. My filename will be fixed file will be present on my local machine. Please reply at the earliest as this is very urgent. Thanking you. Regards, Parinda. Software Group Phil Systems Ltd.

[PHP] Regarding file upload using php

2001-08-13 Thread Parinda
Hi !! Can I upload a file to a server without using input type=file I don't want to browse a file. My filename will be fixed file will be present on my local machine. Please reply at the earliest as this is very urgent. Thanking you. Please send me a reply at my address because I am not

RE: [PHP] Regarding file upload using php

2001-08-13 Thread Jason Murray
Can I upload a file to a server without using input type=file I don't want to browse a file. My filename will be fixed file will be present on my local machine. No, you can't. You need to use INPUT TYPE=FILE in a multipart/form-data FORM regardless of the fixed file name and file's

[PHP] Good News for PHP programmer.

2001-08-13 Thread Ian
We are looking for interested partnership for our dotcom organisation, which are based in Kuala Lumpur, Malaysia. The Required Partner should be familiar with : 1. Operating System - Linux. 2. Language - PHP script. 3. Database - MySQL. 4. Internet Infrastructure. Interested candidate may send

Re: [PHP] Regarding file upload using php

2001-08-13 Thread Evan Nemerson
I don't think so, but to you could put input type=file value=/path/to/file in a hidden layer... Untested, but it should work... On Tuesday 14 August 2001 09:58, you wrote: Hi !! Can I upload a file to a server without using input type=file I don't want to browse a file. My filename will

RE: [PHP] Regarding file upload using php

2001-08-13 Thread Jason Murray
I don't think so, but to you could put input type=file value=/path/to/file in a hidden layer... Untested, but it should work... Yay, security. I doubt it'd work... INPUT TYPE=FILE VALUE='/etc/passwd' Hmmm... Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] stop a batch of mail during send

2001-08-13 Thread Evan Nemerson
If the server is linux, you could have another page that just sends a KILL signal to PHP using exec(), system(), backtics, whatever... On Monday 13 August 2001 20:56, you wrote: Let's say I am mailing 1000 members of a mailing list - is it possible to stop the process once started? In

[PHP] Classes and performance bottlenecks

2001-08-13 Thread Artyom Plouzhnikoff
I have a strange problem with PHP 4.0.4pl1 and above. It looks like including a file that contains classes can become a major performance bottleneck My machine is an Intel Pentium ]I[ 667Mhz, 128Mb RAM running RedHat Linux 7.1; I installed PHP as a DSO module. I used ab (Apache Benchmark) for

Re: [PHP] Re: How give a 'timed' online quiz?

2001-08-13 Thread Evan Nemerson
You can't do this and keep it tamper-proof with JavaScript/PHP. No matter what, anyone with an IQ above that of a tree stump could play with the POST variables. I think the only way to do this and keep it tamper proof would be a Java applet. If memory serves, you can have record the time on

Re: [PHP] The secrecy of PHP code

2001-08-13 Thread Garth Dahlstrom
Of course the absolute safest way besides encryting your PHP is to just store your state secrets in files outside the web server's document tree. i.e. if your web server's document root is /var/www ?php require(/var/super-secret/super-functions.php); if ($theanswer == 42) { echo

Re: [PHP] Put value directly into form?

2001-08-13 Thread Dave Freeman
On 14 Aug 01, at 5:14, Phil Latio wrote: How can I directly put values into a form instead having to create hidden fields and drag the data from them? You can see what I mean at: http://www.yorkshire-search.co.uk/links/add.php3 Looks to me like they're still using the form to process

Re: [PHP] How to get the query string?

2001-08-13 Thread Ryan Fischer
You wrote: hi guys, I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work: for

Re: [PHP] IE Download twice from DB - MAJOR disaster to db users

2001-08-13 Thread Ryan Fischer
You wrote: very amusing indeed. Go learn php and when youll have answer send it or stfu. you might start with your own site: www.PHPBeginner.com and then go to http://logos.uoregon.edu/explore/socioling/politeness.html to learn how to behave ! Its amazing how many people are rude ! I

Re: [PHP] IE Download twice from DB - apologies

2001-08-13 Thread Ben-Nes Michael
ohh I'm sorry after reading it more deeply I realized that I misunderstood it. I thought you offered me to send my self email to suck of and then sleep on it. :( Sorry English is not my primary language. any way I thank you for the help but it wont work as the content is not loaded twice in

RE: [PHP] IE Download twice from DB - apologies

2001-08-13 Thread Maxim Maletsky
you're forgiven :-) take care, m -Original Message- From: Ben-Nes Michael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 3:15 PM To: Maxim Maletsky; [EMAIL PROTECTED] Subject: Re: [PHP] IE Download twice from DB - apologies ohh I'm sorry after reading it more deeply I

<    1   2