Re: [PHP] Memory errors?

2003-03-06 Thread Leif K-Brooks
Yes, I'm sure. Nik Makepeace wrote: Are you sure you don't have an infinite loop anywhere? This sort of thing can happen if you have an array or a string being built by a loop that never quits. Nik -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decr

[PHP] SUBMIT

2003-03-06 Thread Diksha Neel
dear all, hi! i have a php page by name diki.php which i have pasted below. i have removed the irrelevant code because of the size limit of the email. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents

[PHP] submit button

2003-03-06 Thread Diksha Neel
dear all, hi! i have a php page by name diki.php which i have attached. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. stran

[PHP] Re: fopen/fgets

2003-03-06 Thread Adrian Ciutureanu
you close the input file in while loop ( fclose($fp); ) "Bryan Koschmann - Gkt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can someone give me a hand here? I am really lost as to what is going on. > I have a file that looks like this > > user1,Store 1 - ABC street > user2,Store

[PHP] submit button

2003-03-06 Thread Diksha Neel
dear all, hi! i have a php page by name diki.php which i have attached. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. stran

RE: [PHP] Maximum execution time exceeded when using dial up

2003-03-06 Thread Niklas Lampén
My short answer: set_time_limit(); Niklas -Original Message- From: Andras Kende [mailto:[EMAIL PROTECTED] Sent: 7. maaliskuuta 2003 9:05 To: 'php list' Subject: [PHP] Maximum execution time exceeded when using dial up Hello, I have database while query which populates cells in a ht

[PHP] Maximum execution time exceeded when using dial up

2003-03-06 Thread Andras Kende
Hello, I have database while query which populates cells in a html table, but noticed if using a slow dial up connection its times out... Fatal error: Maximum execution time of 60 seconds exceeded in D:\website\eis-vieworderlookup.php on line 75 What's the best way to deal with this?? Thanks

RE: [PHP] Dollar signs in values

2003-03-06 Thread Niklas Lampén
True. My bad. :) You really have to use single quotes, not double quotes. And I was the one telling about this a couple of days a go. :) Niklas -Original Message- From: Jason k Larson [mailto:[EMAIL PROTECTED] Sent: 7. maaliskuuta 2003 8:58 To: [EMAIL PROTECTED] Cc: Php-General Subjec

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason k Larson
And what about: print htmlspecialchars('[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December,2003~on~fjskl'); It seems to work for me. -- Jason k Larson Niklas Lampén wrote: print htmlspecialchars("[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December, 2003~on~fjs

[PHP] submit button

2003-03-06 Thread Diksha Neel
dear all, hi! i have a php page by name diki.php which i have attached. in this page is a submit button at the end. the form in which this button is placed is by "get" sent to p.php which has only the following contents: but when i click on submit button i am not getting connected to p.php. stran

RE: [PHP] Dollar signs in values

2003-03-06 Thread Niklas Lampén
print htmlspecialchars("[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December, 2003~on~fjskl"); Niklas -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: 7. maaliskuuta 2003 8:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] Dollar signs in values > Could y

Re: [PHP] MYSQL :(

2003-03-06 Thread John Taylor-Johnston
>(Just an idea...) An idea that worked ... BUT :) I had to leave out "id" in the insert and the select INSERT INTO ccl.ccl_maintest ( RNum, YR, AU, ST, SD, SC, BT, BD, BC, AT, AD, AC, SR, PL, PR, JR, VNum, INum, DT, PG, LG, SF, OL, KW, AUS, GEO, AN, RB, CO, RR ) SELECT id, RNum, YR, AU, ST, SD,

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 14:13, Liam Gibbs wrote: > > Could you show some code to illustrate the unpredictable results that you > > get? > > Here's what I have in my file: > > [EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December, 2003~on~fjskl > > It's first exploded() by ~, What d

RE: [PHP] MYSQL :(

2003-03-06 Thread Jason Murray
> How can I get this to use the next auto_increment of > id (Next Autoindex = 52)? What if you just remove id from your field list? insert into ccl.ccl_maintest (id,RNum,YR,AU,ST ^^^ Here :) (Just an idea...) J -- PHP General Mailing

[PHP] MYSQL :(

2003-03-06 Thread John Taylor-Johnston
Ok, I'm off topic. I'm trying to build some php code but can't get my SQL right. http://www.mysql.com/doc/en/INSERT_SELECT.html insert into ccl.ccl_maintest (id,RNum,YR,AU,ST,SD,SC,BT,BD,BC,AT,AD,AC,SR,PL,PR,JR,VNum,INum,DT,PG,LG,SF,OL,KW,AUS,GEO,AN,RB,CO,RR) select id,RNum,YR,AU,ST,SD,SC,BT,BD,B

Re: [PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
> I'll try the single quotation mark method first, though. Single quotations didn't seem to work either. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
> Could you show some code to illustrate the unpredictable results that you get? Here's what I have in my file: [EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December, 2003~on~fjskl It's first exploded() by ~, then those values are produced by print("") statements, like this one:

RE: [PHP] Dollar signs in values

2003-03-06 Thread Martin Towell
code snippets would be helpful -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 5:07 PM To: php list Subject: Re: [PHP] Dollar signs in values > Escape them with a backslash: > > $text = "The amount is \$400.-"; All that does is print \$ in

Re: [PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
> Escape them with a backslash: > > $text = "The amount is \$400.-"; All that does is print \$ in my HTML. What's going on is that it will put, say, RR$T into a file when that's typed into a textbox or any typable form control. That's properly saved in the file. So the file will contain RR$T. W

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 13:58, Liam Gibbs wrote: > How is it I can properly get PHP to represent dollar signs when putting it > into HTML? > > I know that dollar signs denote the beginning of a variable, like > $reference or $ftpstream or whatever. However, I have a text file that > contains (or ca

Re: [PHP] Dollar signs in values

2003-03-06 Thread Ernest E Vogelsinger
At 06:58 07.03.2003, Liam Gibbs said: [snip] >How is it I can properly get PHP to represent dollar signs when putting it >into HTML? > >I know that dollar signs denote the beginning of a variable, like $reference >or $ftpstream or whatever. However, I have

[PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
How is it I can properly get PHP to represent dollar signs when putting it into HTML? I know that dollar signs denote the beginning of a variable, like $reference or $ftpstream or whatever. However, I have a text file that contains (or can contain) values with $ in them. When I open the file and

[PHP] mailist all subjects

2003-03-06 Thread WebDev
Hello all can somebody please tell how do I get any subject of the general list into my inbox not only the topics I start Tx

Re: [PHP] Memory errors?

2003-03-06 Thread Nik Makepeace
On Fri, 2003-03-07 at 14:44, Leif K-Brooks wrote: > Lately, I've been getting the following error: > Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to > allocate 86460 bytes) in Unknown on line 0 > The thing is, I'm not doing anything that could possibly require much > memory

[PHP] Login via PHP: Protecting files and directories

2003-03-06 Thread Ernest E Vogelsinger
Hi all, since this has been asked a lot the last weeks I've published a nice little script for a generic login system using the HTTP authentication method via the "401 Unauthorized" header. It is available at http://www.vogelsinger.at/protected.html. Its main features are: - Protects directorie

[PHP] Memory errors?

2003-03-06 Thread Leif K-Brooks
Lately, I've been getting the following error: Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to allocate 86460 bytes) in Unknown on line 0 The thing is, I'm not doing anything that could possibly require much memory. Is there some kind of bug, or am I missing something? --

[PHP] test page

2003-03-06 Thread USONYX.NET
Hi, Could anyone advise me how I could test PhP operation over HTTP connection? Is there any php script available which I can use to make sure that everything works including database connection? Please help Alex101 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] Line breaks

2003-03-06 Thread John W. Holmes
> I have a basic feedback form with: > your name > your e-mail address > E-Mail Subject > Message > > The problem is the line breaks... > > For example, they might type in the following (between the dashed > lines) into the Message textarea: > -- > Hi, > >

[PHP] Line breaks

2003-03-06 Thread Gavin Amm
Hi, Please help me before I go insane... I have a basic feedback form with: your name your e-mail address E-Mail Subject Message The problem is the line breaks... For example, they might type in the following (between the dashed lines) into the Message textarea:

Re: [PHP] File upload and permissions

2003-03-06 Thread Nik Makepeace
On Fri, 2003-03-07 at 07:24, Charles Kline wrote: > I have played with it - changing permissions and the only > one that works is chmod 777 - not sure if this is good or not - pretty > new to unix administration stuff. If you don't want to make a new directory to store them, you should make sure

Re: [PHP] Version 5?

2003-03-06 Thread Joshua Moore-Oliva
Where could I find a list of features that 5 is planning on having? Josh. On March 6, 2003 11:12 pm, Marco Tabini wrote: > On Thu, 2003-03-06 at 23:09, Larry Brown wrote: > > Someone mentioned a facet of version 5 to be expected that I am really > > looking forward to. Does anyone know what the

Re: [PHP] include or function

2003-03-06 Thread Nik Makepeace
On Fri, 2003-03-07 at 09:34, John Taylor-Johnston wrote: > I have an *.inc with html, a rather long list of . And you want to print out said list of OPTIONs several times with different ones selected each time? You could do it with an array and a function. The array would contain a list of keys

Re: [PHP] Version 5?

2003-03-06 Thread Marco Tabini
On Thu, 2003-03-06 at 23:09, Larry Brown wrote: > Someone mentioned a facet of version 5 to be expected that I am really > looking forward to. Does anyone know what the release target date is? I > didnt see any mention of it on php.net. Version 5 is still being actively developed (at least as fa

[PHP] Version 5?

2003-03-06 Thread Larry Brown
Someone mentioned a facet of version 5 to be expected that I am really looking forward to. Does anyone know what the release target date is? I didn’t see any mention of it on php.net. Larry S. Brown Dimension Networks, Inc. (727) 723-8388

RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
> Where do you get that from? Probably from not trying it before I open my mouth. I must have dreamed it somewhere, sorry :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] random -n lines array problem

2003-03-06 Thread John W. Holmes
> > You need to explode() $line. > > Won't that still cause problems for him, since explode() will > ignore concurrent separators ()? Where do you get that from? $a = "a|b|||c||d"; $b = explode("|",$a); print_r($b); Array ( [0] => a [1] => b [2] => [3] => [4] => c

RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
> You need to explode() $line. Won't that still cause problems for him, since explode() will ignore concurrent separators ()? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] random -n lines array problem

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 12:51, WebDev wrote: > the code only displays the 10 random line numbers > somehow again the arrays are empty, tried all tricks to see if arrays are > carrieng anything but the are all empty > $dreidrei, $dreivier, $dreifunf, $dreisechs ) = ($line); You need to explode() $

[PHP] Re: Get Browsers time zone

2003-03-06 Thread Joseph Szobody
Jonathan, Only way I can think of is to display the time using Javascript. This way it will be displayed according to the users computer clock. Of course, if the computer clock is wrong... Joseph "Jonathan Arnold" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a way

[PHP] Get Browsers time zone

2003-03-06 Thread Jonathan Arnold
Is there a way to figure out the client (ie., browser's) time zone? I have a time stored as a GMT time, and I'd like to display it in the viewer's time zone. -- Jonathan Arnold (mailto:[EMAIL PROTECTED]) Amazing Developments http://www.buddydog.org So I'm ugly. So what? I never saw anyone

[PHP] random -n lines array problem

2003-03-06 Thread WebDev
the code only displays the 10 random line numbers somehow again the arrays are empty, tried all tricks to see if arrays are carrieng anything but the are all empty data file loks like : 123|name|LastN|City|Country|||etc|etc| 124|names|lastN|||etc||etc| could somebody please find the error, thank

[PHP] Re: File upload and permissions

2003-03-06 Thread KK
yeah, unfortunately 777 is the way to go. "Charles Kline" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a form which uploads a file to my server. The files that are > uploaded will be .doc files and will need to be able to be downloaded > from a web page. > > My script works

[PHP] RegEx for a URL?

2003-03-06 Thread Jason Murray
Hi folks, I'm looking for a regular expression which matches a URL. I've found several already by looking around various sites, but they don't seem to accomplish what I'm looking for. I'm developing a PHP-driven message board / forum system. As a part of this, of course, I have to give users the

[PHP] include or function

2003-03-06 Thread John Taylor-Johnston
I have an *.inc with html, a rather long list of . I want to clean this up some. I'm going to declare $FieldName and $ToBeSelected before I call include("options.inc"). I also want to select one of the in advance. The problem is ... this is beginning to look like a function, which I will decla

Re: [PHP] Modifying a string

2003-03-06 Thread Liam Gibbs
> I need to modify a string that contains image links like src="http://www.somedomain/directory/graphics/filename.jpg";> to > image links like Maybe something like with str_replace()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session_set_save_handler problem

2003-03-06 Thread Duncan
AHA! I found the problem: session_expiration is an unsigned int(11) field type and so session_expiration > now() always results in no match, even when it should be in the on_session_read() function. ...now i need to make sure, that the now() gets the same value type, right? ...any ideas? Thanks

[PHP] fopen/fgets

2003-03-06 Thread Bryan Koschmann - GKT
Can someone give me a hand here? I am really lost as to what is going on. I have a file that looks like this user1,Store 1 - ABC street user2,Store 2 - Northside user3,Store 3 - East I try to run my code, but I get a php log filled (~33 megs, the input file is only 12 lines): [06-Mar-2003 15:22:

[PHP] File upload and permissions

2003-03-06 Thread Charles Kline
I have a form which uploads a file to my server. The files that are uploaded will be .doc files and will need to be able to be downloaded from a web page. My script works locally - I have tested it well files upload etc., but I am moving it to a commercial web server and am not sure what permi

Re: [PHP] retrieve last n records

2003-03-06 Thread drparker
I see your point, and I'd really like to use Limit in the query. However, what if I want to sort those 5 last records by another field? They're already sorted DESC, so I can't do that. Kevin Stone wrote: > - Original Message - > From: "drparker" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECT

Re: [PHP] retrieve last n records

2003-03-06 Thread Kevin Stone
- Original Message - From: "drparker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 2:42 PM Subject: [PHP] retrieve last n records > I need to retrieve the last n records of a table, n will probably be 2 > or 3. I know that I can accomplish this by: select *

[PHP] Empty Database Variables

2003-03-06 Thread Stephen
Hello, For some reason, whenevr I try and access the database contents, it turns up empty. What I do is randomly select an ID (the lowest being 1 and the highest being however many IDs are in the database [this section of accessing the database works]). After I select the ID, I get an ad according

[PHP] retrieve last n records

2003-03-06 Thread drparker
I need to retrieve the last n records of a table, n will probably be 2 or 3. I know that I can accomplish this by: select * from table order by field DESC Limit n, but i would prefer not to do this way because it interferes with my sorting mechanism on the main page. Is there any other way to do

RE: [PHP] Pages refresh on submission on RedHat Server - POST problem

2003-03-06 Thread Barajas, Arturo
I think I know what can be causing it. Maybe on your "local" config you have register_globals turned on, and on the other (Red Hat) they are turned off. Try: if ($_GET['submit_login'] <> "") or if ($_POST['submit_login'] <> "") depending on the method you're using to send the data to the Re

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
- Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]>; "WebDev" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 2:06 PM Subject: Re: [PHP] reading last -n lines array is emty > > Holy crap looks like I was wrong!

Re: [PHP] Modifying a string

2003-03-06 Thread Duncan
--- Begin Message --- Hi, if it's always the same "src=http://www.somedomain/directory/";, then the easiest might be: $string = str_replace('src="http://www.domedomain/directory/','src="',$string); ... Duncan Luis Lebron wrote: I need to modify a string that contains image links like http://

[PHP] Modifying a string

2003-03-06 Thread Luis Lebron
I need to modify a string that contains image links like http://www.somedomain/directory/graphics/filename.jpg";> to image links like How can I do this? Luis

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread 1LT John W. Holmes
> Holy crap looks like I was wrong! I just tested it and sure enough '|' does > return an error.. how do you like that. So use split("\|", $file[$i]). For a regular expression "|" means OR. You could use explode("|",$file[$i]) for the sam effect. Benchmark split() vs. explode() and see which is

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
Buitiful it works finaly thanks to your help Could you be so nice and as well look what I am doing wrong with the random array display I send it today to the list already again with the lates code it uses the same data file but only random line numbers is all what I get - Original Message

[PHP] session_set_save_handler problem

2003-03-06 Thread Duncan
Hi, i just tried the session_set_save_handler script from Sterling Hughes "PHP Cookbook", which allows to save the session in a MySQL database. However, i ran into a problem: The script works just fine and also saves the session in the database, but it doesn't update the value of the saved data. I

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
Holy crap looks like I was wrong! I just tested it and sure enough '|' does return an error.. how do you like that. So use split("\|", $file[$i]). - Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "WebDev" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, Ma

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
Sorry that should be $file[$i] not $line[$i]. I failed to see your other mistake. Just trust me on the '|' thing. - Kevin - Original Message - From: "WebDev" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 4:44 PM Subject: Re:

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
If I remove the "/" then I get this error Warning: bad regular expression for split() in /home/virtual/browse/home/httpd/html/Classifieds/infobox2.php on line 14 - Original Message - From: Kevin Stone <[EMAIL PROTECTED]> To: WebDev <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday,

RE: [PHP] Uploading file problem

2003-03-06 Thread Rich Gray
> Thanks!! I'll give that a try! > > On Thu, 6 Mar 2003, 1LT John W. Holmes wrote: > > > > Well, I have a statement that says: > > > > > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > > > echo an error > > > }else{ > > > proceed with renaming the file > > >

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
No you did not do it as I described. Here's what I wrote: split('|', $line[$i]); Here's what you wrote: split('\|', $line[$i]); See the difference? Remember single quotes denote a literal. You do not have to limit the pipe character when you use single quotes. - Kevin - Original Message

[PHP] A "Refreshing" Problem

2003-03-06 Thread Peter Goldenberg
My PHP-based pages "intially" work, but will not refresh when I go through Microsoft IIS Web Server. The identical PHP-based pages work and refresh correctly when I go through Apache. My environment is . . . Microsoft Windows XP Professional Microsoft IIS Web Server Apache Web Server (on a por

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
still empty Got the code like you described: // start $file = file("data/ads.data"); $num_lines = count($file); if ($num_lines > 10) $start_line = $num_lines - 10; else $start_line = 0; for ($i=$start_line; $i<$num_lines; $i++) { list($adnr, $user, $date, $listed, $hlong, $eins, $zwei,

[PHP] Help Needed

2003-03-06 Thread Pushpinder Singh Garcha
Hello All I am writing again with reference to my dir Protection PHP script. The scenario is explained below. Whenever a user clicks a particular URL, it triggers a php file which first checks if the user's session exists or not. If the user's session exists, it should fopen() the particular f

Re: [PHP] php list via email

2003-03-06 Thread David T-G
Dan -- ...and then Dan Rossi said... % % shit i'm a dope this is the email address [EMAIL PROTECTED], as i No problem :-) % access the group via newsgroup i never knew :|, but what i am saying is , as No problem! So you don't see the footer at the bottom of everyone else's list posts when th

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 07:09, WebDev wrote: > I again have no values in my list names $adnr, $user, $date, $listed, > $hlong, $eins, $zwei, . themn are always emty no matter what I do with > your code my code > $dreidrei, $dreivier, $dreifunf, $dreisechs ) = split ("\|", $buffer); That's bec

RE: [PHP] php list via email

2003-03-06 Thread Dan Rossi
shit i'm a dope this is the email address [EMAIL PROTECTED], as i access the group via newsgroup i never knew :|, but what i am saying is , as like mysql it is downloading all the messages to my inbox i cannot do this with the php list i can only post, and can only read them in the newsgroup viewer

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
I again have no values in my list names $adnr, $user, $date, $listed, $hlong, $eins, $zwei, . themn are always emty no matter what I do with your code my code // code start $file = file("data/ads.data"); $num_lines = count($file); if ($num_lines > 10) $start_line = $num_lines - 10; els

[PHP] Php File/Dir Protection

2003-03-06 Thread Pushpinder Singh Garcha
Hello All My application is based on PHP / MySQL. I am using "Sessions" to validate users before they can access the SIte. I need to use the same login to allow the users to gain access to a secret Dir. This directory is within the webfolder. I have gone through many previous threads and figu

Re: [PHP] Help me

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 03:42, Cavallaro, Vito wrote: > Do You Know java mail list? I don't, but I bet google does. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

Re: [PHP] Pages refresh on submission on RedHat Server - POST problem

2003-03-06 Thread Arijit Chaudhuri
> You wouldn't by chance be using $PHP_SELF as the action field of the form? I am - though not by using $PHP_SELF but using the same file name in action - holds for all my files. Any way to get around it? Have not got this problem on any other server earlier. Thanks, Arijit "Kevin Stone" <[EMA

Re: [PHP] read -n lines from end of file - Empty array ?

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 06:25, WebDev wrote: > How to grab the last -n lines from a data file and display the stored data > Only the the last 10 line numbers coming back when I echo $i > > How do I get the list($adnr, $user, $date, $listed to catch the > datafields > > datafile looks like > 2

Re: [PHP] Pages refresh on submission on RedHat Server - POST problem

2003-03-06 Thread Arijit Chaudhuri
> You wouldn't by chance be using $PHP_SELF as the action field of the form? I am - though not by using $PHP_SELF but using the same file name in action - holds for all my files. Any way to get around it? Have not got this problem on any other server earlier. Thanks, Arijit "Kevin Stone" <[EMA

[PHP] Re: read -n lines from end of file - Empty array ?

2003-03-06 Thread Niels Andersen
$file = file('filename'); $line = end($file); for ($i=0; $line && $i<10;$++) { list (. and so on... $line = prev($file); } "Webdev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] How to grab the last -n lines from a data file and display the stored data Only the the last 1

Re: [PHP] Uploading file problem

2003-03-06 Thread Amanda McComb
Thanks!! I'll give that a try! On Thu, 6 Mar 2003, 1LT John W. Holmes wrote: > > Well, I have a statement that says: > > > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > > echo an error > > }else{ > > proceed with renaming the file > > } > > > > The er

[PHP] Help me

2003-03-06 Thread Cavallaro, Vito
Do You Know java mail list? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: _FILES

2003-03-06 Thread Niels Andersen
Yes, $HTTP_POST_FILES is depricated, but it still works in PHP 4. "John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES is still compliant? > John > -- PHP General Mailing List (http://www.p

Re: [PHP] Uploading file problem

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 03:28, Amanda McComb wrote: > Well, I have a statement that says: > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > echo an error > }else{ > proceed with renaming the file > } The copy() function allows you to specify a d

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
You could do it reading back to front the way you propose but I think it will work much better in a proper for loop. // the number of elements in the array. $num_lines = count($file); // the line we want to start the loop at. if ($num_lines > 10) $start_line = $num_lines - 10; else $start

Re: [PHP] Uploading file problem

2003-03-06 Thread 1LT John W. Holmes
> Well, I have a statement that says: > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > echo an error > }else{ > proceed with renaming the file > } > > The error that is echoed after the copy is the one that pops up. So, it > could be some other problem,

Re: [PHP] Uploading file problem

2003-03-06 Thread Amanda McComb
Well, I have a statement that says: if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { echo an error }else{ proceed with renaming the file } The error that is echoed after the copy is the one that pops up. So, it could be some other problem, but

[PHP] read -n lines from end of file - Empty array ?

2003-03-06 Thread WebDev
How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numbers coming back when I echo $i How do I get the list($adnr, $user, $date, $listed to catch the datafields datafile looks like 23|Werner|LastN|Street|etc|etc.|etc|| 24|Veronika /

[PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numbers coming back when I echo $i How do I get the list($adnr, $user, $date, $listed to catch the datafields datafile looks like 23|Werner|LastN|Street|etc|etc.|etc|| 24|Veronika /

[PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numbers coming back when I echo $i How do I get the list($adnr, $user, $date, $listed to catch the datafields datafile looks like 23|Werner|LastN|Street|etc|etc.|etc|| 24|Veronika /

[PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numbers coming back when I echo $i How do I get the list($adnr, $user, $date, $listed to catch the datafields datafile looks like 23|Werner|LastN|Street|etc|etc.|etc|| 24|Veronika /

Re: [PHP] Uploading file problem

2003-03-06 Thread Mark Heintz PHP Mailing Lists
What do you mean by "fails at the copy"? Have you verified that the filename and path you're copying to is valid? Otherwise, if the filename that is failing is consistently the same, and if it's attempting to overwrite an existing file, it could be a permissions problem. Just a couple of guesse

Re: [PHP] pharse file random work with -n lines

2003-03-06 Thread WebDev
Yes I did all what you suggested ! tried all value carrieres and none has a value as well tried print_r($line); and it gives me the last random line number from 10 random line numbers displayed already if I use $line The sdcript dosn't grab the line only the random numbers are ready Can somebody

[PHP] _FILES

2003-03-06 Thread John Taylor-Johnston
$HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES is still compliant? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] $HTTP_POST_FILES

2003-03-06 Thread John Taylor-Johnston
Nifty. To share my finding ... Thanks, John Upload File C:\WINDOWS\Bureau\microweb\ERIC.TXT Read this file: Upload Results Your file contained: \n"; echo "$fileContents\n"; echo "\n"; #echo ($fileContents); ?> file_uploads = 1 upload_max_filesize = 2M upload_tm

[PHP] strange problem with size of uploaded files..

2003-03-06 Thread Ray
I've searched all over for the answer to this problem.. but haven't found anything.. I have a script that i use to upload files to a webserver and download them via my phone.. problem is, the files end up being about twice the size of the original file.. for example,i upload a midi that

RE: [PHP] Pages refresh on submission on RedHat Server - POST problem

2003-03-06 Thread Barajas, Arturo
Arijit, Are you clicking on the button or pressing on a field to send the data? AFAIK, if you click, it will set the var. If you just press , it will submit the form, but won't set the var. I personally use a hidden var, and I check for that one. HTH. -- Un gran saludo/Big regards... Artur

Re: [PHP] File Download

2003-03-06 Thread Jim Lucas
have the file download in a popup window. after the down load the window will be gone. Then you don't have to worry about the refreshing of the main window. Jim - Original Message - From: "David Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 8:30 AM Su

Fw: [PHP] Pages refresh on submission on RedHat Server - POST problem

2003-03-06 Thread Kevin Stone
You wouldn't by chance be using $PHP_SELF as the action field of the form? - Kevin - Original Message - From: "Arijit Chaudhuri" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 10:56 AM Subject: [PHP] Pages refresh on submission on RedHat Server - POST problem

Re: [PHP] How to redirect form results to different server?

2003-03-06 Thread Jonathan Pitcher
Jody, on "frommail.php": Depending on your version of PHP I would guess you are running PHP 4.2 or greater with register_globals = off. That would create the errors that you are getting: Notice: Undefined variable: Name To get around this error Use this $_GET["Name"] this should return the v

[PHP] Pages refresh on submission on RedHat Server - POST problem

2003-03-06 Thread Arijit Chaudhuri
Its a rather strange thing. I tested all my pages on my Win2000-Apache configuration and uploaded them to my clients RedHat server. There, on submission, all pages just refresh themselves. All my forms are set to submit to the same page and I check in the beginning for the submit button variable. I

RE: [PHP] Uploading file problem

2003-03-06 Thread Amanda McComb
The files go to different directories, but I checked the permissions on all of the directories, and they are all '777'. I am able to upload files, so I think the directory is ok. The server is unix. I am going to ask my boss to send me the files he is trying to upload to see if the files are t

[PHP] Garbage

2003-03-06 Thread Bas Verhoeven
Hi, I recently upgraded PHP to version 4.3.1, however I have some problems with it. When I open some PHP files it shouts garbage at me + some html or just a blank screen, when i look at the file on the server nothing has changed, I already tried uploading the files to another location, keep gettin

  1   2   >