http://www.php-help.net/sources-php/image.upload.function.353.html
Regards,
Nadim Attari
Alienworkers.com
> Hi, After a disastrous first attempt (which uploaded images but only by
> chance) it was suggested I rework the entire thing. This one seems to
> check the file against getimagesize and if
Try
extension_dir = "./extensions"
Nadim Attari
Alienworkers.com
> Okay I at loss. I have tried but i can seem to get the
> php_gd2.dll to work properly. Any help this is what i have
> done so far.
>
> I have in my php.ini file,
>
> ; Directory in which the loadable extensions (modules)
> resi
This is Computer Software philosophical musing, not specifically related
to just PHP, but applicable to PHP and, well, all other OpenSource
software...
As I sit here surrounded by machines (physically and virtually) and
realizing that while I've got most of them on "auto-update" as much as I
can,
On Wed, June 15, 2005 6:39 am, Shane Presley said:
> I have a RedHat system running Apache and PHP Version 4.3.2. These
> were pre-installed Red Hat packages. Things worked nicely.
What you are missing is the RPM "apache-devel" or "httpd-devel" or
"somethinghereaboutapache-devel"
The "*-devel"
On Wed, June 15, 2005 9:04 am, James said:
> $host = "10.1.4.58:c:\fbwin50\fbdata\fbdata.fdb";
> $username = "SYSDBA";
> $password = "masterkey";
> $dbh = ibase_pconnect ($host, $username, $password);
> $stmt = "SELECT * FROM EVENTTYP";
> $sth = ibase_query ($dbh, $stmt);
>
> Warning: ibase_pconnec
On Wed, June 15, 2005 5:36 pm, Chris Herold said:
> I have been told that in order to pass variables via passthru() to
> another script (in my case, a perl script) one can do the following ...
>
> passthru("home/test.cgi $var")
>
> and that $var will then be passed through to the cgi.
>
> I have tr
http://weather.noaa.gov/pub/data/observations/metar/stations/SABE.TXT
Here you get the METAR report in plaintext format..now is your work to
decode it.HAVE FUN !!
I already made something to read thouse text files...If you want I can
share it.
cheers!
pancarne.
On 6/15/05, Clive Z
Hello,
Wednesday, June 15, 2005, 2:33:48 PM, you wrote:
ncn> I want to write a trace procedure and call it with variable
ncn> names, and I am having trouble with the syntax. My goal is to
ncn> have a procedure that will echo lines such as:
ncn> Trace: $myvar="the contents of $myvar
ncn> My atte
I want to write a trace procedure and call it with variable names, and I am
having trouble with the syntax. My goal is to have a procedure that will
echo lines such as:
Trace: $myvar="the contents of $myvar
My attempt that didn't work is to write a function:
function my_trace($m){
echo ("\
On Wed, June 15, 2005 10:38 am, Brian D. McGrew said:
> I call session_start() on all my pages and then
> and everything is the same from all the pages. However if I stuff a
> variable into $_SESSION it's never transferred between pages. So if I
> do a and then go to another page
> and say it
On Wed, June 15, 2005 12:43 pm, Aaron Todd said:
> I dont know it this is possible, but here it goes. Hopefully I cac
> explain
> it well enough for someone to understand.
>
> I am posting data to a php script. I have several variables that are the
> same except the number at the end is different
Hi,
I have been told that in order to pass variables via passthru() to
another script (in my case, a perl script) one can do the following ...
passthru("home/test.cgi $var")
and that $var will then be passed through to the cgi.
I have tried this and failed.
Is this the proper format or is t
I dont see support for using ftruncate() on user defined stream
wrappers. When I try to truncate one I get an E_WARNING:
Warning: ftruncate() [function.ftruncate]: Can't truncate this stream!
Does anyone know of a way to truncate a user defined stream wrapper
using php's file system or stream
On 6/15/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote:
> Dotan Cohen wrote:
>
> >>> Hi gurus. I'm having fun replacing the text within [ and ] to XML
> >>> format on 4000+ files on a windows XP machine. I installed php (and an
> >>> apache server) on the machine because it is the only language th
On 6/15/05, Tom Rogers <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Wednesday, June 15, 2005, 4:42:24 AM, you wrote:
> DC> On 6/14/05, Sebastian Mendel <[EMAIL PROTECTED]> wrote:
> >> Dotan Cohen wrote:
> >> > Hi gurus. I'm having fun replacing the text within [ and ] to XML
> >> > format on 4000+ files o
On 6/15/05, Brian Dunning <[EMAIL PROTECTED]> wrote:
> On Jun 15, 2005, at 2:28 PM, Greg Donald wrote:
>
> > Make yourself a phpinfo() page. Your PHP configuration will be at the
> > top of the page. You can use that configure line to build/upgrade to
> > a newer PHP.
>
> I see that, thanks - b
Hi,
you need to get the appropriate php tarball from
http://www.php.net/downloads.php and check out this page:
http://www.geocities.com/tipsforlinux/articles/27.html
It will tell you how to:
- extract the sources
- run configure (this is where you use the configure line from phpinfo)
- insta
Hi all,
I'm trying to interface with verisign's payflow pro on windows using
the COM workaround.
This code was originally taken from an example listed with the manual
as a workaound for the fact that the php pfpro functions are not
supported on windows. It worked for some time until the server w
Thank you! That fixed it. I just had to define the Oracle env
variables on the httpd startup script.
So that was a huge help :)
Shane
On 6/15/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote:
> I ran into a similar problem trying to get ODBC working with a Progress
> database. I managed to sol
On Jun 15, 2005, at 2:28 PM, Greg Donald wrote:
Make yourself a phpinfo() page. Your PHP configuration will be at the
top of the page. You can use that configure line to build/upgrade to
a newer PHP.
I see that, thanks - but if you'll forgive an ignorant question, what
do I do with that co
On 6/15/05, Brian Dunning <[EMAIL PROTECTED]> wrote:
> GoDaddy's "Virtual Dedicated Servers" come with PHP 4.2 - anyone ever
> upgraded this to 4.3 or later? I've never done any command line stuff
> or anything like that - is there an easier way?
Make yourself a phpinfo() page. Your PHP configura
That did it exactly, Kristen
Thanks so much for the help! (and sorry for sending this to you and not
the list the first time!)
JJ
Kristen G. Thorson wrote:
Hopefully I understand your question correctly.
You have this SQL:
$media_query = 'SELECT media_id,media_name FROM media GROU
GoDaddy's "Virtual Dedicated Servers" come with PHP 4.2 - anyone ever
upgraded this to 4.3 or later? I've never done any command line stuff
or anything like that - is there an easier way?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Did you try using fopen's binary safe read? Something like :
[/snip]
Shy of being able to do this in the way that I imagined, does anyone
know of a class (not requiring PHP 5, as one does on phpclasses.org)
that will allow me to specify several PDF and/or other files in a
directory to be
[snip]
I dont know it this is possible, but here it goes. Hopefully I cac
explain
it well enough for someone to understand.
I am posting data to a php script. I have several variables that are
the
same except the number at the end is different. So the url of the
called
script will be somethi
After upgrading my fedora core 3 box with the latest selinux update i
get the following error when trying to start apache (2.0.54-prefork)
Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: cannot restore segment prot after
reloc: Permission
I dont know it this is possible, but here it goes. Hopefully I cac explain
it well enough for someone to understand.
I am posting data to a php script. I have several variables that are the
same except the number at the end is different. So the url of the called
script will be something like
[snip]
Did you try using fopen's binary safe read? Something like :
$binary_data = "";
$fp = fopen ( $file, "rb" );
while ( ! feof ( $fp ) ) {
$binary_data .= fgets ( $fp );
}
fclose ( $fp );
Don't know if it will work (or if you already tried it)...more like a
guess.
[/snip]
Yes, tried
Hi, folks.
I'm looking for some feedback on a couple of the php mvc implementations
out there.
The two that I've seen referenced the most are php.MVC
(http://www.phpmvc.net) and Phrame (http://phrame.sourceforge.net).
I've looked around and found some okay opinions on both, but I'd really
like t
Jay Blanchard wrote:
I am following Coggeshall's article on Zend for creating ZIP files. I
seem to have run into a problem with PDF's though.
In his code you have to read the file into a variable. I have tried
file_get_contents, readfile, a combination of fopen, fpassthru, etc
$filedata = r
I am following Coggeshall's article on Zend for creating ZIP files. I
seem to have run into a problem with PDF's though.
In his code you have to read the file into a variable. I have tried
file_get_contents, readfile, a combination of fopen, fpassthru, etc
$filedata = readfile(INVOICEDIR."AOM
Here's the answer!
http://community.borland.com/article/0,1410,25290,00.html
I updated the SERVICE file on my Apache/PHP machine and all is well.
At 12:04 PM -0400 6/15/05, James wrote:
I have a windows machine with Firebird and the default database.
I've configured another machine with Ap
On 6/15/05, Brian D. McGrew <[EMAIL PROTECTED]> wrote:
> Greetings from San Diego!
Greetings from someplace-else.
> I call session_start() on all my pages and then
> and everything is the same from all the pages. However if I stuff a
> variable into $_SESSION it's never transferred between page
Greetings from San Diego!
I call session_start() on all my pages and then
and everything is the same from all the pages. However if I stuff a
variable into $_SESSION it's never transferred between pages. So if I
do a and then go to another page
and say it comes back blank.
It doesn't s
Yes, Jason,
Those did it!
Thanks so much for the help!
Jason Wong wrote:
On Thursday 16 June 2005 00:38, Jack Jackson wrote:
//try to get image size; this returns false if this is not an actual
image file.
$image_test = getimagesize($local_file);
if ($image_test !== false) {
I ran into a similar problem trying to get ODBC working with a Progress
database. I managed to solve it by setting the environment variables in
the httpd startup script.
Not much help, I know, but a suggestion. ;)
good luck
kgt
Shane Presley wrote:
Hello,
I'm having trouble compiling a
"Undefined service gds_db/tcp."
Sounds to me like it's not finding the port in services. I don't know
what default port Firebird is listening on, but you should have an entry
like
gds_db/tcp 1234/tcp
in c:\windows\system32\drivers\etc\services. You'll have to find out
exactly whic
On Thursday 16 June 2005 00:38, Jack Jackson wrote:
> //try to get image size; this returns false if this is not an actual
> image file.
>$image_test = getimagesize($local_file);
> if ($image_test !== false) {
> $mime_type = $_FILES['userfile']['type'];
$_FILES['userfile'][
Richard Davey wrote:
Hello Jack,
Wednesday, June 15, 2005, 5:38:11 PM, you wrote:
JJ> newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg
JJ> image_file returns:
JJ> images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg
JJ> images/jpg/test is set to 777 but I still get (Could not move file
Hello Jack,
Wednesday, June 15, 2005, 5:38:11 PM, you wrote:
JJ> newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg
JJ> image_file returns:
JJ> images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg
JJ> images/jpg/test is set to 777 but I still get (Could not move file to
JJ> destination). Wha
Okay, I started seeing some of my mistakes.
I am still having a great deal of trouble:
newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg
image_file returns: images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg
images/jpg/test is set to 777 but I still get (Could not move file to
destinati
I have a windows machine with Firebird and the default database.
I've configured another machine with Apache and PHP. I want to write
PHP scripts to remotely access the Firebird database.
I followed the instructions at:
http://us3.php.net/ibase
I changed the php.ini to enable the php_int
[snip]
> Harumphmy day had been sailing along reasonably smoothly.
> [/snip]
>
> Never mind. I just found out that the network admin recompiled PHP on
> this server without zlib.
>
See, if you would have looked at your phpinfo() you would have known
this. ;)
*ducks*
[snip]
*throws*
Well
Jay Blanchard wrote:
[snip]
I am working with a class to create zip files and the class requires
gzcompress(). An undefined function error is thrown ("Fatal error: Call
to undefined function: gzcompress() in /var/li...") yet the TFM says
that gzcompress is available in "(PHP 4 >= 4.0.1, PHP 5)".
> ; Directory in which the loadable extensions (modules)
> reside.
> extension_dir = "C:\PHP\extensions"
>
> I have also uncommented the
>
> extension = php_gd2.dll
>
> I have in the c:\php\extension folder the php_gd2.dll
>
> I have restarted IIS but s
[snip]
I am working with a class to create zip files and the class requires
gzcompress(). An undefined function error is thrown ("Fatal error: Call
to undefined function: gzcompress() in /var/li...") yet the TFM says
that gzcompress is available in "(PHP 4 >= 4.0.1, PHP 5)". I am running
4.3.7 on t
I am working with a class to create zip files and the class requires
gzcompress(). An undefined function error is thrown ("Fatal error: Call
to undefined function: gzcompress() in /var/li...") yet the TFM says
that gzcompress is available in "(PHP 4 >= 4.0.1, PHP 5)". I am running
4.3.7 on this par
Hello,
I'm having trouble compiling and running PHP with oracle support.
I was able to compile with the appropriate configure script, but only
after I set my Oracle environment variables in my shell. That was no
problem.
The problem is, when Apache goes to load the php module, it fails,
because
I. Gray wrote:
The Royal Mail, I don't think will stop charging for the service. I
wish there was a decent world wide database that was free to use.
I do have a start
http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html
I'd like to put the full UK one in, but apart from n
I. Gray wrote:
The Royal Mail, I don't think will stop charging for the service. I
wish there was a decent world wide database that was free to use.
I do have a start
http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html
I'd like to put the full UK one in, but apart from n
Hi, After a disastrous first attempt (which uploaded images but only by
chance) it was suggested I rework the entire thing. This one seems to
check the file against getimagesize and if that doesn't prove false,
check the type and make the extension then rename the file. But the
moving part is n
I. Gray wrote:
Hi.
I was wandering whether anyone knew how i can use php to retrieve info
from a postal code (probably mainly in the UK) so that when a person
enters the post code it comes up with the address or I can do other
things with the info. Is there a php class that can do this? Woul
Hopefully I understand your question correctly.
You have this SQL:
$media_query = 'SELECT media_id,media_name FROM media GROUP BY media_name';
And
"For every media_id which is associated with $cartoon in the table
media_art, check the box; for all others leave them unchecked."
The problem i
Sebastian Mendel wrote:
>>> ; Directory in which the loadable extensions (modules)
>>> reside.
>>> extension_dir = "C:\PHP\extensions"
>>>
>>> I have also uncommented the
>>>
>>> extension = php_gd2.dll
>>>
>>> I have in the c:\php\extension folder the php_gd2.dll
>>>
>>> I have restarted IIS bu
Hello,
I have a RedHat system running Apache and PHP Version 4.3.2. These
were pre-installed Red Hat packages. Things worked nicely.
But I needed to recompile PHP, because I need Oracle support, and this
package wasn't compiled with
--with-oracle=/path/to/oracle/home/dir
--with-oci8=/path/
Hi, I had made a feedback complaint to Apple without any reply, I was
wondering if anyone has had any issues with their php cli crapping out
whenever an apple update occurs under OSX ? It seems to revert back to
php 4.3 or whatever is the default in the base system. I run a php5
system. Here is
Hi Murray
Ive managed to get the local weather in cape town or for any airport
that has a ITIA code.
the webservice is provide by:
http://www.capescience.com/webservices/globalweather/index.shtml
you will need to get nusoap from sourceforge to make use of the webservice.
regards
clive
--
P
How about: http://www.capescience.com/webservices/globalweather/index.shtml
--
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Murray @ PlanetThoughtful wrote:
Hi All,
Just wondering if anyone knows of a free weather service that can be
interrogated by PHP for information such as current temperature for a range
of cities around the world?
iirc, weather.com provides a XML feed of such information. Free signup.
--
PHP
Dotan Cohen wrote:
>>> Hi gurus. I'm having fun replacing the text within [ and ] to XML
>>> format on 4000+ files on a windows XP machine. I installed php (and an
>>> apache server) on the machine because it is the only language the I am
>>> remotely familiar with.
>>>
>>> I want and text that is
ddiffa wrote:
> Okay I at loss. I have tried but i can seem to get the
> php_gd2.dll to work properly. Any help this is what i have
> done so far.
>
> I have in my php.ini file,
check phpinfo() that you are using the right php.ini
> ; Directory in which the loadable extensions (modules)
>
Check a conformity of php and gd versions. I had same problem, I donload
Nusphere Techplat and took its php_gd2.dll. I can send u one if u want
""ddiffa"" <[EMAIL PROTECTED]> ???/ ? ?:
news:[EMAIL PROTECTED]
> Okay I at loss. I have tried but i can seem to get the
> ph
62 matches
Mail list logo