Hi there!
I think I have done this before but I can't remember how I did...
I want to return one variable ($htmlReport) and one array from a function
I'd like to like this:
return $htmlReport, $res;
but get the error: Parse error: syntax error, unexpected ',' in
C:\www\test\timeweb\cla
You would need to return both as elements of an array.
-Original Message-
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: 12 June 2007 12:08 PM
To: 'php windows' (php-windows@lists.php.net)
Subject: [PHP-WIN] Returning variable and array from function
Hi there!
I think I have done
Gustav Wiberg wrote:
I think I have done this before but I can't remember how I did...
I want to return one variable ($htmlReport) and one array from a function
I'd like to like this:
return $htmlReport, $res;
but get the error: Parse error: syntax error, unexpected ',' in
C:\www\test\tim
Hi there!
Aha, ok thanx! :-)
Best regards
/Gustav Wiberg
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 12, 2007 12:17 PM
To: Gustav Wiberg
Cc: 'php windows' (php-windows@lists.php.net)
Subject: Re: [PHP-WIN] Returning variable and array from function
Gus
Hi
This is possibly way too simple, but let me ask just the same :
I want to add some code (may be PHP) on an HTML page, to check the
referrer.
It has to be web-server independent.
If the page is invoked by URL X, ok, if not, the page should not be
shown.
Luis,
Try using the "$_SERVER['HTTP_REFERER']" server variable to get the URL of
the page that referred the current user to your page. Let me know if this
helps.
--Brad
On 6/12/07, Luis Moreira (ESI-GSQP) <[EMAIL PROTECTED]> wrote:
Hi
This is possibly way too simple, but let me ask
Hi there!
If you mean independet of webserver, then try using Javascript. I don't know
the command for retrieving URL in Javascript, but I'm pretty sure there
Is one out there.
Best regards
/Gustav Wiberg
-Original Message-
From: Bradley Stahl [mailto:[EMAIL PROTECTED]
Sent: Tuesday
Bradley Stahl wrote:
Try using the "$_SERVER['HTTP_REFERER']" server variable to get the URL of
the page that referred the current user to your page. Let me know if this
helps.
Note that this cannot be relied upon. A fair number of proxies and even
some browsers have the option to remove or n
Is there a PHP function to resize a user's JPG or GIF image during an
upload?
I was advised to use Image Magick http://www.imagemagick.org However, the
Windows install doc has not been written. I have unsuccessfully struggled
with the install for days ...
All I want to do is to resize a
Stut,
I did not know that. Do you have any documentation on this? I would really
like to read more about this issue. Thanks for the heads up.
-Brad
On 6/12/07, Stut <[EMAIL PROTECTED]> wrote:
Bradley Stahl wrote:
> Try using the "$_SERVER['HTTP_REFERER']" server variable to get the URL
of
>
$Filename = full path and filename of original file
$Thumbnail = full path and filename of thumbnail
$WIDTH && $HEIGHT = specified for resizing
Gdlib must be installed.
$fwidth){
$percentage = round(($HEIGHT/$fheight) * 100);
$newwidth = round(($f
Bradley Stahl wrote:
I did not know that. Do you have any documentation on this? I would
really like to read more about this issue. Thanks for the heads up.
There is no documentation on this beyond the HTTP spec not requiring
that this header is set, so I'm not really sure where I can point
No problem. Thanks.
On 6/12/07, Stut <[EMAIL PROTECTED]> wrote:
Bradley Stahl wrote:
> I did not know that. Do you have any documentation on this? I would
> really like to read more about this issue. Thanks for the heads up.
There is no documentation on this beyond the HTTP spec not requiri
True
I tested, for now, on my own PC running Apache, and it does work.
I will try to find a javascript option, but for now I already have something
that does the trick, providing the info is there.
Thanks
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 12 de J
Mark,
Not sure about your comment "...the Windows install doc has not been written.".
>From the ImageMagick site I see the pre-compiled Windows downloads
http://www.imagemagick.org/script/binary-releases.php#windows
Just above the list of download links is the paragraph:
"The Windows version of
15 matches
Mail list logo