[PHP] Re: using strcmp()

2003-03-16 Thread Justin Garrett
=strcmp($firstword, $secondword); Justin Garrett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Does PHP supports threads?

2003-02-27 Thread Justin Garrett
PHP does not support threading. Depending on what you're trying to do you may find the process control functions useful http://www.php.net/manual/en/ref.pcntl.php Justin Garrett C. F. Scheidecker Antunes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I have a few

[PHP] Re: line number

2003-02-25 Thread Justin Garrett
http://www.php.net/manual/en/language.constants.predefined.php Justin Garrett Jacob R Chandler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What function can I use to find out the current line number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Problems with SQL queries in PHP script

2003-02-08 Thread Justin Garrett
http://www.php.net/manual/en/function.addslashes.php Justin Garrett Mike Hilty [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I am running into an issue where when a user inputs an apostrophie ' into the textarea section of my form, it will

[PHP] Re: question about quote and double-quoted strings

2003-02-08 Thread Justin Garrett
http://www.php.net/manual/en/language.types.string.php Just the way ' and are defined. understands more escape sequences then '. Justin Garrett Duncan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, i am just adding some mail() functions to m

[PHP] Re: Data Structures

2003-02-08 Thread Justin Garrett
You'd create a linked list in PHP just like you would in most languages, however IMHO it's best just to stick with PHP arrays. They grow dynamically and are so easy to work with. There is an ADT extension scheduled for PHP5 http://www.php.net/~sterling/adt/ Justin Garrett Laborda [EMAIL

[PHP] Re: Class Interfaces

2003-02-08 Thread Justin Garrett
Nope. You're stuck with straight single inheritance for now. Justin Garrett Laborda [EMAIL PROTECTED] wrote in message 005201c2cfe9$47c704b0$ad629c40@galaxy">news:005201c2cfe9$47c704b0$ad629c40@galaxy... Hello, I have a question.. Does PHP have support for Class Interfaces dec

[PHP] Re: mysql auto increment question

2003-02-07 Thread Justin Garrett
http://www.php.net/manual/en/function.mysql-insert-id.php Justin Garrett Van Andel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] m... I have an application that updates two MySQL database tables. One table has an auto_increment id field. I need to use this id to link to an entry

[PHP] Re: instantiating objects

2003-02-06 Thread Justin Garrett
value) Example 5 is the same as 3 except that it assigns a reference of the value returned from the Mail class method factory() to $mail_object. Justin Garrett Beau Hartshorne [EMAIL PROTECTED] wrote in message 01c2ce00$d19797d0$6401a8c0@laptop">news:01c2ce00$d19797d0$6401a8c0@laptop

[PHP] Re: passing variables and functions between a base class and subclass

2003-02-06 Thread Justin Garrett
?php class base { var $a; function hello(){ echo hello; } } class sub extends base { function hi(){ $this-a = hi; $this-hello(); } } $foo = new sub; $foo-hi(); echo $foo-a; ? Justin Garrett Electroteque [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Include directoive on PHP.

2003-02-06 Thread Justin Garrett
Edit php.ini and add the pear directory to your include_path or use ini_set to set your include_path in your script: http://www.php.net/manual/en/function.ini-set.php Justin Garrett Harring Figueiredo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: php headers already sent error.

2003-02-06 Thread Justin Garrett
http://www.php.net/manual/en/faq.using.php#faq.using.headers-sent Justin Garrett Chris Winters [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Im SO CLOSE! Welll to start I had everything running FINE (MySQL, Apache, and PHP) until I installed STU

[PHP] Re: OOP confused

2003-02-05 Thread Justin Garrett
class one{ var $prev; } class two{ var $head; function two(){ $this-head = new one(); $this-head-prev = NULL; } } Change prev which is in head which is in this to NULL. Justin Garrett Michael P. Carel [EMAIL PROTECTED] wrote in message 004001c2cd77$6af2e220

[PHP] Re: New as of today

2002-08-29 Thread Justin Garrett
then the following will work: while (!feof($zFile)){ $buffer = fgets($zFile, 4096); echo a href=test.php$buffer/abr; } Justin Garrett Stu9820 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Im new to PHP (came from ASP). I'm trying to make pictures (.jp

[PHP] Re: AOL problem with remote IP address

2002-08-28 Thread Justin Garrett
Yup, AOL's proxy servers do this. Justin Garrett Joseph Szobody [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In a portion of a website, I have implemented user authentication and management using sessions. When a user first logs in, the $REMOTE_ADDR i

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Justin Garrett
addresses' Justin Garrett Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I haven't heard about address' changing midway through a session (ie, without reconnecting), but it's worth pointing out that there will be a few other reasons why th

[PHP] Re: Need example of Next 5

2002-08-26 Thread Justin Garrett
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#SEL ECTSELECT * FROM table LIMIT 5,5; # Retrieve rows 6-10 SELECT * FORM table LIMIT 10,5; # Retrieve rows 11 - 15Justin GarrettPax [EMAIL PROTECTED] wrote in message

[PHP] Re: Need example of Next 5

2002-08-26 Thread Justin Garrett
Let's try that again. SELECT * FROM table LIMIT 5,5; # get rows 6 - 10 SELECT * FROM table LIMIT 10,5 # get rows 11 - 15 Justin Garrett Hi, I am looking for an example in php/MySql dealing with Next 5 type of queries ..does anyone have any links? Thank you for your help Pax

[PHP] Re: Only show certain files in directory

2002-08-25 Thread Justin Garrett
There are several regular expression and string matching functions you could use. http://www.php.net/manual/en/ref.strings.php http://www.php.net/manual/en/ref.pcre.php http://www.php.net/manual/en/ref.regex.php Justin Garrett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">new

[PHP] Re: yesterday's day of week

2002-08-17 Thread Justin Garrett
Get the current timestamp and subtract a day's worth of seconds. date('D', time() - 24 * 60 * 60); Justin Kenton Letkeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have been able to get yesterdays date eg. $yesterday = date('d')-1; result is 17 but

[PHP] Re: Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-16 Thread Justin Garrett
http://www.php.net/ChangeLog-4.php As of version 4.2 register_globals defaults to off. You can turn it on in your php.ini file, but it is recommended to use the new super global arrays instead. Justin James Daily [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: !== (was Re: [PHP] how many files are in a directory)

2002-08-14 Thread Justin Garrett
compare value but type as well. Justin Garrett Chris Boget [EMAIL PROTECTED] wrote in message 07bb01c243c2$1b3045a0$8c01a8c0@ENTROPY">news:07bb01c243c2$1b3045a0$8c01a8c0@ENTROPY... // Note that !== did not exist until 4.0.0-RC2 I took a quick look at the docs to find out what !== meant

[PHP] Re: ClibPDF

2002-03-04 Thread Justin Garrett
http://www.php.net/manual/en/install.configure.php --with-cpdflib[=DIR] Include cpdflib support (requires cpdflib = 2). DIR is the cpdfllib install directory, defaults to /usr. Justin Garrett Don [EMAIL PROTECTED] wrote in message news:000c01c1c3d5$03b92440$[EMAIL PROTECTED]; Does any one

[PHP] Re: Using strings in switches

2002-02-05 Thread Justin Garrett
Try it. But to answer your question, yes. Don't forget to put quotes around your strings in the case statements. switch($name){ case beesly: break; } Phantom [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The manual shows that you can use

Re: [PHP] relative path vs. INCLUDE() !!!!!

2001-12-24 Thread Justin Garrett
There is also include_path in the php.ini file. Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This is a kind of a shit happens answer -- ummm... nope, there's no workaround. The only workaround is providing a global path variable and use that

[PHP] Re: How to use Clibpdf

2001-11-03 Thread Justin Garrett
Clibpdf is not complied by default as a Shared Object. Once you compile it in you should just be able to use it. -- Justin Carlo loiudice [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to install Clibpdf, but when I compile the source code, It

[PHP] Re: Problem redirecting

2001-10-27 Thread Justin Garrett
From the manual: Remember that the header() function must be called before any actual output is sent, either by normal HTML tags blank lines in a file, or from PHP. This is the cause of your error. Something is sending output before your call to header(); -- Justin Garrett Don [EMAIL

[PHP] Re: cant redeclare class.....

2001-10-20 Thread Justin Garrett
Move include(class.jm_sms.php) outside of the loop. -- Justin Garrett Sagar [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I'm using jm_sms class in mysql dowhile($myrow=mysql_fetch_array($result)) loop. the class is running fine for t

[PHP] Re: how many day between the two time format

2001-09-30 Thread Justin Garrett
If both times are UNIX timestamps $seconds_per_day = 60 * 60 * 24; $dif = $today - $last_day; $days = (int)($dif / $seconds_per_day); -- Justin Garrett Yang [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i want to check about how many day between the

[PHP] Re: Troublesome complex fetching from database

2001-09-30 Thread Justin Garrett
]; for(reset($schools); $school_name = key($schools); next($schools)){ echo $school_namebrbr; $teachers = $data[$school_type][$school_name]; $count = count($teachers); for($i = 0; $i $count; $i++){ echo $teachers[$i]br; } } } -- Justin

[PHP] Re: displaying certain columns

2001-09-30 Thread Justin Garrett
$result = mysql_db_query($dname, $sql); $row = mysql_fetch_object($result); echo $row-field_name; -- Justin Garrett Melih Onvural [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i have a database and it randomly selects one piece of data from a table of

[PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Justin Garrett
Maybe something similar to this? function test($td){ $global = global \$$td._error, \$$td._ok;; eval($global); $set = \$$td._error = \ERROR\; \$$td._ok = \OK\;; eval($set); } test(foo); echo $foo_error $foo_ok; -- Justin Garrett Martin [EMAIL PROTECTED] wrote in message

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Justin Garrett
But how would you use this to create new global variables with $td as the prefix? $td = foo; then we want new global variables $foo_error and $foo_ok created. -- Justin Garrett Jason G. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... function MyFunc