[PHP] session

2003-03-10 Thread Shaun van den Berg
Hi, What should the probability of your garbadge collector be ? is a 100% bad , and how long must the max lifetime of your session variables be , the default is 1440 secs(24 min) , is 24 hours to much ? Thanks Shaun -- Novtel Consulting Tel: +27 21 9822373 Fax: +27 21 9815846 Please visit our we

[PHP] Maths on variables - please help

2003-03-10 Thread Adriaan Nel
Hi every1, I would like some help on multiplication/division of variables on 1 anotherI have looked at the bcmath() function, but it doesn't seem to work. Could any1 pls assist. Adriaan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calling all values of variables into one variable

2003-03-10 Thread Rahul.Brenda
What the following script does is that it gives a result of 4 rows, from the database, and generates 4 variables (newsbits0, newsbits1, newsbits2, newsbits3), and inserts result data into each of these variables. What i want is a final 5th variable which contains all the data of the first 4 varia

[PHP] Re: Form input security

2003-03-10 Thread Manuel Lemos
Hello, On 03/09/2003 04:18 PM, Chris Cook wrote: When using forms, when do I have to worry about cleaning up user data? I know to use escapeshellarg() when using system functions, but how about when using the user data for database inserts? Also, if I do not insert the data into the database or

Re: [PHP] help needed with code!!

2003-03-10 Thread Hugh Danaher
You might try changing to php?> something about short tags hugh - Original Message - From: "Karl James" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 10:14 PM Subject: [PHP] help needed with code!! > Can anyone give me some pointers on why im note seeing > An

[PHP] Re: Persistent values between executions

2003-03-10 Thread Manuel Lemos
Hello, On 03/10/2003 01:30 PM, Mike Mannakee wrote: I have some sets of values that I have stored in several tables in a mySQL database. These don't often change, but are referenced on every single page view. While each call is quick, as a gross the load on the server is too high. I would like

[PHP] Re: html mail

2003-03-10 Thread Manuel Lemos
Hello, On 03/10/2003 10:47 AM, Ian a. gray wrote: I am quite new to php and I am trying to find a way of sending details of a web form over e-mail in both text and html format. There are numerous sites on the web that try and explain how to do this but they are worded very complicated and to be h

[PHP] Re: help needed with code!!

2003-03-10 Thread chris
On Tue, 11 Mar 2003 01:14:09 -0500, Karl James <[EMAIL PROTECTED]> wrote: Can anyone give me some pointers on why im note seeing Any output to the browser. Thanks Karl my link http://66.12.3.67/webdb/webdb13/assignment_1.php my code http://nopaste.php-q.net/7560 ultimatefootballleague.com/inde

[PHP] Re: Error in $_POST

2003-03-10 Thread chris
On Sun, 9 Mar 2003 20:01:33 +0530, Aspire Something <[EMAIL PROTECTED]> wrote: Hi guys , I am getting this error in php ___What I am doing; 1. I am posting data from one form and collecting it for execution as follows $_POST['cust_id[0]']; // cust_id is an array of length 1 which is selected f

[PHP] help needed with code!!

2003-03-10 Thread Karl James
Can anyone give me some pointers on why im note seeing Any output to the browser. Thanks Karl my link http://66.12.3.67/webdb/webdb13/assignment_1.php my code http://nopaste.php-q.net/7560 ultimatefootballleague.com/index.php [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php

Re: [PHP] Forms & Session variables

2003-03-10 Thread Justin French
You need to slow down and think things through. My recommendation would be to get a SINGLE PAGE form to work how you want first, then assess the logic needed to move onto multiple forms. Also, this was asked a while back, so here was my answer & sample code last time: http://marc.theaimsgroup.co

Re: [PHP] newbie: contents will not output

2003-03-10 Thread Hugh Danaher
Anthony, Oh, I forgot to close the file, and it's an important step! fclose($fp); Hugh - Original Message - From: "Anthony Ritter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 7:22 PM Subject: [PHP] newbie: contents will not output > I'm trying to test the

Re: [PHP] Subtracting two dates

2003-03-10 Thread Justin French
on 11/03/03 5:04 PM, Ben C. ([EMAIL PROTECTED]) wrote: > Thanks, Justin. It works. Of course it does :P HTH Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie: contents will not output

2003-03-10 Thread Hugh Danaher
Anthony, Try: $file_to_open="http://www.weather.com";; $fp=fopen($file_to_open,"r"); $contents=fread($fp,1); //reads to eof or ~10K whichever comes first print $contents; Hope this helps. Hugh - Original Message - From: "Anthony Ritter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

[PHP] RE: tricky exec problem

2003-03-10 Thread daniel
hi guys i am having a problem getting certain command line output bak to php i am using the time binary to show the ammount of time it takes for the php script to be compiled using the command line php although i am not getting any output exec("/usr/bin/time php -q /www/sbsmain/worldarts/index.p

RE: [PHP] Subtracting two dates

2003-03-10 Thread Ben C.
Thanks, Justin. It works. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:27 PM To: Ben C.; [EMAIL PROTECTED] Subject: Re: [PHP] Subtracting two dates Then you need to decide if you want to show days, or hours, or years difference... I'

[PHP] Forms & Session variables

2003-03-10 Thread Ashley M. Kirchner
I'm trying to build a multi-step form and using sessions to register the field values, but having serious issues. This is what I'd like to do: step 1 (first page): ask for name, address, email. [submit] step 2 (second page): ask for more personal information [submit] step 3 (last pag

Re: [PHP] Subtracting two dates

2003-03-10 Thread Justin French
Then you need to decide if you want to show days, or hours, or years difference... I'll show you hours and days: You then need to round the number using round(). Justin on 11/03/03 3:02 PM, Ben C. ([EMAIL PROTECTED]) wrote: > There are a lot of artlicles on this but I need a simple solu

[PHP] md5 encrypt problem

2003-03-10 Thread CF High
Hey all. Having a wee bit o' trouble with a simple md5 script: for ($x=1 ; $x <62 ; $x++) { $mypass = "sports" . $x; $mypass = md5($mypass); dbConnect("UPDATE user_login SET password = '$mypass' WHERE school_id = $x"); } For some reason, when I attempt to login with my m

[PHP] Subtracting two dates

2003-03-10 Thread Ben C.
There are a lot of artlicles on this but I need a simple solution. I need to subtract two dates as follows: $date = date("Y-m-d"); $date1 = "2003-03-03"; $differencedate = ($date - $date1); echo $differencedate; When I do this I get 0. Please help!

[PHP] Error in $_POST

2003-03-10 Thread Aspire Something
Hi guys , I am getting this error in php ___What I am doing; 1. I am posting data from one form and collecting it for execution as follows $_POST['cust_id[0]']; // cust_id is an array of length 1 which is selected form an drop down menu 2. register_globals is off 3. Also when i try to call

Re: [PHP] fopen and PHP 4.3.x

2003-03-10 Thread CDitty
At 09:42 PM 3/10/2003, Liam Gibbs wrote: > This is the code around line 30. > $local_file = $feed; > $fp = fopen($local_file, "r"); > > Anyone have any ideas? I have looked over the manual and the only thing I > could find similar to this is in the comments. Apache was restarted. I get the sa

Re: [PHP] fopen and PHP 4.3.x

2003-03-10 Thread Liam Gibbs
> This is the code around line 30. > $local_file = $feed; > $fp = fopen($local_file, "r"); > > Anyone have any ideas? I have looked over the manual and the only thing I > could find similar to this is in the comments. Apache was restarted. I get the same thing so I'm working through it. But

RE: [PHP] newbie: contents will not output

2003-03-10 Thread John W. Holmes
> I'm trying to test the following script to display the contents of the > following URL but it will not output. > > Any advice will be greatly appreciated. > Thank you. > Tony Ritter > ... > > > > > > $file_handler = fopen("http://www.w

[PHP] fopen and PHP 4.3.x

2003-03-10 Thread CDitty
I seem to be having a problem with fopen on apache 1.3.27/php 4.3 servers. Scripts that worked before and on other servers do not work on this one. The web host recently upgraded both php and apache. Below is the error. Warning: fopen(XX) [function.fopen]: failed to

Re: [PHP] newbie: contents will not output

2003-03-10 Thread Justin French
I've never opened a URL with fopen. Have you looked for examples in the manual? http://php.net/fopen ??? however, I can see one problem... filesize($file) -- where is $file Justin French on 11/03/03 2:22 PM, Anthony Ritter ([EMAIL PROTECTED]) wrote: > I'm trying to test the following s

[PHP] newbie: contents will not output

2003-03-10 Thread Anthony Ritter
I'm trying to test the following script to display the contents of the following URL but it will not output. Any advice will be greatly appreciated. Thank you. Tony Ritter ... http://www.weather.com";, "r"); $contents = fread($file_handl

[PHP] Re: Persistent values between executions

2003-03-10 Thread Mike Mannakee
Yeah, it's on linux. I had a similar thought. I figured, if no other solutions came from the post, I could hard code the variables into a file, and if I needed to update it, make it self updating. Like do a string replace to add the new variables I need in the include file itself. Bit of a pain

RE: [PHP] sessions terminating randomly please help

2003-03-10 Thread John W. Holmes
> Is your session.save_path set to /tmp? It's my understanding that you > should > specify a directory for saving session data -- or use a database -- that > /tmp is subject to garbage collection, and specifying a directory prevents > that. I made this change to a site recently. In tests prior to t

[PHP] Re: Persistent values between executions

2003-03-10 Thread chris
On Mon, 10 Mar 2003 11:30:25 -0500, Mike Mannakee <[EMAIL PROTECTED]> wrote: I have some sets of values that I have stored in several tables in a mySQL database. These don't often change, but are referenced on every single page view. While each call is quick, as a gross the load on the server

Re: [PHP] .htaccess Help

2003-03-10 Thread Justin French
Get on the Apache list, not the PHP one :) Justin on 11/03/03 10:39 AM, Pushpinder Singh Garcha ([EMAIL PROTECTED]) wrote: > Hello All > > I need to allow users to be able to access ONLY non-html files in a > Secret Dir. > Can anyone suggest a .htaccess method to do just that. > > I have a .ht

Re: [PHP] sessions terminating randomly please help

2003-03-10 Thread Lowell Allen
> From: "freaky deaky" <[EMAIL PROTECTED]> > > i am experiencing a major problem with sessions expiring randomly in some of > my > apps. i will log in and start clicking around and then i will eventually > arrive at a page that tells me that i'm not logged in anymore. this happens > apparently ra

Re: [PHP] Re: sessions terminating randomly please help

2003-03-10 Thread Justin French
Check if your server is using files or shared memory to save the sessions... My ISP was using mm (memory), and it was buggy... when they changed back to files, all was well. Justin on 11/03/03 7:40 AM, David Chamberlin ([EMAIL PROTECTED]) wrote: > It's possible you're being afflicted with the s

Re: [PHP] PHP Online Store

2003-03-10 Thread Justin French
You only have two options really... either they manually change each product themselves via a web based form, or the process is managed by a CSV file. The first thing you need to ensure is that every product in the catalogue has a unique key (identifier / product number / barcode number / whatever)

Re: [PHP] Enabling HTTP_REFERER

2003-03-10 Thread Stephen
But it works on other websites I've made, esspecially on my local server. Thanks, Stephen Craton http://www.melchior.us - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]>; "'PHP List'" <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 8:16

[PHP] cURL & PHP compile error

2003-03-10 Thread Bryan Brannigan
Trying to setup PHP with cURL support... I run this configure command: ./configure --with-mysql --with-apxs --with-openssl=/usr/local/ssl --with-curl --with-mcrypt --enable-sockets and receive this error: /usr/local/lib/libcurl.so: undefined reference to `UI_OpenSSL' Help!! -- PHP General

RE: [PHP] quick question

2003-03-10 Thread John W. Holmes
> >>I'm sending credit card info to a 3rd party credit card processing site. > >> I would like to keep the inputted values and, after the approval, have > >>them appear in the value part of the form so that they don't have to > >>re-input the same values they had just put in for the credit card. h

Re: [PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
> > I have a script in which there is a call to open a remote file: > > > > fopen ("http://www.somewhere.com/file.php?foo=bar";, "r"); > > > > Sometimes if www.somewhere.com is down, it will stuck at the function > > for very long a time. I hope to setup a timeout limit for this > function > > (j

RE: [PHP] arrray

2003-03-10 Thread John W. Holmes
> you can 'serialize' it and pass it as POST or GET > variable too, then deserialize it again. > > Check out these PHP functions : > > serialize() and deserialize() unserialize(). ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://ww

Re: [PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
> > I have a script in which there is a call to open a remote file: > > > > fopen ("http://www.somewhere.com/file.php?foo=bar";, "r"); > > > > Sometimes if www.somewhere.com is down, it will stuck at the function > > for very long a time. I hope to setup a timeout limit for this > function > > (j

RE: [PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread John W. Holmes
> I have a script in which there is a call to open a remote file: > > fopen ("http://www.somewhere.com/file.php?foo=bar";, "r"); > > Sometimes if www.somewhere.com is down, it will stuck at the function > for very long a time. I hope to setup a timeout limit for this function > (just > this), so

RE: [PHP] Enabling HTTP_REFERER

2003-03-10 Thread John W. Holmes
> For some reason my webhost doesn't allow the HTTP_REFERER variable. I call > it up and it's empty, so I did a print_r($HTTP_SERVER_VARS); and there > wasn't a variable called HTTP_REFERER. I've heard that some servers > disable it. Since I have a dedicated server, how can I enable this > variable

Re: [PHP] Enabling HTTP_REFERER

2003-03-10 Thread James
It will be something like Norton Firewalling - Enabled, norton will disable the referer val. jim. "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've tried both. I think the server has 4.2.3. > > Thanks, > Stephen Craton > http://www.melchior.us > > > - Original Mess

[PHP] How to set a timeout limit for a call of a connection?

2003-03-10 Thread Alex Shi
Hi, I have a script in which there is a call to open a remote file: fopen ("http://www.somewhere.com/file.php?foo=bar";, "r"); Sometimes if www.somewhere.com is down, it will stuck at the function for very long a time. I hope to setup a timeout limit for this function (just this), so that it won

Re: [PHP] Enabling HTTP_REFERER

2003-03-10 Thread Stephen
I've tried both. I think the server has 4.2.3. Thanks, Stephen Craton http://www.melchior.us - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 8:02 PM Subject: Re: [PHP] Enabling HTTP_

[PHP] Removing a Blank line from a text file

2003-03-10 Thread Richard Kurth
This function removes a line from a text file list. It has one problem if it removes a line from the beginning or middle of the text file list it leaves a blank line. How can I make it remove the blank line also? function remove_email($email){ global $members,$datadir,$email; $recordsarray = file

Re: [PHP] Enabling HTTP_REFERER

2003-03-10 Thread Sebastian
What php version? For older php version: $HTTP_SERVER_VARS['HTTP_REFERER']; Newer: $_SERVER['HTTP_REFERER']; Or you can usually do: echo $HTTP_REFERER; I don't think there is even a way of disabling it in the php.ini warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com -

[PHP] Enabling HTTP_REFERER

2003-03-10 Thread Stephen
For some reason my webhost doesn't allow the HTTP_REFERER variable. I call it up and it's empty, so I did a print_r($HTTP_SERVER_VARS); and there wasn't a variable called HTTP_REFERER. I've heard that some servers disable it. Since I have a dedicated server, how can I enable this variable again?

RE: [PHP] PHP Online Store

2003-03-10 Thread Michael Roger C. Bianan
Hi Pag, In my experience, I usually have two database systems. I have the Live DB which is currently the one used by the website which is the one on the hosting server, and I also have a local DB on our local server just here. What I do is I create the back-end applications for the administra

RE: [PHP] Automatically Save Image?

2003-03-10 Thread Michael Roger C. Bianan
Hi, You can read the file via fopen() and fread(), and then pass the resulting data to the client browser... Thanks, Miches;) -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 2:44 PM To: Doug Coning; [EMAIL PROTECTED] Subject: RE: [PHP] Automa

[PHP] .htaccess Help

2003-03-10 Thread Pushpinder Singh Garcha
Hello All I need to allow users to be able to access ONLY non-html files in a Secret Dir. Can anyone suggest a .htaccess method to do just that. I have a .htaccess script which will prevent anybody from viewing the contents of a Dir via http, but this time , I need to allow users to view the P

[PHP] PHP Online Store

2003-03-10 Thread Pag
Hi, I have to write a PHP/MySQL online store with product catalogs, prices, descriptions, and ordering (no payment) etc, but i have a big doubt when it comes to updating. How is it usually done? I mean, i never did a project like this, with a big amount of products to update. What

RE: [PHP] Automatically Save Image?

2003-03-10 Thread Boaz Yahav
How to let a user download a picture by clicking on it instead of needing to right click and Save-As. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1562 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message

RE: [PHP] Help Needed

2003-03-10 Thread Michael Roger C. Bianan
I agree with the security on files especially on case of downloadable files. I suggest you use absolute paths for retrieving your files. say ( http://www.a.com/pathofyourfile/ or simply the platform /home/user/htdocs/files/pathtoyourfile/) Also, it's neat to have sorta config file on your scri

Re: [PHP] auto_increment $value

2003-03-10 Thread John Taylor-Johnston
Sounds better. Thanks Jimmy Brake wrote: > hmm > > > i could be misunderstanding but > > select max(your_autoincrment_column) from your_table -- John Taylor-Johnston - "If it's not open-source, it's Murphy's Law." ' '

Re: [PHP] Help Needed

2003-03-10 Thread Pushpinder Singh Garcha
Thanks for the prompt reply Michael I am trying to protect files on the site, my script checks for a valid session ID and fopens() a File. This file is located in a different Dir from the php script. When the file is a simple html file , I can easily fopen() the file (Even though it contains g

Re: [PHP] header function

2003-03-10 Thread Barry Gould
AHA! Thank you! Barry At 01:38 PM 3/10/2003, you wrote: Use INCLUDE(), not virtual(). virtual() isn't supposed to be used with PHP files. ---John Holmes... - Original Message - From: "Barry Gould" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 4:26 PM Subject:

RE: [PHP] arrray

2003-03-10 Thread Michael Roger C. Bianan
you can 'serialize' it and pass it as POST or GET variable too, then deserialize it again. Check out these PHP functions : serialize() and deserialize() Hope this helps, Miches:) -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 9:39 AM To:

RE: [PHP] auto_increment $value

2003-03-10 Thread Michael Roger C. Bianan
I think this is facing a bigger issue when it comes to Concurrency. When two or more apps in a given time pops the auto_increment or mysql_insert_id (they will get THE SAME ID assuming no other transaction issued an INSERT sql to the table while retrieving the ID). Now, I don't know if this has

RE: [PHP] Help Needed

2003-03-10 Thread Michael Roger C. Bianan
Garcha, Kindly check your file paths. When you export it, it may not point to what really is the real path online. May I ask what are you trying to achieve? -Original Message- From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:45 PM To: [EMAIL PROTEC

[PHP] Help Needed

2003-03-10 Thread Pushpinder Singh Garcha
Hey All My Php App is trying to fopen() and fread() a File that is located in the Web Server. This works if the file is a simple html file. However the complicated part is that the file is not displayed correctly i.e. it has missing gifs if, it was created using Fireworks and then subsequentl

Re: [PHP] auto_increment $value

2003-03-10 Thread John Taylor-Johnston
Necessary, or at least cleaner, if there are less than 5 records in your database. > Why don't you just use "select * from table order by id DESC limit 0,5"? > > I don't see any necessary to get the auto_increment value. > > Anyone know how to get the auto_increment $value out of a mysql table.

Re: [PHP] header function

2003-03-10 Thread CPT John W. Holmes
Use INCLUDE(), not virtual(). virtual() isn't supposed to be used with PHP files. ---John Holmes... - Original Message - From: "Barry Gould" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 4:26 PM Subject: Re: [PHP] header function > I'm starting to think this i

Re: [PHP] header function

2003-03-10 Thread Barry Gould
I'm starting to think this is a BUG. Can anyone else test this and confirm or contradict? Thanks, Barry At 03:35 PM 3/7/2003, you wrote: I am having a hard time with the header("Location:") function inside an include file with PHP 4.3.1 (Linux, running as a module w/ Apache 1.3.27). At the VERY

[PHP] Redirect...

2003-03-10 Thread Doug Coning
Hi all, I'm running the below code to download a text file. After the save as window comes up, I can correctly save the document. However, the browser goes to a "Action Cancelled" error page. Here's my code: Am I suppose to redirect the page after it saves the file, and if so how would I do

Re: [PHP] header function

2003-03-10 Thread Barry Gould
I have session auto start on. Plus, like I said, it works fine if it's at the top of the page, not in the include file. Thanks, Barry At 05:19 PM 3/7/2003, Jim Lucas wrote: if you put this at the very to of the page, I am guessing then that you haven't ran session_start() ?? if you are trying t

Re: [PHP] ob_start -- output buffer problem

2003-03-10 Thread Ernest E Vogelsinger
At 11:22 09.03.2003, Alex Lance said: [snip] >here's my example: > > >$x = new test(); > >echo "hey"; > >// IF next line is uncommented so it manually flushes >// then the finish method WILL get called. But I need >// get around calling anything at the *end*

Re: [PHP] ob_start -- output buffer problem

2003-03-10 Thread Jim Lucas
because the flush happens after everything is done, including the fputs thingy. you have to call ob_get_contents() or something like that. I always to this ob_start(); do something $data = ob_get_contents(); ob_end_clean(); then I work with the $data later. but if you don't use the ob_get_co

[PHP] php.ini - PHP version 4.3.1 - CGI Error....

2003-03-10 Thread Scott Fletcher
I'm a little baffled and I'm wondering if anyone here can help me out on this one... I just upgraded the PHP from 4.0.6 to 4.3.1, yes I know the upgrade is long overdue Anyway, I just upgraded and update the php scripts to work with newer versions but here is on part that I have not figured o

Re: [PHP] html mail

2003-03-10 Thread Frank Keessen
Hi, I found this one and it's quite handy; http://phpmailer.sourceforge.net/ Regards, Frank - Original Message - From: "Ian A. Gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 2:47 PM Subject: [PHP] html mail > Hi, > I am quite new to php and I am trying

RE: [PHP] Re: sessions terminating randomly please help

2003-03-10 Thread Dennis Cole
Assuming that php is configued to rewrite the url tags, try turning off cokkies in the browser and let the Session if carry over. This might help you debugg it. -Original Message- From: David Chamberlin [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 3:41 PM To: [EMAIL PROTECTED]; F

RE: [PHP] sessions terminating randomly please help

2003-03-10 Thread Dennis Cole
Make sure that the url is always the same. For example if a user is at a page http://mysite.com/phpscript.php and you link to http://www.mysite.com/phpscript.php (notice the www) the session might not follow because the url is different. -Original Message- From: freaky deaky [mailto:[EMAIL

[PHP] Re: sessions terminating randomly please help

2003-03-10 Thread David Chamberlin
It's possible you're being afflicted with the same problem I am. See the message just one or two above this about "Sessions problem". What I found in my debugging is that it had to do with how I was mix-and-matching the way I specified links. Short version of the problem is that http://mysite

Re: [PHP] Question

2003-03-10 Thread Hugh Danaher
something like: print ""; while ( statement ) { $i++; if ($i==1) print ""; print ""; your image code; print ""; if ($i==4) { print ""; unset($i); } } if ($i==1) print ""; if ($i==2) print ""; if ($i==3) print ""; print ""; might work

[PHP] Re: Sessions problem

2003-03-10 Thread Dan Phiffer
I believe there's a domain limitation inherent to the way cookies work (assuming a cookies-based sessions setup), but there may be some way of circumventing that (can't some ad banner companies track visitors from site to site?). Seems like a multi-file search and replace should do the trick. If yo

RE: [PHP] HTTP_REFERER security implications?

2003-03-10 Thread Don Read
On 10-Mar-2003 Tom Woody wrote: > I am working on a simple authentication script, where the user submits a > login and password, the credentials are checked and the user is > redirected to another script. The new script checks the HTTP_REFERER > and if its the original script it continues, otherw

[PHP] sessions terminating randomly please help

2003-03-10 Thread freaky deaky
hi i am experiencing a major problem with sessions expiring randomly in some of my apps. i will log in and start clicking around and then i will eventually arrive at a page that tells me that i'm not logged in anymore. this happens apparently randomly. i have seen it on ie6, ie for mac, netsca

Re: [PHP] Multi-select inputs and naming

2003-03-10 Thread CPT John W. Holmes
> To others on the list: how do perl, jsp, asp, etc. > handle the passing of multiple selects? What is their equivalent of php's > "var[]" syntax for handling form values? >From what I've picked up, if there are multiple variables in the query string / post data with the same name, the scripting

RE: [PHP] Re: Question

2003-03-10 Thread Clint Tredway
thanks, I knew it was simple.. just can't think today! -Original Message- From: Dan Phiffer [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 2:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Question Perhaps something like: \n"; } ?> HTH, -Dan "Clint Tredway" <[EMAIL PROTECTED]>

[PHP] Re: Question

2003-03-10 Thread Dan Phiffer
Perhaps something like: \n"; } ?> HTH, -Dan "Clint Tredway" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a display of images that every fourth image I want to start a new > column. In ColdFusion I would use the MOD operator like this: > > if query.recordcount MOD 4 eq 0

Re: [PHP] Question

2003-03-10 Thread Mark Heintz PHP Mailing Lists
if($recordcount % 4 == 0) { echo ''; } mh. On Mon, 10 Mar 2003, Clint Tredway wrote: > I have a display of images that every fourth image I want to start a new > column. In ColdFusion I would use the MOD operator like this: > > if query.recordcount MOD 4 eq 0 > > > /if > > I am

Re: [PHP] Multi-select inputs and naming

2003-03-10 Thread Mark Heintz PHP Mailing Lists
On Mon, 10 Mar 2003, Dan Phiffer wrote: > I guess this question was coming from a "couldn't they have designed in a > cleaner way?" perspective. Don't get me wrong, I think the way PHP does an > outstanding job of handling these particular kinds of form submissions, I > just figured there might be

[PHP] Sessions problem

2003-03-10 Thread David Chamberlin
Hey all, Some of my users have reported a problem with my site and it's taken a while to debug it, but I think I've finally tracked it down. If they go to the site as: http://www.mysite.org/ Then it works But if they go as: http://mysite.org/ It doesn't. I believe it has to do with my use

[PHP] Question

2003-03-10 Thread Clint Tredway
I have a display of images that every fourth image I want to start a new column. In ColdFusion I would use the MOD operator like this: if query.recordcount MOD 4 eq 0 /if I am just having a brain lapse today, can someone help me do this same functionality in PHP? Thanks! -- P

Re: [PHP] A question of time...

2003-03-10 Thread Mark Heintz PHP Mailing Lists
On Mon, 10 Mar 2003, Robert Cummings wrote: > All in all I spent 20 hours total for the client at a rate of $40 USD/hr > which I believe is on the low end of freelance. I myself have 3 years > experience devloping PHP web applications. So the question I ask is whther > this time frame is reaso

Re: [PHP] A question of time...

2003-03-10 Thread CPT John W. Holmes
[snip] > Thanks, I did estimate 20 to 30 hours for them after I had set up the mirror > server and before the actual work began. At the same time I asked if they wanted > me to stop to which they replied that I should continue. Offer them some cheese with their whine and tell them to pay up! ---J

Re: [PHP] Multi-select inputs and naming

2003-03-10 Thread Dan Phiffer
> Unless you're ashamed to be running php, or don't intend to be spending as > much time on security as you should, why would this be an issue? If your > app is well-written, the knowledge that it's implemented with php > shouldn't benefit a potential attacker. You know what they say about > secu

Re: [PHP] A question of time...

2003-03-10 Thread Robert Cummings
"CPT John W. Holmes" wrote: > > [snip] > > If it turns out that I am incompetent, then I will happily send them a > > bill for zero hours, otherwise I would like to take comfort that I am not > > ripping them off. > > Just my humble opinion, of course, but I think you did the job quickly > co

[PHP] Re: HTTP_REFERER security implications?

2003-03-10 Thread Joseph Szobody
Tom, This will completely break in AOL. An AOL user's referer changes all the time. Joseph "Tom Woody" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am working on a simple authentication script, where the user submits a > login and password, the credentials are checked and the

Re: [PHP] A question of time...

2003-03-10 Thread CPT John W. Holmes
[snip] > If it turns out that I am incompetent, then I will happily send them a > bill for zero hours, otherwise I would like to take comfort that I am not > ripping them off. Just my humble opinion, of course, but I think you did the job quickly considering what you were given to start with.

Re: [PHP] quick question

2003-03-10 Thread Doug Parker
Right - but the problem is, the form is submitting to another site, so i don't have a way to store the variables. I could put them in session variables, but I would have to create another script and then forward the form submission to the outside side. This isn't working because the outside

Re: [PHP] PHP static module on Apache 2.0 HPUX 11

2003-03-10 Thread Harring Figueiredo
Rasmus, Thanks for the reply. Then, what am I doing wrong on the DSO installation ? Any docs I could get my hands on ? Thanks again. Harring. --- Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > > (All the help on php.net about HP has does not address this issue. Also, > > there is not doc

[PHP] A question of time...

2003-03-10 Thread Robert Cummings
Hi all, I recently had a freelancing experience that has left me somewhat sour and questioning myself. Unfortunately I don't feel I can fairly evaluate myself and so I owuld like to put the question to my peers who populate the PHP forum as to whether I have performed competently. Last we

Re: [PHP] image question

2003-03-10 Thread Hugh Danaher
Tony, You might want to try the online php manual, I hear it's very good. You should be able to do all of the tasks you desire. Look for "image" in your search. Hope this helps. Hugh - Original Message - From: "Anthony Ritter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March

Re: [PHP] Is the problem a server setting?

2003-03-10 Thread Chad Henderson
Thanks for the reply Mark, allow_url_fopen is set to on i did not see anything about --disable-url-fopen-wrapper Here is the info file: http://www.afgaonline.com/phpinfo.php "Mark Heintz Php Mailing Lists" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] It sounds like either allow

Re: [PHP] PHP static module on Apache 2.0 HPUX 11

2003-03-10 Thread Rasmus Lerdorf
> (All the help on php.net about HP has does not address this issue. Also, > there is not docs on how to install PHP/APACHE2.0 as static.) That's because we do not support a static build for Apache2. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Is the problem a server setting?

2003-03-10 Thread Chad Henderson
I did not see the "Mark Heintz Php Mailing Lists" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] It sounds like either allow_url_fopen is set to false or php was compiled with --disable-url-fopen-wrapper. Either way, checking the output of phpinfo() should give you your answer. mh.

Re: [PHP] Is the problem a server setting?

2003-03-10 Thread Mark Heintz PHP Mailing Lists
It sounds like either allow_url_fopen is set to false or php was compiled with --disable-url-fopen-wrapper. Either way, checking the output of phpinfo() should give you your answer. mh. On Mon, 10 Mar 2003, Chad Henderson wrote: > Thanks for the reply. If they did upgrade PHP, which I am fairly

Re: [PHP] delete from array

2003-03-10 Thread CPT John W. Holmes
> Not sure if there is a function that I missed when I did a search on this > at php.net, but here is the situation: > > I have an array that looks something like this: > 12:00:00 > 12:05:00 > 12:10:00 > 12:15:00 > > Bascially, it just has all times in it for a day in 5 minute > increments. This i

Re: [PHP] Is the problem a server setting?

2003-03-10 Thread Chad Henderson
Thanks for the reply. If they did upgrade PHP, which I am fairly sure they did, are there changes to the new PHP that would prevent the script from working? Or is it a matter of them not setting up the upgrade the same as the previous installation? "Ray Hunter" <[EMAIL PROTECTED]> wrote in mess

  1   2   >