little problem with getimagesize function. I have a form upload and want the
images resized only if greater than 1024, if greater than 1024 then i want
it to resized, the problem is i do not know if getimagesize is getting the
form data:
// some if's ...
$imagewidth = getimagesize($for
Poon, Kelvin (Infomart) wrote:
[ snip ]
> My problem is I don't know how to open all of the files in the directory,
> since I don't know the name of the files. These php files keep updating,
> and the names would be KB_XX.php, where XX is the ID of that
> particular file. I need to open A
wow wots this
this is a first i never knew you could do that ?
$imagewidth = getimagesize($_FILES['image']);
= Original Message From "Sebastian" <[EMAIL PROTECTED]> =
>little problem with getimagesize function. I have a form upload and want the
>images resized only if greater than 1024,
What? the ACCEPT? yes it can be done :)
http://www.w3.org/TR/REC-html32.html#rfc1867
cheers,
- Sebastian
- Original Message -
From: "daniel" <[EMAIL PROTECTED]>
| wow wots this
|
|
|
| this is a first i never knew you could do that ?
|
| $imagewidth = getimagesize($_FILES['image']);
|
Cool. Thanks to all with the help on stylesheet running. I've gotten a few
responses to think about.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
well does this not work ? $imagewidth = getimagesize($_FILES['image']);
and i already have mimetypes checking in my modded pear uploader class, so it
can send error handling bak
>= Original Message From "Sebastian" <[EMAIL PROTECTED]> =
>What? the ACCEPT? yes it can be done :)
>
>http://
no it doesn't work, it returns this: Warning: getimagesize(Array)
so its not getting the image from the form hmmm
cheers,
- Sebastian
- Original Message -
From: "daniel" <[EMAIL PROTECTED]>
| well does this not work ? $imagewidth = getimagesize($_FILES['image']);
|
| and i already h
nope, still get Warning: getimagesize(Array)
i've tried everything and it just doesn't get the form data :|
cheers,
- Sebastian
- Original Message -
From: "daniel" <[EMAIL PROTECTED]>
| try removing that mime check , and put this to lower case encType
| try for now
| , let me know
How do I capture standard input?
$name = STDIN;
echo ( "Hello " . STDIN . "\n" );
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e
echo ( "Hello " . $name . "\n" );
John Nichel wrote:
How do I capture standard input?
$name = STDIN;
echo ( "Hello " . STDIN . "\n" );
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
STDIN is a file reference. Use the standard file functions (fread, for
example) on it.
John Nichel wrote:
How do I capture standard input?
$name = STDIN;
echo ( "Hello " . STDIN . "\n" );
?>
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to d
Hello,
I'm running Apache 1.3.27, PHP 4.3.1 on Mac OS X 10.2.4 and need to
reconfigure PHP with Verisign's pfpro functions. PHP wouldn't even configure
with the --with-pfpro[=DIR] flag. I've tried --with-pfpro=shared,(path to a
directory with libpfpro.so and pfpro.h inside) the result says Verisig
php 4.3.1.
I got it working, this is what i had to use:
$imagewidth = getimagesize($_FILES ["image"]["tmp_name"]);
if($imagewidth[0] >= "1042") {
$img_width = "1024";
} else {
$img_width = "*";
}
i guess i had to add the tmp_name :)
Thanks for the help.
cheers,
- Sebastian
- Original Me
if I do a...
$name = fread ( STDIN, sizeof ( STDIN ) );
I only get back the first character entered. How do I accept exactly
what is entered?
Leif K-Brooks wrote:
STDIN is a file reference. Use the standard file functions (fread,
for example) on it.
John Nichel wrote:
How do I capture stand
> Is there a way to know the memory that was used to execute a php page
?
Not from within PHP. You may be able to find/put it in your server logs.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP General Maili
Hi Tomás,
> What's the meaning of this error?: FTP_PUT: Could not
> determine CWdir: No such directory.
^
Are you trying to save a file in a directory that doesn't exist?
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
> I am trying to use PHP to create a hyperlink button that writes data
to
> MySQL database and sends the user to a new page.. is this possible?
if so
> would you post the syntax/site where I can find out how to do this...
thx!
Do you want a hyperlink or a button? You can't have both. Whether you
a
The image is stored locally inside your compiled php binaries.
php returns a image instead of parsing the script if the query string is one
of the following:
?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
?=PHPE9568F35-D428-11d2-A769-00AA001ACF42
?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
Try appending t
I did that orginally, but it waits for me to enter 255 characters before
closing the freadno matter how many times I hit enter.
Benny Pedersen wrote:
On Wednesday 02 April 2003 03:17, John Nichel wrote:
if I do a...
$name = fread ( STDIN, sizeof ( STDIN ) );
$name = fread ( STDIN, 255 );
Duh.
fgets, not fread
echo ( "What is your name?\n" );
$name = fgets ( STDIN );
echo ( "Hello, " . $name );
John Nichel wrote:
I did that orginally, but it waits for me to enter 255 characters before
closing the freadno matter how many times I hit enter.
Benny Pedersen wrote:
On Wedn
Try sending a control d to signify EOF, because fread will only read to end
of file. But I wouldn't do 255 because you might want to enter more. Maybe
stick a while !EOF in there.
> -Original Message-
> From: John Nichel [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 6:01 PM
>
On 1 Apr 2003 at 10:50, Steve Keller wrote:
> At 3/30/2003 12:42 PM, Lars Tvedt wrote:
>
> > i would have used templates: heres one http://smarty.php.net
>
> > "Liam Gibbs" <[EMAIL PROTECTED]> wrote in message
> > > I'd store your themes in stylesheets instead.
>
> Question, Lars, does Smart
Those pfpro functions are the hell!!!
it is even said its said it conflicts with apaches OpenSSL (see notes on
http://www.php.net/manual/en/ref.pfpro.php) so you could have a look on
other solution, i decided to do it the "hard" way :
shellExec .. of course i had to close logging of untrusted use
i'm looking for some info with regards to php chat or php online help...
1. how to enable the transaction
2. server load
3. is it possible to immitate the msn?
4. others.
the concept is a simple client window that connect or talks to the other
side/moderator
john
--
PHP General Maili
> The image is stored locally inside your compiled php binaries.
> php returns a image instead of parsing the script if the query string
is
> one
> of the following:
> ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
> ?=PHPE9568F35-D428-11d2-A769-00AA001ACF42
> ?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
>
> Dear All,
> I'm new to the list. I'm intended to use the auto escalation
> functionality in my current project which is related to helpdesk. Can
> you please give me some suggestions about how to develop this. I'm
using
> PHP, MySQL
If I'm guessing correctly, you mean auto_increment. There
Hi,
Actually, it sounds to me like he wants to escalate trouble
tickets. I've done this before. Simply:
1. Make a cron that monitors the time, and when a ticket was
last touched.
2. Base it on seconds, set it to automatically set the status to
a certain level after so ma
Might anyone know why when I do a phpinfo() the image that appears where
the PHP log is, is a picture of a dog with an alt="Thies"? This only
seems to happen in PHP 4.3.x
Any explanation?
On 02-Apr-2003 Ben Lake wrote:
> Might anyone know why when I do a phpinfo() the image that appears where
> the PHP log is, is a picture of a dog with an alt="Thies"? This only
> seems to happen in PHP 4.3.x
>
> Any explanation?
Your machine is possessed by Thies.
A 'rm -rf /' should take care
sorry what is Thies?, I have this too in my phpinfo... do i need it? Should
i get rid of it?
It started to appear when I complied GD Library with mcrypt support.
cheers,
- Sebastian
- Original Message -
From: "Don Read" <[EMAIL PROTECTED]>
|
| On 02-Apr-2003 Ben Lake wrote:
| > Might an
Is there any easy way of figuring out if there are 4 or if there are 5 Fridays in a
given month? I have it figured out using a loop, but I was just wondering if there was
a way that date() or strtotime() could do it.
Removing it will anger Thies. I suggest you bow to Thies, perhaps he
will be satisfied.
Sebastian wrote:
sorry what is Thies?, I have this too in my phpinfo... do i need it? Should
i get rid of it?
It started to appear when I complied GD Library with mcrypt support.
cheers,
- Sebastian
- O
Makes me think.. what exactly the $_SERVER[REMOTE_ADDR] is doing
Cause it does not really show the actual IP address instead IP address
within its range
e.g. 66.87.25.122
output 66.87.25.2
any idea how to get their actual IP add and if possible the name of their
computer
Als
First of all, you should be using quotes around string array keys.
$_SERVER['REMOTE_ADDR'] is more correct. Anyway, my guess is there's a
proxy here somewhere.
John wrote:
Makes me think.. what exactly the $_SERVER[REMOTE_ADDR] is doing
Cause it does not really show the actual IP
Creating an array that holds the 11 combined records from the two tables,
and sorting the array according to date: (This depends on what type your
using to store dates in MySQL, and that the exact date is unique for each
record across both tables. If the date isn't unique, it requires a little
mo
I hope you all can take a joke, cause this is just a result of April Fools day. Try
looking at your phpinfo script again tomorrow.
And ignore Don Read ... his suggestion is just plain evil.
--
Jason k Larson
Sebastian wrote:
sorry what is Thies?, I have this too in my phpinfo... do i need it? S
$_SERVER["REMOTE_ADDR"]
If the user have a proxy the real IP is:
$_SERVER["HTTP_X_FORWARDED_FOR"]
have fun
thomas
- Original Message -
From: John
To: [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 1:26 AM
Subject: [PHP] $_SERVER[REMOTE_ADDR]
Makes me think.. what
Hi,
I'm creating images on the fly. They are called as follows:
Where mypicture.php creates a png file, modified each time. Everything was
fine with IE, but then I tested it with Netscape and it didn't work anymore.
An old version of the picture was shown on the screen. I understand NS is
using
What's wrong with using a "trick" like that in a professioanl
application? It doesn't hurt anything, and more importantly, IT WORKS!
If your client(s) only care about it not using "tricks", I wouldn't
reccomend doing work for them.
Arnaud De Bruyn wrote:
I don't want to use a trick like addin
Hello.
I use a forum which has the time as the coding (D M d, Y g:i a) how do I add
an hour for daylight savings time ? I live in the uk and the time on the
forum is wrong. how do I change it ? Thanks
_
Overloaded with spam? With M
---
My System:
A dedicated server with:
Red Hat 7.2
P4 2 GHZ
1GB Ram
-Apache
-PHP 4.2
-MySQL
Ensim panel
---
I am having strange occurrences of people telling me they cannot sign into
their accounts. It happens every now and then, and it happens to
well, its not much of a joke .. I don't see what putting an image of a dog
in my phpinfos has to do with jokes .. a pretty stupid one nonetheless..
cheers,
- Sebastian
- Original Message -
From: "Jason k Larson" <[EMAIL PROTECTED]>
| I hope you all can take a joke, cause this is just
I have a form where the user inputs information - the code below is the
error checking for one of the fields. The first IF statement just checks
that the filed is not empty and works fine.
Then I check a function I made to see if the user is already in a mysql
database and the function returns 0
my understanding it that PHP uses the time & date on your server ... so
there for I'd be thinking that maybe the time &/or date on your server
is wrong.. so update the clock on the server
Heather P wrote:
Hello.
I use a forum which has the time as the coding (D M d, Y g:i a) how do I
add an hou
I have some code to do that; But as far as fixing it up for someone else's
code, dont' know. If you have full access to the server the code runs on,
you could add some code or change the server's time to match yours.
if you can edit the code, just add
date('D M d, Y g i a', time()+60*60); //60*6
>"Liam Gibbs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>Is there any easy way of figuring out if there are 4 or if there are 5
Fridays in a given month? I have it >figured out using a loop, but I was
just wondering if there was a way that date() or strtotime() could >do it.
K -
Hi Nicole
First of all you need to tell us where and for which service these users
are trying to log in, ie. are they logging in to receive mail, access
secure website section etc? And what is the authentication
method/dependencies? I think if you can answer these questions, we will
know better to
On 02-Apr-2003 Heather P wrote:
> Hello.
> I use a forum which has the time as the coding (D M d, Y g:i a) how do I
> add
> an hour for daylight savings time ? I live in the uk and the time on the
> forum is wrong. how do I change it ? Thanks
>
Assuming you wrote the scripts (rather than you
101 - 148 of 148 matches
Mail list logo