Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-08-04, 11:23 PM
Junior Member
 
Join Date: Aug 2005
Posts: 3
jvandal
Default

I have picure in a separate folder from my program.
I am using this statemant that works if the picture is in the same folder as the program. This is the statement
$item_image = mysql_result($get_item_res,0,'item_image');

I don't know how to change the directory in the statement. I have changed the php.ini file to reflect other folders, but it doesn't affect this statement.
Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 2005-08-05, 12:52 AM
Senior Member
 
Join Date: Dec 2004
Posts: 199
strasm is an unknown quantity at this point
Default

you have to change your path:

Code:
$item_image = "/path/to/image/". mysql_result($get_item_res,0,'item_image');
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.