[PHP] Control over your Session

2003-03-10 Thread Gerard Samuel
Got a problem thats baffling me. I have a form that includes a file that starts a session. Creating sessions are no problem, but deleting the session variable is not working as its supposed to. Sudo code - ?php include('some_file.php'); // This file starts the session via session_start();

Re: [PHP] Control over your Session

2003-03-10 Thread Leif K-Brooks
If you have register_globals on, you'll need to session_unregister it. Gerard Samuel wrote: Got a problem thats baffling me. I have a form that includes a file that starts a session. Creating sessions are no problem, but deleting the session variable is not working as its supposed to. Sudo code

Re: [PHP] Control over your Session

2003-03-10 Thread Gerard Samuel
Thanks for saving my sanity. The best answer is the simplest one. Im testing my code on a domain where register_globals were on. Never would have thought of checking that. Thanks once again, now I can go to sleep... Leif K-Brooks wrote: If you have register_globals on, you'll need to

RE: [PHP] Images out side the wwwroot

2003-03-10 Thread Don Read
On 10-Mar-2003 Philip J. Newman wrote: If i was to use PHP to call all my images from out side the wwwroot, dose anyone have a method that they use? show.php - ?php $rcsid='$Id: show.php,v 1.1 2002/02/14 21:20:26 dread Exp dread $'; // $Log: show.php,v 2002/02/14 21:20:26 dread $

Re: [PHP] Displaying a file

2003-03-10 Thread Ernest E Vogelsinger
At 03:17 10.03.2003, Todd Cary said: [snip] I want to display a file under program control in the same manner as one would with using an a tag e.g. Click a href=files/raceschedule.pdf Name=Race Schedule Target=_blankhere/a to open the Race Schedule In

[PHP] sessions

2003-03-10 Thread Shaun van den Berg
Hi, Tell me , is sessions safe - why is it really used ? Is it important te delete the session variables after u use it ? When a user logs on to my site , he enters the password , i then encrypt the password and verify it with the one in the database ! Will someone be able to hijack the session

[PHP] while loop with mysql

2003-03-10 Thread Richard Kurth
Can somebody look at this and tell me way the first while loop will only loop through the database once when there is more than one record that should be processed. while($members = @mysql_fetch_object($result)) { $logged_email=$members-email; $logged_title=$members-title;

Re: [PHP] while loop with mysql

2003-03-10 Thread Tom Rogers
Hi, Monday, March 10, 2003, 7:20:37 PM, you wrote: RK Can somebody look at this and tell me way the first while loop will RK only loop through the database once when there is more than one record RK that should be processed. RK while($members = @mysql_fetch_object($result)) { RK

Re[2]: [PHP] while loop with mysql

2003-03-10 Thread Richard Kurth
Hello Tom, I have been looking at this for an hour and thought it was something like that but I could not see it. I guess it is time to go to bed. Thanks Monday, March 10, 2003, 1:47:27 AM, you wrote: TR Hi, TR Monday, March 10, 2003, 7:20:37 PM, you wrote: RK Can somebody look at this and

[PHP] Problem with apache php and SSL

2003-03-10 Thread Keil
Hi, I'm a newbie with php and I have a big problem with the use of PHP 4.1.1 with apache/1.3.26, mod_ssl/2.8.10 and OpenSSL/0.9.6d. (Tested on Windows and Linux) For a demonstration I have to get the user certificate of an SSL connection to identify the user. I try to get information's about the

Re: [PHP] dynamic/multidimensional arrays in classes

2003-03-10 Thread James Holden
$this-$arr[] should be $this-arr[] You are using a variable defined within the class - since it is a class variable you can reference it as you would anything else within the class, using '$this-' Patrick Teague wrote: I'm having problems figuring this out. This first way gives me a

Re: [PHP] timestamp to english

2003-03-10 Thread James Holden
In mysql use DATE_FORMAT(FROM_UNIXTIME(time),%H ... etc) In PHP use echo date(, time()); Read the manuals at mysql.com and php.net. jim Lord Loh. wrote: How do I convert the unix time stamp (the one I get by the time()) to a readable English language time I am getting data from mySQL by

Re: [PHP] sessions

2003-03-10 Thread Justin French
Nothing is safe unless it goes over SSL, and even then, NOTHING is 100% secure :) The point is that you shouldn't have the plain text password as a session var... Your login form (and the script that varifies the login) should be secure (see note), and should establish a session var like

Re: [PHP] Forcing page refresh with http headers?

2003-03-10 Thread adrian [EMAIL PROTECTED]
a trick i use is with the time() function e.g. $var = time(); then header('location: .page.php?var=' .$var); This forces the browser to retrive the page again from the server. might be of some use. adrian. - Original Message - From: Daniel Joyce [EMAIL PROTECTED] To: [EMAIL

[PHP] eval error

2003-03-10 Thread Alawi
what problem I want to use eval in my script but its generate this error : Parse error: parse error, unexpected T_LNUMBER in C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line 4 Parse error: parse error, unexpected T_LNUMBER in

[PHP] Calling Multi-Row Result PHP Variable in Flash

2003-03-10 Thread Rahul.Brenda
Hi, I used a script to generate some result from a database, which i want to display in flash. In Flash, i created the Dynamic Text and declared newsbits as Vars, and set it to Multiline. I also loaded the PHP variables with the following command in the ActionScript of the Frame :

[PHP] Re: google-apis

2003-03-10 Thread Peter Clarke
Jens Lehmann wrote: James wrote: LWP is a perl thing. Curl is probably the best thing to use. Have you tried using googles php api which they provide free? http://www.google.com/apis/ I had a look at the API, but I'm not sure if it's appropriate and easy to use with PHP. It's still beta and

Re: [PHP] eval error

2003-03-10 Thread Marek Kilimajer
try echo \$all_types_list .= \$all_types_list\;; there should be a syntax error Alawi wrote: what problem I want to use eval in my script but its generate this error : Parse error: parse error, unexpected T_LNUMBER in C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line

Re: [PHP] MySQL or PHP question?

2003-03-10 Thread Marek Kilimajer
Should not it be: $SQL = SELECT * FROM table ORDER BY id asc LIMIT .($autoindex -5). ,5;; John Taylor-Johnston wrote: I don't know whether this is a MySQL or PHP quesiton. $SQL = SELECT * FROM table ORDER BY id asc LIMIT $autoindex -5 ,5;; I would like to get the autoindex value of my table and

[PHP] array question

2003-03-10 Thread Diana Castillo
If I sort an array, and now the keys are not in numerical order, how can I get the key of the first element? If I do array_shift I get the first element but I want that key. Thanks, Diana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eval error

2003-03-10 Thread Chris Hayes
At 12:54 10-3-03, you wrote: what problem I want to use eval in my script but its generate this error : Parse error: parse error, unexpected T_LNUMBER in C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line 4 eval (\$all_types_list .= \$all_types_list\;); For those

[PHP] session

2003-03-10 Thread Shaun van den Berg
When does the carbadge collector start ? Thanks Shaun -- Novtel Consulting Tel: +27 21 9822373 Fax: +27 21 9815846 Please visit our website: www.novtel.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session

2003-03-10 Thread Marek Kilimajer
When you load a php page there is a session.gc_probability % chance it will start. session.gc_probability is set in php.ini Shaun van den Berg wrote: When does the carbadge collector start ? Thanks Shaun -- Novtel Consulting Tel: +27 21 9822373 Fax: +27 21 9815846 Please visit our website:

Re: [PHP] session

2003-03-10 Thread Petre Agenbag
Garbage collection is a random process. You can however set the probability of it starting on every session call in the php.ini file, along with the elapsed time of a session variable, after which it is considered garbage. On my system, my probability is set to 1, meaning there is a 1% chance of

[PHP] html mail

2003-03-10 Thread Ian A. Gray
Hi, 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 honest I haven't found one that is particularly

[PHP] MySQL and PHP arrays

2003-03-10 Thread {R}ichard Ashton
Is there a generally recommended way of storing an array created by PHP in a MySQL database field ? What type of field should it be, and how do you get the whole array back in one go without reconstructing it row by row, if that is possible? {R} -- PHP General Mailing List

Re: [PHP] MySQL and PHP arrays

2003-03-10 Thread Jason Wong
On Monday 10 March 2003 22:30, {R}ichard Ashton wrote: Is there a generally recommended way of storing an array created by PHP in a MySQL database field ? serialize() and unserialize(). What type of field should it be, and how do you get the whole array back in one go without reconstructing

[PHP] Connection Report

2003-03-10 Thread guslist
Hello All, I have some data in a MySQL table and I need to format it better. I have some thousands of data from my users connections like this: ++-+-++--+---++ | id | unixtime| ip

RE: [PHP] MySQL and PHP arrays

2003-03-10 Thread Messay W Asfaw
Serializing it would be the best way: seralize($myArray) then you can get the array back using unseralize($serializedarray) -Original Message- From: {R}ichard Ashton [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 14:31 To: [EMAIL PROTECTED] Subject: [PHP] MySQL and PHP arrays Is there

Re: [PHP] html mail

2003-03-10 Thread Mark Heintz PHP Mailing Lists
The PEAR Mail_mime class tends to take the headache out of this sort of thing. See the example at the bottom of the manual page: http://pear.php.net/manual/en/core.mail.mime.php mh. On Mon, 10 Mar 2003, [iso-8859-1] Ian A. Gray wrote: Hi, I am quite new to php and I am trying to find a way

[PHP] html mail

2003-03-10 Thread Ian A. Gray
The pear class looks great, unfortunately my server doesn't have pear yet. :-( I didn't realise it was an either/or situation for sending html or text only e-mails. I thought you could send one e-mail which has the content in text-only and html-format so that the person's e-mail programme can

Re: [PHP] html mail

2003-03-10 Thread Jason Wong
On Monday 10 March 2003 22:46, Ian A. Gray wrote: The pear class looks great, unfortunately my server doesn't have pear yet. :-( I didn't realise it was an either/or situation for sending html or text only e-mails. I thought you could send one e-mail which has the content in text-only and

RE: [PHP] Cleaning up HTML table structure

2003-03-10 Thread Beau Hartshorne
Jens, I would suggest that you try writing a script that keeps track of how many tags have been opened (look for ), versus how many tags have been closed ([^]*/) on a line-by-line basis. Using that number, you should be able to indent the code properly. Let us know what you've got so far. Beau

Re: [PHP] html mail

2003-03-10 Thread Dickon Newman
There is a technique to make a large comment at the top of your html based email, which would be your content readable by the users who have text-only. Granted all the html code would be at the bottom. I saw it done in a newsletter or two, very cleaver and effective! Dickon... - Original

Re: [PHP] array question

2003-03-10 Thread Jason Wong
On Monday 10 March 2003 21:13, Diana Castillo wrote: If I sort an array, and now the keys are not in numerical order, how can I get the key of the first element? If I do array_shift I get the first element but I want that key. Not very elegant -- there must be a better way? foreach ($doo as

Re: [PHP] array question

2003-03-10 Thread Ernest E Vogelsinger
At 16:35 10.03.2003, Jason Wong said: [snip] Not very elegant -- there must be a better way? foreach ($doo as $key = $value) { print Key:$key Value:$value; break; } [snip] Possibly using array_keys()? $keys =

[PHP] standard html, hidden table's row and controls

2003-03-10 Thread enediel
good day to all readers. It's specifically a javascript question. I've a form containing a hidden table, and inside of this last, controls that contain useful information invisible to the user, for example, hidden select tags that contains set of items, only subsets of it are visible to the user.

Re: [PHP] Cleaning up HTML table structure

2003-03-10 Thread Jens Lehmann
Beau Hartshorne wrote: Jens, I would suggest that you try writing a script that keeps track of how many tags have been opened (look for ), versus how many tags have been closed ([^]*/) on a line-by-line basis. Using that number, you should be able to indent the code properly. I need to count how

RE: [PHP] array question

2003-03-10 Thread Ford, Mike [LSS]
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 15:35 To: [EMAIL PROTECTED] Subject: Re: [PHP] array question On Monday 10 March 2003 21:13, Diana Castillo wrote: If I sort an array, and now the keys are not in numerical order, how can I

Re: [PHP] Cleaning up HTML table structure

2003-03-10 Thread Chris Hayes
PS: If you want a tool which really cleans up HTML you should use HTMLTidy of course. :) http://tidy.sourceforge.net/#source -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL and PHP arrays

2003-03-10 Thread {R}ichard Ashton
On Mon, 10 Mar 2003 22:34:44 +0800, Jason Wong wrote: On Monday 10 March 2003 22:30, {R}ichard Ashton wrote: Is there a generally recommended way of storing an array created by PHP in a MySQL database field ? serialize() and unserialize(). What type of field should it be, and how do you get

[PHP] New mailing list

2003-03-10 Thread Ron Clark
http://betterphp.org The Better PHP mailing list is available for anyone who wants to learn how to write secure, efficient web applications. We focus on the LAMP (Linux-Apache-MySQL-PHP) platform but welcome other questions. This list is intended for people who use PHP, and who want feedback on

[PHP] Persistent values between executions

2003-03-10 Thread Mike Mannakee
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 to know if there is a way to have these sets of

[PHP] active x like

2003-03-10 Thread Diana Castillo
I am using php to send an xml request, but the people on the side that receives the xml says they can only receive from activex generated xml (with code similar to below) Does anyone know how to generate the xml from php so it comes out exactly like it does from this active x object? var s; var

Re: [PHP] MySQL and PHP arrays

2003-03-10 Thread Mike Mannakee
You get at the data through $array = mysql_result($result,0,0); Mike {R}Ichard Ashton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 10 Mar 2003 22:34:44 +0800, Jason Wong wrote: On Monday 10 March 2003 22:30, {R}ichard Ashton wrote: Is there a generally recommended way

RE: [PHP] Persistent values between executions

2003-03-10 Thread Rich Gray
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 to know if there is a way to have these sets

[PHP] quick question

2003-03-10 Thread Doug Parker
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. how can i do

RE: [PHP] MySQL and PHP arrays

2003-03-10 Thread Van Andel, Robbert
mysql_fetch_array($result) works too. It fetches the data from the current row and is used in conjunction with a while loop: while($array=mysql_fetch_array($result)) { //stuff to do with the current array } Robbert van Andel -Original Message- From: Mike Mannakee

[PHP] HTTP_REFERER security implications?

2003-03-10 Thread Tom Woody
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, otherwise it stops with a message about being

Re: [PHP] timestamp to english

2003-03-10 Thread Joel Colombo
jim there is no need for the second parameter in Date() for PHP, unless u want something other then current time. Date ('m-d-y') is the same as Date ('m-d-y', Time()) Joel James Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In mysql use DATE_FORMAT(FROM_UNIXTIME(time),%H

Re: [PHP] quick question

2003-03-10 Thread Marco Tabini
You should look at E-xact (http://www.e-xact.com). They have a solution they call tagged transactions that actually replaces the credit card numbers with tags that are only meaningful in the context of your merchant account. That way, you can let your customers make repeat purchases without

[PHP] Re: standard html, hidden table's row and controls

2003-03-10 Thread Joel Colombo
This is a PHP group please post JS questions to a JS group unless u have PHP code in inside requiring help !!! IE considers it non-active when style.display = 'none' you can not reference it via the 'javascipt' controls. it must be made visible to work in IE... i think u should look at another

[PHP] Opening a file in a new window

2003-03-10 Thread Todd Cary
Thanks to your help, this now is working: ? $session_id = $HTTP_POST_VARS[session_id]; $filename= $HTTP_POST_VARS[filename]; /* Validate session_id here */ header(Content-type: text/html); header(Content-Disposition: filename= . $filename); $fp = fopen($filename, r); if($fp)

RE: [PHP] Opening a file in a new window

2003-03-10 Thread George Pitcher
Todd, if that script is the result of a link being follwed, add target=blank to the end. George -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 5:28 pm To: [EMAIL PROTECTED] Subject: [PHP] Opening a file in a new window Thanks to your help,

[PHP] arrray

2003-03-10 Thread Diana Castillo
Is the only way to keep an array alive between one class and another to store it as a session array? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] Language Auto Detection / www.php.net

2003-03-10 Thread Mincu Alexandru
I don't like the Language Auto Detection system either but mabe others do... so I don't think it should be removed .. On Mon, 2003-03-10 at 19:41, Wez Furlong wrote: Perhaps because he prefers to read most sites in his native language? --Wez. On Mon, 10 Mar 2003, Mincu Alexandru wrote:

Re: [PHP] Persistent values between executions

2003-03-10 Thread Mike Mannakee
Thanks, but what I need are static values accessible in the script, without having to fetch them from the database every single page view. They do occassionally change, but in the main they're fairly static. Mike Rich Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have

[PHP] form submission and storing variables

2003-03-10 Thread Doug Parker
I'm sending information to be processed by a third party site. I need to store the inputted information in my site, via session or whatever, at some point. However, the 3rd part site only accepts the information via a POST form submission, so I can't record the variables, then redirect them

[PHP] image question

2003-03-10 Thread Anthony Ritter
I'm looking for a php tutorial or script which can open and read an existing .jpg or .png from another URL. Next, the script then modifies that image by - say - cropping off the bottom by 20px or resizing it by 50%. Lastly, could this modified file then be renamed on ones server? Many thanks,

Re: [PHP] HTTP_REFERER security implications?

2003-03-10 Thread Kevin Stone
- Original Message - From: Tom Woody [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 10, 2003 9:53 AM Subject: [PHP] HTTP_REFERER security implications? I am working on a simple authentication script, where the user submits a login and password, the credentials are checked

[PHP] delete from array

2003-03-10 Thread Steve Buehler
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 is more of a

[PHP] Multi-select inputs and naming

2003-03-10 Thread Dan Phiffer
Hello, Am I correct in my understanding that for a multi-select input, PHP requires that the name attribute end with square brackets (i.e. select name=my_select[] multiple) in order for the submission be handled properly? I know this is somewhat nit-picky, but this seems to unnecessarily expose

RE: [PHP] delete from array

2003-03-10 Thread Johnson, Kirk
How do I delete a specific time out of the array or how do I delete a range of times out of the array? I would like to be able to delete 12:05:00 but if I want, delete a range like 12:05:00 to 12:10:00. Here's some code. Kirk function remove_array_values($valuesToRemove, $array) { if

[PHP] Is the problem a server setting?

2003-03-10 Thread Chad Henderson
I have a number of websites that are on a hosting company, that I have been using for a year or so. Suddenly, this morning, all of the websites began to have PHP script errors on scripts that have run without fail for a long period of time. I think the server setup must have been altered this

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

2003-03-10 Thread Ray Hunter
You should contact the web hosting system administrator and verify that they upgraded php. From what i can tell it seems that they did upgrade php. -- Ray On Mon, 2003-03-10 at 10:58, Chad Henderson wrote: I have a number of websites that are on a hosting company, that I have been using for a

Re: [PHP] form submission and storing variables

2003-03-10 Thread Mark Heintz PHP Mailing Lists
You can initiate a POST from within your script using cURL, assuming your php installation has cURL support enabled. Check http://www.php.net/curl for details. mh. On Mon, 10 Mar 2003, Doug Parker wrote: I'm sending information to be processed by a third party site. I need to store the

Fw: [PHP] Multi-select inputs and naming

2003-03-10 Thread Kevin Stone
- Original Message - From: Dan Phiffer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 10, 2003 11:24 AM Subject: [PHP] Multi-select inputs and naming Hello, Am I correct in my understanding that for a multi-select input, PHP requires that the name attribute end with

Re: [PHP] quick question

2003-03-10 Thread CPT 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. how can i

[PHP] PHP static module on Apache 2.0 HPUX 11

2003-03-10 Thread Harring Figueiredo
Folks, I am trying to build Apache 2.0 /PHP (latest) on an HPUX 11. I configured both of them to handle DSO. PHP generates the .so, which later I rename to .sl and move to the modules directory and run make install successfully. After adding the LoadModule and the Addtype directive, apache

Re: [PHP] Multi-select inputs and naming

2003-03-10 Thread Mark Heintz PHP Mailing Lists
On Mon, 10 Mar 2003, Dan Phiffer wrote: Am I correct in my understanding that for a multi-select input, PHP requires that the name attribute end with square brackets (i.e. select name=my_select[] multiple) in order for the submission be handled properly? As far as I know, that is correct.

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 message

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 is more of

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

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:

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

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

[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

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 docs on

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

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.

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

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 considering

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 security

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!

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

[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 /td td /if I am just having a brain lapse today, can someone help me do this same functionality in PHP? Thanks!

[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

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 an

Re: [PHP] Question

2003-03-10 Thread Mark Heintz PHP Mailing Lists
if($recordcount % 4 == 0) { echo '/tdtd'; } 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 /td td /if I

[PHP] Re: Question

2003-03-10 Thread Dan Phiffer
Perhaps something like: ?php if ($record_count % 4 == 0) { echo /td\ntd; } ? 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

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: ?php if ($record_count % 4 == 0) { echo /td\ntd; }

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

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

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

[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

Re: [PHP] Question

2003-03-10 Thread Hugh Danaher
something like: print table; while ( statement ) { $i++; if ($i==1) print tr; print td; your image code; print /td; if ($i==4) { print /tr; unset($i); } } if ($i==1) print td/tdtd/tdtd/td/tr; if ($i==2) print td/tdtd/td/tr; if

[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

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

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

  1   2   >