[SOLVED] PHP Images
location: ubuntuforums.com - date: June 24, 2008
I need to display images on a template. It displays the names but not the image. Here is the code:
<?
// Strip out all html in description for short descriptions
$description = strip_tags($row[description], '');
// Now limit the processed description tag to only 200 characters
$description2=substr($description, 0, 200);
?>
<table border=0 cellpadding=2 bgcolor=#ffffff align=center cellspacing=0 width=100%>
<TR>
<TD align=right width=12% bgcolor=#ffffff valign=top>
<a href="product.php?skew=<? echo $row[skew]; ?>">
<img src="http://www.evitamins.com/images/products/",""<? echo $row[image]; ?>&sharpenvalue=&Rotate=0" border="0" alt="<? echo $row[name]; ?>" align="left"></A>
</TD>
<TD align=left width=88% bgcolor=#ffffff valign=top>
<a href="product.php?skew=<? echo $row[skew]; ?>"><? echo $row[name]
[SOLVED] PHP code not loading error 500 and a white screen blocking IPa
location: linuxquestions.com - date: March 13, 2013
Using the information I found here, I am trying to block all countries except the US.
Code:
[SOLVED] PHP: Oracle *and* SQL
location: linuxquestions.com - date: October 3, 2012
Hi.
I've been handed a Linux (2.6.18) server running Apache(2.2.3)/PHP(5.3.16) that can successfully connect to and retrieve info from an Oracle database. I have confirmed all of this.
I now need to include a local mysql database in the mix. Mysql(5.0.77) is installed and have re-compiled PHP thus;
Code:
[SOLVED] php.ini displayerrors = Off NOT respected
location: linuxquestions.com - date: March 18, 2010
I have squirrelmail installed on my webserver. So When I'm checking my mail, I get the following errors (Notices and Warnings):
Code:
[SOLVED] PHP cli scripts not running in background, works on other distro's
location: ubuntuforums.com - date: November 10, 2008
For some reason I am unable to run PHP cli scripts in the background (or from a cron job or a log-on script). On other Linux distro's this works fine, but on Ubuntu the process immediately enters a 'stopped' state.
This is a HUGE problem for me; I'm developing this for a client and we're quite a way into the project, and so far Ubuntu has been a great platform for it, but this is a major showstopper. I so totally need to resolve this or find a work-around. I already tried wrapping the PHP script in a regular bash script by adding a #!/usr/bin/php on top and running it as a shell script from the command line, but that didn't solve anything. Google tells me that this has occurred on Debian-based distro's before with previous PHP versions, and that it seems to have something to do with libraries, but the solution so far escapes me.
All suggestions would be appreciated!
Ubuntu version:
Linux 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux
PHP version:
[SOLVED] PHP segmentation fault, .dynamic section "libcrypto.so.6" is not at the expected addr
location: linuxquestions.com - date: December 5, 2011
Hi,
I hope this would be the right topic/thread for my trouble.
I have an open source CRM vTiger installed on 'server' (home computer, running CentOS 5.4, PHP, MySQL, Apache) and in there a script to execute mail checking.
That 'script' produces an error
Code:
[SOLVED] PHP FastCGI segfaults APC's fault
location: ubuntuforums.com - date: May 18, 2011
I recently migrated my server from Slicehost to Linode and now I get seemingly random FCGI segfaults like this:
Code:
kernel: php-cgi[27359]: segfault at 4c ip PTR sp PTR error 6 in php5-cgi[40000
0+OFFSET]
EDIT: backtrace has been removed.
Initially there was some suhosin stuff in the backtrace, so I removed php5-suhosin from the system, but it still crashes. At this point I don't really know where to look next, since the stack seems 99% bogus: especially the apparent call to main(SHORT_MAX, NULL).
Both old and new machines were/are 64-bit Lucid installs, up-to-date, using the standard debs (lucid-security & lucid-updates enabled). However, I already canceled the old server, unaware of this issue, so I can't double-check its logs.
It's configured as: the internet -> lighttpd,mod_fastcgi -> php5-cgi = PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch (cgi-fcgi) (built: May 3 2011 00:45:34).
uname -a gives me:
Code:
2.6.38-x86_64-linode17 #1 SMP Thu Apr 28
[SOLVED] PHP File hosted locally in /var/www/html shows blank in browser
location: linuxquestions.com - date: November 14, 2011
Hey guys,
I just installed PHP and Apache on my Fedora Core 15.I wrote a simple php file in the /var/www/html folder
and changed the permissions to 644 using chmod from the terminal.When I opened the file in the web browser, it showed a blank page with no HTML Tags. Heres the .php file.
PHP Code:
[SOLVED] PHP Data/Timezone Problems, Slackware 14.0, php5.4.7x86641
location: linuxquestions.com - date: October 23, 2012
I have a PHP application (PHPGedView) that yammers at me:
Quote:
[SOLVED] PHP dynamic image resize & arrays?
location: linuxquestions.com - date: October 25, 2013
I'm sure this will show off my embarassingly complete lack of PHP skill, but I'm struggling with this code. I received a tip a while back on how to resize images on the fly. Now I'm trying to incorporate that into arrays, and it isn't returning any images. I'm sure the structure is wrong, but I don't know how to fix this. I'd greatly appreciate any pointers.
Thank you!!!!
Code:
please wait...
Page: 1 2 3 4 5 6 7 8 9 10