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
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);
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
-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
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.
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
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
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:
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.
-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
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
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
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.
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
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 =
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
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
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?
-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,
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
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
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.
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
%
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?
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):
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
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 - 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:
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
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
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
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,
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;
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
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
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 =
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:
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.;
}
38 matches
Mail list logo