Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





GD2 And PHP4.4


It should be possible (as far as I know) to use createimagefromjpg('<urltoimage>');

In PHP4.3.11 it worked just fine, but now I use PHP4.4 and it is not working
anymore!

I only can do:
createimagefromjpeg('blafoo.jpg') (=same dir)
or
createimagefromjpeg('d:/inetpub/vhosts/......../blafoo.jpg);

This function is also used in a plugin (LightBox) for Nuclues and with Nucleus
is isn't working also.

Anybody a solution? (I *need* to load from url!).




View Complete Forum Thread with Replies

Related Forum Messages:
Php4
I'm wanting to work with php4 and want to know which version of mysql to
download that works great with php4 api version 3.23.x?

View Replies !
PHP4 Ignored With IIS
I am attempting to get PHP4 working with IIS but the php script is ignored.
I installed Apache and it works with the Apache server so it is obviously a
configuration error on my part but I can't find it. I have a test.php file
that I run with each configuration.

View Replies !
Re Php4.3.4
Re previous problem
Thanks to Alvaro, I solved the original problem on php version 4.3.4
However, I now have another one.

I have an admin panel which requires a password to access it from a previous
page. With the site live on an ISP server, everything is OK.
On my local server running Apache and php 4.3.4, when the correct p/w is
entered on the previous page, instead of going to the correct page (which
consists of 2 frames, it simply reproduces the previous page in both frames.

The script being used is:
#-----REDIRECT AUTH USER----------
if($HTTP_SESSION_VARS['sessadmin']){
Header('Location:admin.index.php');
}
#------AUTHENTICATE PASSWORD-------
if($HTTP_POST_VARS['pass']){
if(crypt($HTTP_POST_VARS['pass'],
$HTTP_POST_VARS['pass'])=='wiOgiun64DE9.'){
session_register('sessadmin');
$sessadmin='set'
$done=1;
}

Because it works OK on an ISP, I assume it must be a setting in my local
apache/php set up.

View Replies !
PHP4 XML DOM
Currently my web server supports only php4.
I want to know how to parse the xml and get the
element value using dom. I thought they have similar
function for getting element by id or tag name, so
far i haven't find anyting like that except fro PHP5 with
Domdocument.

$dom = domxml_open_file ('data.xml');
$e_data = $dom->document_element();

<?xml version="1.0"?>
<book>
<title>hhelo</title>
</book>

View Replies !
PHP4 And XML
How can I pase this xml file using php.  I am currently using  xml_parse($xml_parser,file_get_contents($file)); but this get the php code and not the out putted xml. I can't get my head around how to parse the outputted xml using php Code:

View Replies !
OOP In PHP4
Q. What OOP construct <B>unavailable</B> in PHP 4 does the following script approximate? Code:

View Replies !
XML In Php4
XML for data transfer between 2 servers. It's all working nicely - getting my "interface" object populated works like a charm - however, now that I wanted to test the application on the production server (PHP 4.4.4 - development server is 5.1), I of course, ran into a ton of issues due to php4's lack of XML support (compared to v5). After having tried multiple classes and trying to shimmy something together myself.

View Replies !
PHP4 Vs. PHP 5
I know PHP 5 is the newer (and presumably) better version, but I don't have any experience programming OOP. And I don't want to stumble learning PHP simply because I am struggling with OOP concepts. Yet at the same time, I'd rather learn a newer (more applicable) version, and I do hope to learn OOP programming some day soon.

View Replies !
PHP3 And PHP4 Together
I'm a little new to the PHP thing. I want to try to setup my server to handle PHP3 and PHP4 requests easily. e.g. I have some scripts that are PHP3 and want to start learning PHP4. Instead of doing the simple (like anything I do is simple URL ) thing, I am attempting to set up apache to support MySQL, PHP3, PHP4, SSL, ColdFusion, SteelBlue, and maybe even Frontpage.
Tell me I'm insane.
Now I have read the "Soothingly Seamless" setup from the website, and had it mostly working, until some unforseen circumstances caused me to have to start over.
I can set up Apache to use PHP4, MySQL, and SSL, but for those PHP3 scripts, I am a bit lost.
Finally, my question. Is there a simple way (using the Sootingly Seamless page as a reference) to add PHP3 into the mix. Any help on this would be great!

View Replies !
PHP3 Or PHP4
I am starting to write some scripts. Now should I wait until PHP4 documentation and tutorials arise and write in PHP4, or should I just do everything in PHP3? I have a book on PHP3 and I want to know if the language has changed enough to make this book invalid. Thanks. Any clear input is appreciated.

View Replies !
MSSQL With PHP4
I am using win98 and SQL7.0,, the problem is when i try to connect to the database using the next query :
<?php
$username = "bla";
$password = "bla";
$database = "bla";

$conn = mssql_connect($server, $user, $pass);
$select = mssql_select_db($database, $conn);
$sql = "SELECT * FROM ";
$result = mssql_query($sql, $conn);
?>

it gives me the next error message :

Fatal error: Call to undefined function: mssql_connect() in C:Inetpubwwwrootphptestmain2.php on line 6

View Replies !
Does Anyone Use The PHP4 Dl() Function?
does anyone use the PHP4 dl() function using a UNIX server?
to dynamically load modules at run time?

View Replies !
PHP4 And SSL And Raven
1) - Has anyone had intermittent "Page Not Found" or "Page Cannot Be Displayed" errors when using PHP4 over a secure connection. It's not our programming because we get the error when using phpmyadmin over SSL. Phpmyadmin is an open source utility which was programmed by someone else. We are using a RaQ4 Cobalt box running Linux, hosted with Aspre (aspre.net). Our ISP says some other customers have complained about a similar problem but they have no solutions.

2)- We talked with another dedicated server provider (Adgrafix, adgrafix.com) and they said that we would have to install "Raven" to make PHP work over SSL. Has anyone heard of Raven? Is it necessary?

View Replies !
Session In Php4
I have tested a couple functions, they work fine, but when I try the session_start() function, it just hang the browser for a long time and at the end, return me a message saying that the page is not found. Is there some configuration I have to make before I can use session-related function? or what else I should do?

View Replies !
Setting Up PHP4
I have set up PWS and PHP4 on my Windows98 computer but I am still unable to see php coding in .php files in IE. Yes I have put them in the right dir. I think the problem was that I was unable to put the file msvcrt.dll in my C:WINDOWSSYSTEM folder. When ever I try to copy that file into C:WINDOWSSYSTEM I get an error message that says "Cannot creat or replace msvcrt: The specified file is being used by Windows." Whats going on here?

View Replies !
PHP4 Beta
i installed PHP4b2 for NT4/IIS but the PHPpages just won't show - HTTP error 500. how do i troubleshoot this? I have installed the php isapi filter and also *.php is associated with the above filter as per the installation notes. The normal htm pages are OK.

View Replies !
Install Php4
I have installed php4 on my linux server,and all the process is so smooth,but when I write a php file only content a single sentence of <? phpinfo ?>,the system tells me the version of the php is 3.0.15,why?At the same time the php cann't connect ot mysql.

View Replies !
Reddhat 7.1 & Php4
Problem: the file phpinfo.php always showed the script line <? phpinfo(); ?> in redhat 7.1. But:

1. php works in window 2000
2. it also works in win98
3. it also works in a modified redhat 7.1 where I installed apache+mysql+php myself.

View Replies !
PHP LIB Works With PHP4?
I want to install phplib but found "PHP 4 is still in beta. We do not support deployment of this library with beta software." in phplib installation manual.

Does it mean that I have to go back to php3? Have anyone have positive experience installing phplib on php4? After I notice this problem. I tried to look up the answer in the web, and found only one negitive answer:

- - - -
I did and mailed it to php4-beta. If I install a build of
PHP4 and the php.ini-dist distributed with PHP4, I get the
core as soon as I either define a doc_root or an
auto_prepend_file, no matter what I do.
Kristian
- - - -

But it is in php4 beta though. So, I don't dare to go any further because I'm really new to php.

View Replies !
Connecting To MS-SQL Using PHP4!
I am trying to connect to our NT based MS-SQL server from my remote linux box, i have a RH linux 6.2 plat, with PHP4.0.3, using sybase ase libs, i compiled it like the faq says, configured it, set up the interface files, but i get the following error:

Fatal error: Call to undefined function: mssql_connect()in /usr/local/apache/htdocs/mssql.php on line 4

So i havent got to actually be able to connect to anything being, its saying function isnt supported.

View Replies !
PHP4.0 On Unix
Can anybody see why the following code wouldn't work on a Unix /Apache platform when it works fine in IIS5.0 on windows? Is there a problem with reading the querystring and passing it to the HTTP variable?

<?
session_start();
$strPage = $HTTP_GET_VARS["page"];
if (isset($logged) == true && $logged == 1){
header("Location : ".$strPage.".php");}
else{
header("Location : passwordcheck.php?page=".$strPage);}?>

View Replies !
PHP4 And This Function
function query($query, $return = false)
{
$fetch = mysql_query($query, $this->connection) or
die2(mysql_error($this->connection));
if($return)
return $fetch;
}

mysql_error(): supplied argument is not a valid MySQL-Link resource

the line that begins with $fetch is my problem. This was originally a
PHP5 script that I am retrofitting.
The $query is used all over, and it is really gumming things up.

View Replies !
Php4 And Linux
I'm running Red Hat linux 5.2 on my server. I'm able to run php3 fine on it. I was told that i couldn't run php4 on red hat linux 5.2. I dont think this is true, but would like to know. I don't think the person knew what i was talking about, but i wanted to make sure since i want to upgrade to php4.

View Replies !
Php4.3.1-installer
im not sure what my SMTP server would be, i think i would something like this www.geocities.com/user-name but im still not sure.

View Replies !
Parsing XML In Php4
I did the parsing XML and it works on my computer (PHP5), but as usual
it doesn't on the clients server (PHP4):

<?php
error_reporting(E_ALL);

$doc = DOMDocument::loadHTML("playlist.xml");
var_dump($doc);

$aSongID = array();
$aSongName = array();
$aSongPath = array();

$songs = $doc->getElementsByTagName("Song");

foreach($songs as $song){
array_push($aSongID, $song->getAttribute("ID"));
array_push($aSongName, $song->$song->nodeValue);
array_push($aSongPath, $song->getAttribute("URL"));
}
var_dump($aSongID);
?>

It just displays the blank page with no errors, so i can't figure out
what is it.

View Replies !
PHP4 Installation
I have installed PHP4 many times with no problems, but this time im stuck. The system is Windows XP Pro SP1, it was just installed fresh. Web server software is Visnetic WebSite Pro, Latest build. PHP v4.3.2. Everything installs fine as far as i can tell and I setup all the needed settings in the web server.

When ever I try to use PHP files on my server all I get is internet explorer saying the page cannot be displayed. I dont understand what I have done wrong, its the same setup I always use, same for the settings.

View Replies !
Use PHP4 Dom XML In PHP5?
Is it just me... Or is PHP5 XML very limited?
Or am I missing something very obvious?
Any way to use PHP4 Dom XML in PHP5?
Does anyone know why support for it was dropped?

I have following code I need to have replaced:

PHP4
$eir_dom = domxml_open_mem($eir_padfile_content);
$eir_root_node = $eir_dom->document_element(); // = root element

PHP5
$eir_dom = new DOMDocument;
$eir_dom->loadXml($eir_padfile_content);
// how do I set $eir_root_node ?

PHP4
.... $nodes = $cur_root_node->child_nodes();
.... if ($test_node->node_name() == $next_node_name_to_find) {
PHP5
// child_nodes(); node_name()

PHP4
.... if ($node_child->node_type() == XML_TEXT_NODE) {
$node_child->set_content($new_content);
break;
}
PHP5
// set_content, node_type()

View Replies !
PHP4.3.4,IIS,MySQL ...
Is it possible to run PHP with IIS and MySQL instead of with Apache? If it
does, how do I make IIS recoqnize PHP modules etc...?

View Replies !
Php4 The Future
I am studing perl at the moment for fun and will be done in a month or two but i want to now is PHP4 easy if you now perl???? I want to leard something new, the best in web development where should i go?

View Replies !
.php Or .php3 Or .php4
With the advent of php4, which extension should we use. A lot of php3 pages use the .php3 extension, but by deafault the extension in the apache httpd.conf is .php. Should we just adapt .php4 or use .php to make sure future upgrades don't cause any issues with already existing code. I would welcome any thoughts.

View Replies !
Where Is PHP4 Documentation?
Where can I find a copy of the PHP4 documentation online?

View Replies !
Debugging PHP4 With Dbg, Gdb, And Ddd
I want to create a debugging environment for PHP. I running Debian
Woody and installed PHP4 from Debian's packaging system.

I downloaded precompiled DBG from the webside and placed dbg.so in the
same directory as mysql.so, Since MySQL works under PHP, I'm assuming
I've got the right directory. I've updated php.ini per the DBG website.

phpinfo() reports:

1. --disable-debug was part of the ./configure command.
2. ZEND_DEBUG=disabled, but the report does indicate that dbg is part
of the Zend engine setup.
3. In the section on dbg, it reports dbg version 2.11.23, linked as a
shared library; profiler compiled,enabled; debugger.enabled=on; etc.

If I want to debug with dbg and gdb, do I have any options other than to
recompile PHP omitting the "--disable-debug" switch?

Once I do (or don't do) that, how does one hook gdb into dbg?

How do most PHP developers who don't own a commercial IDE debug their
programs?

View Replies !
PHP4->PH5 Tutorial
Seen that support for PHP4 will be dropped at the end of the year I was
thinking that maybe now might be a good time to start moving things.

Is there a tutorial as to what I need to look out for?

And, Could I run both version on my test server? Or do I need to have
to Apache servers running?

View Replies !
PHP4 For Unix ?
I need to run PHP4 on an Unix Server (with IBM AIX). Do I need a special version or special binaries ? Or can I use the files from URL ? ARE there actually any other versions (for other OSs) available (especially for IBM AIX) ? Or has anybody ever installed PHP4 on IBM AIX ?

View Replies !
Installing PHP4 On PWS?
Is it possible to use the PHP4 DLLs with the MS Personal Web Server, or is IIS absolutely necessary? I ask because ASP pages can be served with PWS (using an ASP.dll file), so it seems the same should be possible with PHP. Unfortunately, I have seen no info to support or deny this hypothesis...

View Replies !
Functions In Php4.3 Different Than 4.2?
i upload a website in php that includes files where some functions are defined. it's workin on my local box but on the remote machine the functions are not recognized. so what i get is ...unknown function blahblah in line...? on my box php4.2 i guess on the remote machine 4.3 .

View Replies !
PHP4 Vs 5 Programming
Since PHP5 classes use the __constructor() method, and PHP4 still
requires the classname as constructor, is there an easy way to
incorporate both in my class definitions so the class is usable in both
versions?

I know php5 will look for an old style constructor if there is no
__constructor definition, but I am convinced this will be deprecated in
future versions...

View Replies !
Php4 End Of Life
How long will PHP4 be supported ? When is PHP4 end of life scheduled ?

View Replies !
PHP4 Dom XML To PHP5 XML
Can anyone point me to a guide or something for conversion?
I tryed
http://alexandre.alapetite.net/doc-...5/index.en.html
but it doesn't work (not all parts anyway) - and as I can't find a
working IDE/debugger combination I can't currently figure out why.

I need to translate following code:

PHP4
$eir_dom = domxml_open_mem($eir_padfile_content);
$eir_root_node = $eir_dom->document_element(); // = root element
PHP5
$eir_dom = new DOMDocument;
$eir_dom->loadXml($eir_padfile_content);
// need equalant of: document_element();

PHP4
.... $nodes = $cur_root_node->child_nodes();
.... if ($test_node->node_name() == $next_node_name_to_find) {
PHP5
// need equalant of: child_nodes(); node_name()

PHP4
.... if ($node_child->node_type() == XML_TEXT_NODE) {
$node_child->set_content($new_content);
break;
}
PHP5
// need equalant of: set_content, node_type()

View Replies !
Set Timezone With Php4
My server is in the US and I want to set a different timezone (GMT
+7), so that I can have an appropriate time for my country. How to do
this in php4?

View Replies !
Gd2 With Gif Support In Php4
I'm trying to install gd2 with gif-support as an extension with php4.
I compiled the patched version of gd2 - fine. I compiled php4 with
gd=shared - fine. I installed it and restarted apache and I get:
undefined symbol: gdImagePngCtx
I recompiled php4 and included gd and everything works fine. But as
soon as I compile gd2 as shared things mess up.
I've searched 2 days for a solution, but didn't find anything.

View Replies !
Mysqli With Php4
Is it at all possible to install the mysqli extension into PHP4?  Or would I have to upgrade to PHP5?  I just want to be able to use mysql's stored procedures without upgrading to PHP5.

View Replies !
Anyone Got A SHA-256 Function For PHP4?
Been trying to make sense of the SHA-256 algorithm for days now, but the specification just doesn't make any sense. I've found a few classes when Googling about but ideally I just need a standalone function. I found this pseudocode on the Wikipedia article but I can't make much sense of it really! Code:

View Replies !
XML Validation In PHP4
I need to write a client for a web service that sends XML file as a response which I gave to validate.

Is there a way to validate a XML file against some .XSD schema in PHP4? Something similar to DomDocument class in PHP5

View Replies !
OOP Class (PHP4)
I have a bit problem understanding something, i am studying a code and i bumped into something that i am having difficulties understanding and getting info from the manual.

On a script, a class function was referenced thus:

@$AppUI->getVersion()

I do undestand that quite well but the following is a reference to the same class which got me off-balance:

$AppUI->_('variable') (p.s. it is actually part of an echo statement)

Pls, what does this mean and pls help differentiate the two codes.

View Replies !
Simplexml_load_file + PHP4
Is there a way i can load an XML file into an object with PHP 4.4.1?

View Replies !
PHP4 Vs PHP5
I had php script that used to work with PHP 4.3.4 but stop working as soon as I use the PHP5RC1? Are there list differences that is deprecated/removefrom PHP4.3.4?

View Replies !
DomDocument In PHP4.3
I used DomDocument, but it is supported by PHP5 only. But my server is in PHP4.3. I tried domxml functions. But none of the functions are recognized. What option do I have?

View Replies !
Php5 Or Php4 Sql
my previous php applicaiton written in php4 couldn't work. I see is a blank screen, example when i go to localhost/xyz/index.php.

View Replies !
PHP4 Or PHP5?
I'm having a bit of a dilemma, shall i update my software (which is increasing using OOP) to php5 and loose my RHEL compatability, or stick with php4?

View Replies !
Using PHP4 Or PHP5
As I mentioned earlier (in a posting to the PHP mailing list), I am
putting a team together to create a web-based RPG, different from the
one I am currently playing. Would it be better to use PHP4 with it's
strong developer base, or the new PHP5 which is more object oriented
an in my opinion would be easier to keep the game up to date?

View Replies !
Snmp On Php4
anybody, please. When a try install php4 with command : ./configure --prefix=/usr/local --with-mysql --with-apxs=/usr/sbin/apxs --with-openssl --with-sockets --with-snmp --with-zlib --with-gd --with-session --with-pcre,

I have this error:

/usr/local/src/php-4.3.9/ext/snmp/snmp.c: In function `netsnmp_session_set_sec_protocol':
/usr/local/src/php-4.3.9/ext/snmp/snmp.c:777: error: `usmAES192PrivProtocol' undeclared (first use in this function) .........

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved