[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 s

[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 o

[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 ) { $thi

RE: [PHP] class variables and methods

2001-08-19 Thread Joe Sheble \(Wizaerd\)
ading?? > -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 t

[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 we

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

2001-08-24 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: > &

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

2001-08-25 Thread Joe Sheble \(Wizaerd\)
[EMAIL PROTECTED] > Subject: Re: [PHP] local time v.s. server time > > > Hi Joe, > > GMT isn't affected by daylight savings (altough in the UK we are using > British Summer Time at the moment, which is GMT +1), so that's > the constant > you can work from if you

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 peop

[PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-05 Thread Joe Sheble \(Wizaerd\)
has anybody written any routines or functions they'd care to share for parsing the tracking information out of UPS, FEDEX, or other shipping carriers tracking pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

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

2001-09-06 Thread Joe Sheble \(Wizaerd\)
shipments UPS, FEDEX, etc... > > > I think i remember seeing a related topic on PHPBuilder.com > > "Joe Sheble )" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > has anybody written any routines or functions

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

[PHP] confused about eval()

2001-01-29 Thread Joe Sheble (Wizaerd)
I have searched the archives, php.net and zend.com, and cannot seem to come up with an answer as to why this isn't woking... I have the following code snippet stored in a database, and I'm trying to eval it with this line of code: $cVar = addslashes( $qrNews[$cContentField . "Text"] ); eval( ""

[PHP] RE: confused about eval()

2001-01-29 Thread Joe Sheble (Wizaerd)
=== > -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 >

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 Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion, PHP, and mySQL http://www.wizaerd.com = > -Original Message- > From: Tim Meader [m

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,

[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 tag

[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 tag

[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 may

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 . "" ); } then in your pages just use println() everywhere... At 08:29 AM 1/31/01 -0600, Mark wrote: >I'd like my html output

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 s

[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 mi

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

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 a.k.

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 "Someth

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] 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 produ

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( "some test" ); 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 or but it >did not work with PHP. Can someone please advise why not or if there is >another way to do

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 ); wh

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, $Pas

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 wh

RE: [PHP] input type=file

2001-02-16 Thread Joe Sheble (Wizaerd)
m > Pacifier Online - http://www.pacifier.com > > > -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

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 ); } Jo

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] 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 G

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)
Actually this won't work since the actual query never runs try: $sql = "select * from table where bla bla bla"; $rResults = mysql_query( $sql, $dbConnection ); if( mysql_num_rows($rResults) == 0 ) { do this; } else { do this; } At 11:52 AM 2/20/01 -0500, Brian V Bonini wr

[PHP] limiting .htaccess reach

2001-03-23 Thread Joe Sheble aka 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 th

[PHP] search safe URLs

2001-03-27 Thread Joe Sheble aka Wizaerd
In order to use URLs without ? and &, there has to be some re-configuration in Apache, correct? So somebody who didn't have access to httpd.conf couldn't use this methodology? Or if this is completely incorrect, where can I find more info on implementing it strictly in PHP? Joseph E. Sheble

[PHP] testing

2001-01-29 Thread Joe Sheble aka Wizaerd
I haven't received any emails from this list in over 24 hours... is it down or it it me just not receiving them Joseph E. Sheble [EMAIL PROTECTED] Wizaerd's Realm http://www.wizaerd.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

[PHP] Code Optimizer

2001-02-15 Thread Joe Sheble aka Wizaerd
Is there anything that evaluates PHP code and checks for optimization? Not like the Zend Optimizer, but one that checks for things such as variables that were defined but never used, repeated variables, unnecessary statements or constructs? Basically a code cleaner such as C, C++, Java, etc

[PHP] how can I unsubscribe from this

2002-11-08 Thread Joe Reichmuth, PolyTechDev, GTD USA

<    3   4   5   6   7   8