RE: [PHP] Re: Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Joe Sheble \(Wizaerd\)
I've searcded PHPBuilder.com, zend.com, hotscripts.com, and php.net... can't find anything -Original Message- From: _lallous [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 2:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Tracking shipments UPS, FEDEX, etc...

RE: [PHP] Problem with PHP_SELF

2001-09-03 Thread Joe Sheble \(Wizaerd\)
I couldn't help but frown at this message... This is typical of this and hundreds of other lists... instead of learning the language, people just jump in, try to write code, and then when something doesn't work, it's the language's fault... It absolutely amazes me that such a huge number of

RE: [PHP] local time v.s. server time

2001-08-25 Thread Joe Sheble \(Wizaerd\)
-Original Message- From: Don Read [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 8:39 PM To: Joe Sheble (Wizaerd) Cc: General PHP List Subject: RE: [PHP] local time v.s. server time On 25-Aug-2001 Joe Sheble \(Wizaerd\) wrote: My website is hosted

[PHP] local time v.s. server time

2001-08-24 Thread Joe Sheble \(Wizaerd\)
My website is hosted with a provider, and there is a three hour difference in timezones, so when saving date and times to the database, they reflect the server time and not my own local time. The clincher is I know I could do some time math and just substract 3 hours, but I live in Arizona, so

RE: [PHP] local time v.s. server time

2001-08-24 Thread Joe Sheble \(Wizaerd\)
- From: Don Read [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 8:39 PM To: Joe Sheble (Wizaerd) Cc: General PHP List Subject: RE: [PHP] local time v.s. server time On 25-Aug-2001 Joe Sheble \(Wizaerd\) wrote: My website is hosted with a provider, and there is a three hour

RE: [PHP] class variables and methods

2001-08-19 Thread Joe Sheble \(Wizaerd\)
?? -Original Message- From: Tom Carter [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 19, 2001 2:19 AM To: Andrew Libby; Joe Sheble (Wizaerd) Cc: General PHP List Subject: Re: [PHP] class variables and methods There was a long discussion on this in a java forum I am part

[PHP] class variables and methods

2001-08-18 Thread Joe Sheble \(Wizaerd\)
I've been doing some reading up on OOP in PHP, and looking at some of the classes available on the web, and I've got what is probably a stupid question. I've seen this many many times.. class someclass { var $somevar = someval; function set( $key, $val ) {

[PHP] different PHP platforms

2001-08-15 Thread Joe Sheble \(Wizaerd\)
I've been using PHP on Linux for about 2 years now, and have absolutely loved it. However, I've recently accepted a full time position developing icky ASP pages, and still use PHP on my own sites. I was wondering about using PHP on WIndows and IIS 5.0. Could somebody using the Windows version

[PHP] regular expressions and mySQL

2001-08-09 Thread Joe Sheble \(Wizaerd\)
I know this would probably be better placed on the mySQL mailing list, but alas I do not subscribe to it and am hesitant to do so to ask one question. Enough PHP users use mySQL that perhaps the answer could be found here. In searching through a text field in a mySQL database, I would like to

[PHP] regular expression database searches

2001-08-07 Thread Joe Sheble \(Wizaerd\)
I know this would probably be better placed on the mySQL mailing list, but alas I do not subscribe to it and am hesitant to do so to ask one question. Enough PHP users use mySQL that perhaps the answer could be found here. In searching through a text field in a mySQL database, I would like to

Re: [PHP] Any plans on fixing performance of file Upload?

2001-05-02 Thread Joe Sheble (Wizaerd)
And how exactly is this the fault of PHP? It's the browser doing the actual upload, all PHP does is receive the file after the browser has uploaded it, sending the name to the script so it knows where it is At 04:25 PM 5/2/01 -0400, Jason Lam wrote: I am wondering if there are any plans

Re: [PHP] why isn't get_browser() not working?

2001-04-30 Thread Joe Sheble (Wizaerd)
You have a browsecap.ini file and it is in the correct location? At 11:04 AM 4/30/01 -0700, elias wrote: hello. i'm trying to detect what browser version is there...i'm using get_browser() as it was documented: $t = get_browser(); var_dump($t); and all i can get like output is: bool(false)

RE: [PHP] count() problem :D

2001-04-27 Thread Joe Sheble \(Wizaerd\)
Alias the count() $query = select count(fld_gender) s sumField from tbl_survey; $result = mysql_query( $query, $dbConnection ); $aRow = mysql_fetch_array( $result ); print( $aRow[sumField] ); Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL

RE: [PHP] List Files

2001-04-19 Thread Joe Sheble (Wizaerd)
exec( "ls -1 help*.*", $arFiles ); foreach( $arFiles as $cFile ) { print( $cFile ); } At 08:44 AM 4/19/01 -0400, Matthew Luchak wrote: $path='/root/helpfiles/'; $dir_handle = opendir($path); while ($file = readdir($dir_handle)) { if ((ereg("help",$file)){ INCLUDE "$path$file";

Re: [PHP] how to scale down image using ImageMagick?

2001-04-19 Thread Joe Sheble (Wizaerd)
I use ImageMagik all the time for thumbnail creations... this doesn't resize the image, it creates a new image, a thumbnail... but the principle is the same $cWidth = 175; $picture_src = "fullSize/somepic.jpg"; $thumb_dest = "fthumbNail/somepic.jpg"; $aImageInfo = getimagesize(

RE: [PHP] Which is better coding style...

2001-04-19 Thread Joe Sheble \(Wizaerd\)
egads... it distracts me to no end to see an if-else block broken up that way... to me seeing if( some expression ) { some action } else { some other action } is the most normal thing in the world. Same goes for the { at the end of the expression, such as for( ... ) { }

[PHP] a different type of mail problem

2001-04-18 Thread Joe Sheble (Wizaerd)
I am using the following function to send out emails via PHP: function SendEMail( $to, $subject, $body ) { $additionalHeaders = "MIME-Version: 1.0\n"; $additionalHeaders .= "Content-type: text/html; charset=\"iso-8859-1\"\n"; $additionalHeaders .=

RE: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Joe Sheble \(Wizaerd\)
Please read again what I wrote OK. In a mysql_connect() it is possible to specify a path to the socket which should be used for communicating with MySQL. Yes. [string hostname [:port] [:/path/to/socket] It's not a question. It is a statement prefecaing the real question, which

Re: [PHP] Date formatting

2001-04-06 Thread Joe Sheble (Wizaerd)
Something I almost always do when pulling dates from a mySQL table is format the date column in the query itself using the mySQL function DATE_FORMAT()... At 01:13 PM 4/6/01 +0100, Matt Davis wrote: Hi I am trying to format a date extracted from my DB. I have run my query and then have used

Re: [PHP] Help w/Error Message

2001-04-06 Thread Joe Sheble (Wizaerd)
In your query you have compid specified twice. If this field is named the same in two seperate tables, preface your fieldnames with the table names... $sql="SELECT fname, lname, users.compid, status, dept, room, bldg, phone, ticket_num, tickets.compid, date_rpt, request_type, hardware, model,

Re: [PHP] scramble the code

2001-04-05 Thread Joe Sheble (Wizaerd)
This isn't quite accurate. WHen a form's method is set to "GET" (which BTW is the form's default method) the variables and their values are passed along the URL. If your form's method is set to "POST" then nothing should get passed along on the URL. If you see all your data in the URL,

Re: [PHP] scramble the code

2001-04-05 Thread Joe Sheble (Wizaerd)
methods. But in your special browser, they must be reveresed because... well... er I can't think of any good reason to reverse these in your special browser... At 10:10 AM 4/5/01 -0400, Scott Fletcher wrote: Well, mine does! Scott ""Joe Sheble (Wizaerd)"" [EM

Re: [PHP] Item in two db tables

2001-04-04 Thread Joe Sheble (Wizaerd)
I'm not 100% certain about this, but I believe you want to look at using a LEFT OUTER JOIN At 11:37 AM 4/4/01 -0400, bill wrote: If I want to find a list of items in one table whose id does not appear in another table, can that be done in one query? I can only figure it out if I use two

RE: [PHP] This PHP list

2001-03-29 Thread Joe Sheble (Wizaerd)
Typically I would never respond to this type of thread discussion, but it's one that gives me a great amount of frustration from time to time. I think this level of frustration stems from the fact that a lot of these 'newbie' questions are even more basic than a PHP newbie should be asking.

RE: [PHP] This PHP list

2001-03-29 Thread Joe Sheble (Wizaerd)
I wouldn't expect a programmer to walk in off the street and try to do graphic design without having any concept of graphic design. I wouldn't expect a mechanic to walk into the kitchen and expect to build a souffle. I wouldn't expect a gardner to walk in and perform brain surgery. And I

Re: [PHP] search safe URLs

2001-03-27 Thread Joe Sheble (Wizaerd)
thanx, I'll be looking these over vigarously... At 05:11 PM 3/27/01 +, Philip Olson wrote: Check out this post : http://marc.theaimsgroup.com/?l=php-generalm=98555149708325 The first two tutorials should help. Btw, no reconfigurations are required. Regards, Philip On Tue, 27 Mar

RE: [PHP] Is this possible? PHP + Javascript

2001-03-26 Thread Joe Sheble \(Wizaerd\)
in the onCLick event of the checkbox call a javascript function. In that function use a window.open() method to open aother browser window, using the open() methods various properties to control how that browser window looks and feels. For the URL for that browser window, make it a PHP script

[PHP] limiting .htaccess reach

2001-03-23 Thread Joe Sheble (Wizaerd)
I'm using an .htaccess file to auto_append and auto_prepend files within a specific directory, and it works great. Unfortunaltely if I create a new sub-directory that doesn't have it's own .htaccess file, it too tries to use the auto_append and auto_prepend values of the .htaccess file from

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Joe Sheble (Wizaerd)
virtual (PHP 3, PHP 4 ) Perform an Apache sub-request int virtual (string filename) Virtual() is an Apache-specific function which is equivalent to !–#include virtual...– in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else

Re: [PHP] get filename?

2001-03-20 Thread Joe Sheble (Wizaerd)
excuse my ignorance here, but is this a configurable options? Anytime I use $PHP_SELF, it strictly the directory and filename.. for example say I have a forum running at www.somedomain.com/forum/index?Message=12 my $PHP_SELF strictly gives me /forum/index.php. I know this for a fact

RE: [PHP] cf to php

2001-03-19 Thread Joe Sheble (Wizaerd)
the PHP equivalent is isset() if( !isset( $url_Page )) At 03:09 AM 3/19/01 -0500, Jack Dempsey wrote: What exactly does that do chris? If you're trying to check and see if there's a file on the server, then you could do something with readdir, is_file, etc...if you want to post what that

RE: [PHP] Can you recommend an ISP with the following?

2001-03-19 Thread Joe Sheble (Wizaerd)
I've found http://www.jtlnet.com to be very good and especially responsive... At 09:09 AM 3/19/01 +, Matt Williams wrote: *PHP4 *MySQL *Telnet access *Decent Support *Preferably a Cobalt server (or one with a VERY good Web-based administrator, most other types of Web

Re: [PHP] Linux/Apache/PHP Windows/IIS/ColdFusion

2001-03-14 Thread Joe Sheble (Wizaerd)
h our network. There is also a basic authentication piece to access the intranet externally through the internet but requires a domain name, username and password. The management feels this is acceptable because there are very few (VERY few) people accessing the intranet this way. "

Re: [PHP] Formatting Dates

2001-03-08 Thread Joe Sheble (Wizaerd)
You could use the mySQL function DATE_FORMAT() in your query string.. SELECT DATE_FORMAT( DateAdded, '%m/%d/%Y' ) as d_Added FROM myDB At 12:52 PM 1/8/01 -0500, stas wrote: Hello, How can I format a date stored in the database in a Date field. It's in this format: -mm-dd I understand

RE: [PHP] populate select box with contents of a file?

2001-03-08 Thread Joe Sheble (Wizaerd)
?php $handle=opendir('.'); echo "select name=image_url"; while (false!==($file = readdir($handle))) { // new code here $cExt = explode( ".", $file ); // and here if ($file != "." $file != ".." ( strtolower( $cExt[1] ) ==

Re: [PHP] Stumped Newbie: Can't get results in db query even though everything checks - what am I missing?

2001-03-08 Thread Joe Sheble (Wizaerd)
I'd start by adding the mysql_error() function in your die() statement... $result = mysql_query($sql,$connection) or die ("Couldn't get results: " . mysql_error()); it might give more information to help you find the problem... At 10:15 AM 3/8/01 -0800, Nicole Lallande wrote: Greetings, I

[PHP] 2 questions about performance...

2001-03-06 Thread Joe Sheble \(Wizaerd\)
Is it in-efficient to use shuffle()? I have a simple 6 element array with 6 strings (URLs to images) and I'm using shuffle() to display all of them in random order upon each page load. The images take a long time (of course is relative, it's mere seconds) but when I remove the call to shuffle,

[PHP] How big is too big?

2001-03-04 Thread Joe Sheble (Wizaerd)
Is there a practical limit one should make on a php file to be included? I'm putting all my global variable declarations and function defintitions into one file to be included across the site. I had thought about splitting them different files based on functionality, but then I thought it would

[PHP] How big is too big?

2001-03-03 Thread Joe Sheble (Wizaerd)
Is there a practical limit one should make on a php file to be included? I'm putting all my global variable declarations and function defintitions into one file to be included across the site. I had thought about splitting them different files based on functionality, but then I thought it would

Re: [PHP] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)
by checking the return value of mysql_num_rows() At 04:32 PM 2/20/01 +, Matt Davis wrote: If my SQL returns no results then i want to redirect to a page saying no results etc but if results are found then I want it to continue on down the script how would i do this. Matt. -- PHP General

Re: [PHP] Variable stores incomplete values...

2001-02-19 Thread Joe Sheble (Wizaerd)
Your question encompasses two parts... the subject says these variables are storing incomplete values and later in the email you state mySQL isn't maintaining the formatting of your data. The first part is possible because your mySQL database field may not be declared big enough to actually

RE: [PHP] Dir? Can I get a dir listing of the current dir my php file is in?

2001-02-17 Thread Joe Sheble (Wizaerd)
Another solutions is: $script_name = getenv("PATH_TRANSLATED"); $dir_name = dirname($script_name); // $arFiles will be an array of filenames exec( "ls -1 $dirname", $arFiles ) foreach( $arFiles as $cFile ) { print( $cFile ); }

Re: [PHP] displaying more than one result

2001-02-16 Thread Joe Sheble (Wizaerd)
it's be a bit more helpful if we can see the code you're using to display your results... At 02:15 PM 2/16/01 +, Matt Davis wrote: I have a php script which runs a query and then outputs the results in to html. The html should repeat itself depending on the number of results. i.e to produce

Re: [PHP] How to make text BOLD

2001-02-16 Thread Joe Sheble (Wizaerd)
what exactly do you mean by it doesn't work... print( "Bsome test/B" ); it's always worked for me... At 09:31 AM 2/16/01 -0600, Nguyen, David M wrote: I want to make my text BOLD using either STRONG/STRONG or B/B but it did not work with PHP. Can someone please advise why not or if there is

Re: [PHP] display mor than one result.

2001-02-16 Thread Joe Sheble (Wizaerd)
you're looping through the all database records, assigning the values to variables, but then you never output the variables until after you exit your while() loop. This is incorrect. Time to read up on database handling in PHP... // psuedo-code $queryResults = mysql_query( $query, $db );

RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Joe Sheble (Wizaerd)
I do lots and lots of count()'s in PHP and have never had any problems... of course, I do it a bit differently than you did.. // I always have these in a top level include $UserName = "noneYa"; $Password = "yeahRight"; $myDatabase = "uhhuh"; $dbConn = mysql_connect( "localhost", $UserName,

RE: [PHP] input type=file

2001-02-16 Thread Joe Sheble (Wizaerd)
to put it simply, you can't... but you could put an input type of text with a link or a button next to it manually, and then on the onClick of either this button or link open a secondary window running a PHP script that reads a particular directory structure with full navigation support. Then

RE: [PHP] input type=file

2001-02-16 Thread Joe Sheble (Wizaerd)
-Original Message- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 4:16 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] input type=file to put it simply, you can't... but you could put an input type of text with a link or a button next to it manually

Re: [PHP] unstable execution of mysql_db_query($db, $myQuery)

2001-02-15 Thread Joe Sheble (Wizaerd)
try using mysql_query( $qQuery, $dbConnection ); At 10:32 AM 2/15/01 -0600, Zhu George-CZZ010 wrote: I am using MySQL 3.22.32 and PHP 4.01PL2, but it seems that mysql_db_query($db, $myQuery) is not quite stable, actually, in my code, it is like mysql_db_query($db, $myQuery) or die "Something

Re: [PHP] How to inverse the date sorting

2001-02-15 Thread Joe Sheble (Wizaerd)
add a DESC to your order by clause... fairly simple SQL syntax, could be picked up from a myriad of SQL references and manuals $sql = "select * from table_name WHERE TO_DAYS(NOW()) - TO_DAYS(date) = 21 order by date DESC"; At 12:14 PM 2/15/01 -0500, Malouin Design Graphique wrote: Hello,

RE: [PHP] recommended PHP/MySQL host

2001-02-14 Thread Joe Sheble (Wizaerd)
Well I don't know about anyone else's experience, but I've been using JTL Networks (http://www.jtlnet.com) for almost 6 months. Granted, that's not a lot of time, but I've been fairly impressed with them. Reasonable rates, a great support staff, and a lot of flexibility... Joseph E. Sheble

[PHP] OOP in web development

2001-02-13 Thread Joe Sheble (Wizaerd)
I've been using PHP for over a year now and have been successfully running three different websites developed with PHP, but I've never done anything with classes or objects. Even when returning data from a mySQL database, I use mysql_fetch_array() instead of mysql_fetch_object(). What am I

Fwd: Re: [PHP] OOP in web development

2001-02-13 Thread Joe Sheble (Wizaerd)
At 03:11 PM 2/13/01 -0500, you wrote: I find the ability to write something once (say a mysql_connect(); statement) and be able to run it on any page just with $db-connect(); is pretty cool. While that may not seem cool, if you some day change a a PHP statement that exists on many

[PHP] RegEx and URLs

2001-01-31 Thread Joe Sheble (Wizaerd)
Either I missed the answer on the mailing list, or it was accidentally skipped, so I'll re-ask... I have a bit of text ( a TEXT field in mySQL ) and there may or may not be URLs in this text. (These URLs are defined as anything starting with http://, mailto:, or www.). Some of these URLs

Re: [PHP] neat html output

2001-01-31 Thread Joe Sheble (Wizaerd)
Write yourself a function that handles it yourself and include it in every page... something such as: function println( $cTextToPrint ) { print( $cTextToPrint . "BR" ); } then in your pages just use println() everywhere... At 08:29 AM 1/31/01 -0600, Mark wrote: I'd like my html

Re: [PHP] neat html output

2001-01-31 Thread Joe Sheble (Wizaerd)
oops, that function declaration should look like: function println( $cTextToPrint ) { print( $cTextToPrint . chr(13) ); } At 07:40 AM 1/31/01 -0700, Joe Sheble (Wizaerd) wrote: Write yourself a function that handles it yourself and include it in every page... something

[PHP] RegEx and URLs

2001-01-30 Thread Joe Sheble (Wizaerd)
I have some text that may or may not contain valid URLs (anything starting with an http:// or a mailto:). Some of these URLs may or may not be contained within a valid A HREF tag. Could somebody help me out with a regex that would find all the URLs that are not already contained in an A HREF

[PHP] RegEx and URLs

2001-01-30 Thread Joe Sheble (Wizaerd)
I have some text that may or may not contain valid URLs (anything starting with an http:// or a mailto:). Some of these URLs may or may not be contained within a valid A HREF tag. Could somebody help me out with a regex that would find all the URLs that are not already contained in an A HREF

[PHP] RE: confused about eval()

2001-01-29 Thread Joe Sheble (Wizaerd)
n, PHP, and mySQL http://www.wizaerd.com ===== -Original Message- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 12:44 PM To: General PHP List Subject: confused about eval() I have searched the archives, php.net and zend.com, and cannot seem to com

RE: [PHP] LOOKING FOR CODE LOCATION IN PHP SOURCE....

2001-01-29 Thread Joe Sheble (Wizaerd)
I don't believe this is a PHP function, but rather a function of the browser if using the INPUT TYPE="file" Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com = -Original Message-

RE: [PHP] PHP/MySQL question

2001-01-29 Thread Joe Sheble (Wizaerd)
// loops through the entire recordset while( $qrResults = mysql_fetch_array( $rQuery )) { print( $qrResults["SomeField"] } // reset the recordpointer to the first record mysql_data_seek( $rQuery, 0 ); Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP,

RE: [PHP] functions????

2001-01-27 Thread Joe Sheble (Wizaerd)
your function declarations must appear before you actually call them. code ... ? function pf() { echo "profile"; } function pal_edit() { echo "pal"; } switch ($action) { case "pf": profile(); break; case "pal": pal_edit();

RE: [PHP] strange PHP/MySQL problem

2001-01-27 Thread Joe Sheble (Wizaerd)
Is it possible that the name field isn't lon enough to contain the full value so is being truncated whereas the description field is long enough... Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com