Re: [PHP] How New Is HERE?

2003-12-27 Thread [EMAIL PROTECTED]
By comment[ing] out line 11, I take it you mean making a comment of line 11. I just did--as this problem woke me from a night's sleep at just past 2:30 AM--and the error message is now: Parse error: parse error, unexpected $ in [path to file] on line 19 Where will this end? Steve Original

[PHP] Problems with imagejpeg

2003-12-27 Thread René Fournier
I have a function that [is meant to] check if an image is greater than a certain width and height, and if it is, downsample it. The checking part works fine. Downsampling is happening though. Here's what I've got ($file = /somedirectory/photo.jpg): $src_img=imagecreatefromJPEG($file);

Re: [PHP] How New Is HERE?

2003-12-27 Thread Olwen Williams
Interesting that it's the same variable on both lines. The second error would not show untill the first disappeared. Would you have copied and pasted some of the line? I'm still for retyping the lines in case there's something odd lurking in there and not visible. [EMAIL PROTECTED] wrote: By

RE: [PHP] How New Is HERE?

2003-12-27 Thread Grant Walters
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, 27 December 2003 20:56 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How New Is HERE? By comment[ing] out line 11, I take it you mean making a comment of line 11. I just

[PHP] web based inn server

2003-12-27 Thread Jayanta Debnath
hi, we have a inn news server running on linux machine in our institute. we want to make a web interface for this. can anyone please suggest where and how to start with. --Jayanta __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing.

[PHP] Failed error_log directive

2003-12-27 Thread Aidan Lister
Hello, I am trying to log all php script errors from a virtualhost to a file. A callback function is not the solution I am looking for. I have tried to the following settings in my httpd.conf (apache) to no avail. php_admin_flag display_errors off php_admin_flag log_errors on php_admin_flag

[PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due to what seems to be a problem with setting php session variables on certain end user browsers (certain versions of AOL seem to be particularly problematic). Below are

[PHP] how to get mails in digest mode

2003-12-27 Thread Jayanta Debnath
somebody please tell me how can i get the mails from this list in digest mode. --Jayanta __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How New Is HERE?

2003-12-27 Thread David T-G
Steve -- From your private reply to me, we know that ripping out the HERE stuff makes no difference, so it has nothing to do with that. I would also be inclined to rip out all of the bare HTML to make sure you don't have anything funky in there, too, especially since it comes before the error.

RE: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andras Kende
-Original Message- From: Andy Higgins [mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 6:04 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP Session Variables Not Being Set For Certain Browsers Hello All, I have been racking my head over a problem where a large percentage of users

[PHP] SESSION Query

2003-12-27 Thread Aniruddha
Hi PhpTeam, Iam runing PHP 4.3.0 on Apache server. Iam expiriencing following problem when managing session: 1) I start session and register session variable by setting $_SESSION: session_start(); $_SESSION[session_referer] = abc.com; 2) The above step does not register the

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hi Andras, Yes, good point Thank you. It could be that the IP address of the user is changing on each HTTP request that is made, which would explain the problem (although that does seem quite odd). Can anyone confirm whether AOL (or any other ISPs for that matter) change a user's IP address as

[PHP] Re: SESSION Query

2003-12-27 Thread Andy Higgins
Hi Aniruddha, Try using session_start(); $HTTP_SESSION_VARS['session_referer'] = abc.com; and if (session_is_registered('session_referer')) go to abc.com; Regards, Andy Aniruddha [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi PhpTeam, Iam runing PHP 4.3.0 on Apache server.

[PHP] encoding problem

2003-12-27 Thread Pedro Salgueiro
Hi. I have made a script in php that calls a java program. This java program will make a connection to a PostgreSQL db and do some operations. That java program works just fine if I run it on a console, but when it is php to runing it, it gives some errors related to the charset encoding. The

Re: [PHP] How New Is HERE?

2003-12-27 Thread [EMAIL PROTECTED]
Okay, everyone, here's some real progress. I retyped the file from scratch. I'm both attaching it--it's not a big file--and printing it below: html head titlepersistence demo/title /head body h1Persistence Demo/h1 form ?php $txtBoxCounter = $_POST['txtBoxCounter']; $hdnCounter =

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Gerard Samuel
On Saturday 27 December 2003 07:03 am, Andy Higgins wrote: Hello All, I have been racking my head over a problem where a large percentage of users are unable to log into my php site due to what seems to be a problem with setting php session variables on certain end user browsers (certain

Re: [PHP] How New Is HERE?

2003-12-27 Thread Asegu
It looks like your form tag is missing some attributes needed to point your browser to the script as to where to submit the data. if you were to try with your form tag as form action=___SCRIPT_ITSELF_FILENAME___ method=post ?? Andrew. ps: if that doesn't work, may I recommend inserting

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hi Gerard, Thank you very much for the response. Please can you clarify the following: 1. At the time of login will the login code need to check if the clients browser accepts cookies and if not then append the SID as described? If so, do you perhaps have a sample piece of code that does this?

RE: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Mark Charette
-Original Message- From: Andy Higgins [mailto:[EMAIL PROTECTED] Can anyone confirm whether AOL (or any other ISPs for that matter) change a user's IP address as seen by the web server (for eample through a proxy) within the same session? It's been pointed out and confirmed many,

[PHP] Re: how to get mails in digest mode

2003-12-27 Thread Website Managers, LLC
Go to http://www.php.net/mailing-lists.php and check the box of your choice. Or, subscribe to the newsgroup. Jim Jayanta Debnath [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] somebody please tell me how can i get the mails from this list in digest mode. --Jayanta

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hi Mark, Thank you for confirming that for me. I am new to the list and did do a search though past messages but did not find this point (obvioulsy I did not look hard enough). Thanks again. Regards, Andy Mark Charette [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Gerard Samuel
On Saturday 27 December 2003 10:54 am, Andy Higgins wrote: 1. At the time of login will the login code need to check if the clients browser accepts cookies and if not then append the SID as described? If so, do you perhaps have a sample piece of code that does this? No, php does this for you.

Re: [PHP] Maths dumbass

2003-12-27 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hi guys, % Its not 5am here and have started on a blasted problem where am feeling like % a maths dumbass...the old noodle is just not working, any help appreciated. *grin* % % Problem, selling 4 packages rangeing from $27.50-$99.00 a month...the %

[PHP] Regular Expression

2003-12-27 Thread Joshua
Hi all, I'm trying to change the string, for example, $string = 11.abcd.32.efgh.53.ijk; to 11.abcd. 32.efgh. 53.ijk. with ereg_replace. Like ereg_replace(\.[0-9],BR,$string); How can I recover the original characters after replacing them with BR in ereg_replace?

[PHP] HELP! -- Problem with imagejpeg()

2003-12-27 Thread René Fournier
Hello, I have a function that is meant to check if an image is greater than a certain width and height, and if it is, downsample it. The checking part works fine. Downsampling is not happening though. Here's what I've got (btw, $file = /somedirectory/photo.jpg):

Re: [PHP] PHP Session Variables Not Being Set For Certain Browsers

2003-12-27 Thread Andy Higgins
Hi Gerard, Thank you for your assistance you have been of enormous help. Regards, Andy Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 27 December 2003 10:54 am, Andy Higgins wrote: 1. At the time of login will the login code need to check if the clients

Re: [PHP] Regular Expression

2003-12-27 Thread Kelly Hallman
On Sat, 27 Dec 2003, Joshua wrote: I'm trying to change the string, for example, $string = 11.abcd.32.efgh.53.ijk; to 11.abcd. 32.efgh. 53.ijk. with ereg_replace. Like ereg_replace(\.[0-9],BR,$string); How can I recover the original characters after replacing them with BR in

php-general Digest 27 Dec 2003 19:27:49 -0000 Issue 2497

2003-12-27 Thread php-general-digest-help
php-general Digest 27 Dec 2003 19:27:49 - Issue 2497 Topics (messages 173355 through 173382): Re: File Uploads 173355 by: Jough Jeaux Re: How New Is HERE? 173356 by: stiano.optonline.net 173358 by: Olwen Williams 173359 by: Grant Walters 173364 by:

Re: [PHP] How New Is HERE?

2003-12-27 Thread [EMAIL PROTECTED]
Bingo! Thanks, everyone! And thanks especially to Andrew! You were right: I needed the action and method attributes. And then it does increment. My last question on this episode: Why did it work before this for some of you trying it out for me? I mean, the code is the code, right? And either

Re: [PHP] How New Is HERE?

2003-12-27 Thread Olwen Williams
It incrementeted for me only after I changed $_POST to $_GET, but never gave errors. [EMAIL PROTECTED] wrote: Bingo! Thanks, everyone! And thanks especially to Andrew! You were right: I needed the action and method attributes. And then it does increment. My last question on this episode: Why

[PHP] Re: HELP! -- Problem with imagejpeg()

2003-12-27 Thread Al
Here is a complete function I wrote a few months ago. It should do it for you or give you hints for fixing your problem. René fournier wrote: Hello, I have a function that is meant to check if an image is greater than a certain width and height, and if it is, downsample it. The checking part

Re: [PHP] Regular Expression

2003-12-27 Thread Joshua
Thank you!! It worked!! The wrong sample was 'dot'11'dot'abcd, but the first dot was not shown properly... And, now I have another problem: In fact, the input strings are lines from a webpage, and they sometimes have line-feed as in: 11.abcd.32.efgh.54.ij --here kh.41.lmno. --here 63.pqrs And,

[PHP] newbie mysql and php

2003-12-27 Thread tony
hello I'm new with php just learning and i have just a problem with the following code $dbconnect = mysql_connect(localhost, prog_tony,PASSWORD); mysql_select_db(prog_dealer, $dbconnect); $stop = 0; $counter = 1; while(!$stop){ $query = SELECT name FROM category WHERE id = $counter;

[PHP] PHP5 XML functions

2003-12-27 Thread TopTenNut
I've just gotten PHP5 B3 working using the precompiled binaries under Win XP, but the dom xml functions of PHP4 don't seem to be immediately available. Does anyone have suggestions on how to learn to use the new XML functionality? The source code? Greg Steffenson

[PHP] Printing out html

2003-12-27 Thread Labunski
Hello, I have just entered PHP world and I have many questions. I have already made PHP script that send's htm form values via e-mail. Now I want to build PHP based web page.. 1.question For example I have index.php file, but I want HTML (index.html) file to be printed out. How php code should

Re: [PHP] newbie mysql and php

2003-12-27 Thread Brad Pauly
On Sat, 2003-12-27 at 17:17, tony wrote: hello I'm new with php just learning and i have just a problem with the following code $dbconnect = mysql_connect(localhost, prog_tony,PASSWORD); mysql_select_db(prog_dealer, $dbconnect); $stop = 0; $counter = 1; while(!$stop){ $query =

RE: [PHP] Printing out html

2003-12-27 Thread Mike Brum
1. if you have index.php, then just get rid of index.html and print your content via print or echo statements. 2. $ip = getenv(REMOTE_ADDR); print tdIP Address: . $ip . /td; (there's a few ways you can do that - this is just the standard I use) Regards -M -Original Message- From:

[PHP] newb: stop file process

2003-12-27 Thread Jed R. Brubaker
This one should be simple. I am wondering if there is a simple way in which to stop the processing of a file. The current example is a program that checks to see if the user is logged in. In the past I have done something like this: if ($loggedIn != true) { echo You are not logged in.; }