[PHP] getimagesize with image in database
Hi, I'm trying to get an image size from an image in a database. here's my code $imagesize = getimagesize(http://domain/image.jpg); echo $imagesize[3]; but it returns nothing. If I use a local file, without http it works. I have php 4.0.6 any suggestions. Thanks, Chuck
Re: [PHP] getimagesize with image in database clairifation
in my example I'm not pulling from a db. It does not even work like I have it in my example though. Thanks, Chuck - Original Message - From: "Chuck Barnett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 01, 2002 11:54 AM Subject: [PHP] getimagesize with image in database Hi, I'm trying to get an image size from an image in a database. here's my code $imagesize = getimagesize(http://domain/image.jpg); echo $imagesize[3]; but it returns nothing. If I use a local file, without http it works. I have php 4.0.6 any suggestions. Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP on Cobalt
PHP 4.0 comes on the RAQ4i chuck - Original Message - From: "Jochen Kaechelin" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Wednesday, February 28, 2001 6:57 PM Subject: [PHP] PHP on Cobalt > does anybody know which versions > of PHP are installed on a CobaltRAQ3 or CobaltRAQ4 > when you buy a new one? > > -- > Ihr WEBberater > Stuttgarter Str.3, D-73033 Göppingen > Tel. +49(0)7161-929594 - Fax. +49(0)7161-929598 > http://www.wa-p.de ** mailto:[EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] upgrade problem
Hi, I have been running 4.0.3 or so and I was upgrading to 4.1.1. I also upgraded gdlib to 1.8.4. I compiled php with jpeg support and gd support everything made and compiled ok. when I restart apache I get this: Setting up Web Service: Syntax error on line 58 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: gdImageCreateFromGif to get apache running again I have to copy my backup libphp4.so. I know it probably has something to do with an older version of gdlib but I'm not sure. My box is a Cobalt RAQ4. If anyone has any ideas please help :) Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] question about switch function
Hello, I am trying to find out if a string is in a line being read from a file. I should use strstr for this I am pretty sure. I want to do something like this: switch(strstr($line, case argument)) but I don't know if it is possible. For example, I am looking for Zip in a line but it will not find it using the code below. Any suggestions? I know I am being as clear as mud on this :) $fd = fopen("mls1.txt", "r"); while(!feof($fd)) { $line=fgets($fd, 4096); switch($line) { case "Zip": echo "found zip"; //$line2=fgets($fd,4096); $zip=$line; break; case "Remarks": //$line2=fgets($fd,4096); $neighborhood=$line; break; case "Taxes": //$line2=fgets($fd,4096); $address=$line; break; } } fclose($fd); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] strip spaces from inside string
Say I have a string "xyz abc def" and I want to remove all of the spaces withing the string to create a new one. What's the best way? Thanks, ChuckB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] sorting data from a field
Hello again :) I have a db field that holds the first and last name of a person. Is there a way to sort by the last name in that field? The whole reason for this is to populate a select box sorted by last name. I don't want to go back and create a separate field if I don't have to. Any help is appreciated. Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP based associate program software
Does anyone know of a PHP/mysql based associate program software solution. Thanks, Chuck
[PHP] php based affiliate program software
Does anyone know of any php based affiliate program software developed or being developed. I'm looking to either purchase one, or develop my own. Thanks, Chuck Barnett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] html parsing question
Hi I have a question about parsing a page on another server to grab some headlines. I want to search down the page until I find a string "-headlines-" then I want to grab everything between the next pair of tags. Anyone have a quick solution? Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] fopen by URL is disabled, is there another way of reading a remote webpage?
Hi, my new server has fopen by url disabled. My ISP doesn't want to turn it on. So is there a way to do an equivilant function some other way? I need to read a remote webpage and manipulate it. Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Best way to do "Last 3 Items Viewed"
Anyone have any code snippits that would allow me to do a "Last 3 Items Viewed" like on ebay? Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OT probably- Resource id# shows up in select box.
Pardon for the OT but what would cause "Resource id #"x to show up in my select box from a select box populated from a database? Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] OT probably- Resource id# shows up in select box.
Sorry to reply to my own question... This only happens in Netscape. 4 chuck - Original Message - From: "Jason Murray" <[EMAIL PROTECTED]> To: "'Chuck Barnett'" <[EMAIL PROTECTED]>; "PHP General List" <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 8:31 PM Subject: RE: [PHP] OT probably- Resource id# shows up in select box. > > Pardon for the OT but what would cause "Resource id #"x to > > show up in my select box from a select box populated from a database? > > You're probably echo()'ing your database connection resource, instead > of the actual value you've pulled from the database. > > Jason > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] OT probably- Resource id# shows up in select box.
yes, I was echoing :) dumb me - Original Message - From: "David Harrison" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 8:33 PM Subject: RE: [PHP] OT probably- Resource id# shows up in select box. > Probably printing the result of a DB call somewhere accidentally. > > ie: > $dbh = mysql_connect($host,$user,$pass)); > echo $dbh; > > would do that. > > --dave > > > -Original Message- > > From: Chuck Barnett [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 31 January 2001 12:34 PM > > To: PHP General List > > Subject: [PHP] OT probably- Resource id# shows up in select box. > > > > > > Pardon for the OT but what would cause "Resource id #"x to > > show up in my > > select box from a select box populated from a database? > > > > Thanks, > > Chuck > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] today and yesterday (finding them)
$today = getdate(); $mon = $today[mon]; $mday = $today[mday]; $year = $today[year]; $text=sprintf("%s-%s-%s", $year, $mon, $mday); $date=$text; This code gets me today in the form -00-00 What do I need to do to get yesterday in that form? Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] job search/posting software
Does anyone know of any good software for creating a job posting/search service? Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]