LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2007, 05:13 PM   #1
myrmidon
Member
 
Registered: May 2005
Distribution: redhat 9 , fedora 5,6,7,DSL,Debian 3, mandrake 9.2 , knoppix 3.8, red hat 7.3
Posts: 38

Rep: Reputation: 15
PHP and GD trouble


Hello all im gettint my head into wall , now

On Fedora Core 5, php 5 with php-gd 5.1.6



$url="http://www.something.com/image.jpg";

i'm using $im = createimagefromjpeg($url);

but the source image cannot be accessed thorough $url,

but if i change the

$url="local/image.jpg";

it works fine !!!


In php.ini allow_url_fopen is ON ..

Any ideas ???

thx
 
Old 06-14-2007, 06:26 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,450

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi

No idea what can be wrong. But here are some things to check:
- Did you restart the web-server after changing php.ini?
- The link does in fact return a Jpeg? The link you posted does not
- Do you get any error message? If not, is error reporting turned on? See http://www.php.net/error_reporting
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php trouble... computer_tom Programming 2 04-20-2006 02:17 AM
having trouble with apache and php mohtasham1983 Linux - Networking 0 04-18-2006 06:01 PM
PHP Trouble to get Array Gerardoj Programming 5 03-28-2005 07:14 AM
PHP Array Trouble Gerardoj Programming 2 05-30-2004 09:53 PM
PHP Trouble Syntax Gerardoj Programming 2 03-30-2004 09:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration