[PHP] getimagesize with image in database

2002-09-01 Thread Chuck Barnett
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

2002-09-01 Thread Chuck Barnett
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]

Re: [PHP] PHP on Cobalt

2001-02-28 Thread Chuck Barnett
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

[PHP] upgrade problem

2002-01-25 Thread Chuck Barnett
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: C

[PHP] question about switch function

2002-02-07 Thread Chuck Barnett
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

[PHP] strip spaces from inside string

2002-03-26 Thread Chuck Barnett
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

2002-03-26 Thread Chuck Barnett
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

[PHP] PHP based associate program software

2001-06-20 Thread Chuck Barnett
Does anyone know of a PHP/mysql based associate program software solution. Thanks, Chuck

[PHP] php based affiliate program software

2001-06-21 Thread Chuck Barnett
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

[PHP] html parsing question

2001-08-03 Thread Chuck Barnett
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

[PHP] fopen by URL is disabled, is there another way of reading a remote webpage?

2004-10-20 Thread Chuck Barnett
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.p

[PHP] Best way to do "Last 3 Items Viewed"

2004-05-14 Thread Chuck Barnett
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.

2001-01-30 Thread Chuck Barnett
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 con

Re: [PHP] OT probably- Resource id# shows up in select box.

2001-01-30 Thread Chuck Barnett
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]> Sen

Re: [PHP] OT probably- Resource id# shows up in select box.

2001-01-30 Thread Chuck Barnett
robably 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 PROTECTE

[PHP] today and yesterday (finding them)

2001-01-30 Thread Chuck Barnett
$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:/

[PHP] job search/posting software

2001-02-05 Thread Chuck Barnett
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 PRO