RE: [PHP] help needed on imagettftext()

2005-01-28 Thread Harish Rao K
Hi Marek Kilimajer, Thank You Marek it worked for me also. -Harish Rao K -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 9:19 PM To: Harish Rao K Cc: php-general@lists.php.net Subject: Re: [PHP] help needed on imagettftext() Harish

[PHP] Help with references?

2005-01-28 Thread Jon
This script only outputs the top level. i.e. -/ | - folder1 | - folder2 | - folder3 it should be - / | - folder1 | | | - subdir1 | | | - file1.ext | - folder2 | | | - subdir2 | | | - file2.ext | - folder3 | - subdir3 | - file3.ext I

Re: [PHP] Help with references?

2005-01-28 Thread Jochem Maas
Jon wrote: This script only outputs the top level. i.e. that script has syntax errors. ... $arFiles = array( array['file1']( array( ['path] = array( [0] = 'folder1', [1] = 'subfolder1' [2] = 'file1.ext' ), ['length'] = 5464, ['size'] = 8765 ),

Re: [PHP] Help with references?

2005-01-28 Thread Jon
Here is one that does not throw an error but does not produce the desired results class dir { var $name; var $subdirs; var $files; var $num; var $prio; function dir($name,$num,$prio) { $this-name = $name; $this-num = $num; $this-prio = $prio; $this-files = array();

Re: [PHP] Help with references? again

2005-01-28 Thread Jon
OK, THIS one doesn't throw a syntax error ;) class dir { var $name; var $subdirs; var $files; var $num; var $prio; function dir($name,$num,$prio) { $this-name = $name; $this-num = $num; $this-prio = $prio; $this-files = array(); $this-subdirs = array(); }

[PHP] help needed on imagettftext()

2005-01-27 Thread Harish Rao K
Hello, While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). I have compiled with GD support and all the supporting libraries (Freetype, TTF, jpeg, X11R6 etc). What am I missing? Below is the configure command that I have used.

Re: [PHP] help needed on imagettftext()

2005-01-27 Thread Marek Kilimajer
Harish Rao K wrote: Hello, While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). I have compiled with GD support and all the supporting libraries (Freetype, TTF, jpeg, X11R6 etc). What am I missing? Below is the configure command

Re: [PHP] help needed on imagettftext()

2005-01-27 Thread Richard Lynch
Harish Rao K wrote: While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). I have compiled with GD support and all the supporting libraries (Freetype, TTF, jpeg, X11R6 etc). What am I missing? Check the log files from in the

[PHP] Help with file not writing

2005-01-25 Thread Joey
I'm not too good with classes, in the below class I can get the hit counter to write to the hit counter file, but I can't get it to write the log file, I know security is done correctly on the file because it's the same as the counter log file, but I can't figure out why the other file isn't being

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Hi Marek, I don't see anything in the docs located http://us3.php.net/fopen to help. I changed it to w only but that made no difference. Can you please provide a more specific answer. THanks Code looks liks this: % class counter { var $log_file = 'counters/google_log.txt';

Re: [PHP] Help with file not writing

2005-01-25 Thread Marek Kilimajer
Joey wrote: Hi Marek, Me? I did not send you anything :) Member variables in classes are NOT used this way: $this-$hits But this way: $this-hits I don't see anything in the docs located http://us3.php.net/fopen to help. I changed it to w only but that made no difference. Can you please provide

RE: [PHP] Help with file not writing

2005-01-25 Thread Richard Lynch
Joey wrote: $this-$hits .= fgets($hiti,128); Do global search and replace for '-$' and change it to '-' $this-$hits=1+$this-$hits; echo $this-$hits; fputs($hito,$this-$hits); fputs($log,$this-$log_entry ); cuz

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Actually writing to the counter file works fine, I just can't get it to write to the log file. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 1:30 PM To: Joey Cc: PHP Subject: RE: [PHP] Help with file not writing Joey wrote

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Sorry I forgot to mention that I tried that anyway and no change in the result. fputs($log,$this-log_entry ); -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 1:30 PM To: Joey Cc: PHP Subject: RE: [PHP] Help with file not writing Joey

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 7:44 PM To: Joey Subject: RE: [PHP] Help with file not writing I'll say it again. Every place that you have -$ you should have just - It's really that simple. Honest. Joey wrote: Sorry I forgot to mention that I tried that anyway and no change

Re: [PHP] Help with file not writing

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 07:53, Joey wrote: I'm not too good with classes, in the below class I can get the hit counter to write to the hit counter file, but I can't get it to write the log file, I know security is done correctly on the file because it's the same as the counter log file, but I

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
That was it Bret, thanks for pointing out my blindess... Joey -Original Message- From: Bret Hughes [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 12:34 AM To: php general list Subject: Re: [PHP] Help with file not writing On Tue, 2005-01-25 at 07:53, Joey wrote: I'm

Re: [PHP] help with nl2br

2005-01-24 Thread Richard Lynch
Phillip S. Baker wrote: Due to style sheet stuff I need to modify the nl2br (IE create or use a different function). I am pulling data from a database and using nl2br, which does the standard. some text copybr / br / Some more copybr / What I want instead is pSome text copy/p psome

[PHP] help with nl2br

2005-01-21 Thread Phillip S. Baker
Greetings all, Due to style sheet stuff I need to modify the nl2br (IE create or use a different function). I am pulling data from a database and using nl2br, which does the standard. some text copybr / br / Some more copybr / What I want instead is pSome text copy/p psome more text copy/p

RE: [PHP] help with nl2br

2005-01-21 Thread Jay Blanchard
[snip] some text copybr / br / Some more copybr / What I want instead is pSome text copy/p psome more text copy/p [/snip] What you want to do is start with a p, then when you run into 2 \n\n you want to replace it with /pp and then end with a /p http://www.php.net/preg_replace -- PHP General

RE: [PHP] help with nl2br

2005-01-21 Thread Samuel DeVore
You might check out http://photomatt.net/scripts/autop Call this function on the text you want to convert. Think of this code like nl2br on steroids. This is basically a cross-platform set of regular expressions that takes text formatted only by newlines and transforms it into text properly

Re: [PHP] help with nl2br

2005-01-21 Thread Karthik
Hey, I would just suggest that you Explode the data based on \n and then walk through it adding p /p and br / tags as necessary.. shouldn't be too diffcult. hth -K On Fri, 21 Jan 2005 14:19:38 -0800, Phillip S. Baker [EMAIL PROTECTED] wrote: Greetings all, Due to style sheet stuff I

Re: [PHP] help with nl2br

2005-01-21 Thread Jochem Maas
Phillip S. Baker wrote: Greetings all, Due to style sheet stuff I need to modify the nl2br (IE create or use a different function). I am pulling data from a database and using nl2br, which does the standard. ... .html: div class=ParaFakeOrWhatEver some text copybr / br / Some more copybr /

Re: [PHP] Help with encryption

2005-01-19 Thread Brian Dunning
Here is a class that uses mcrypt that might be helpful: Tom - this class is awesome. Took 5 seconds to add to my site and worked like a charm on the first try. THANKS!! :) - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help with encryption

2005-01-15 Thread Michael Sims
Greg Donald wrote: On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning [EMAIL PROTECTED] wrote: Could anyone point me to a web page or other documentation that shows a SIMPLE example of encryption? I know absolutely nothing about encryption. There are like 6 people in the entire world who

Re: [PHP] Help with encryption

2005-01-15 Thread Jochem Maas
Michael Sims wrote: Greg Donald wrote: On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning [EMAIL PROTECTED] wrote: Could anyone point me to a web page or other documentation that shows a SIMPLE example of encryption? I know absolutely nothing about encryption. There are like 6 people in the entire

[PHP] Help please!!

2005-01-14 Thread Brent Clements
Having a very frustrating problem and I can't seem to figure out why it's happening. 1. As of last week, all of our applications have started to work intermittingly. The codebase has not changed. 2. Sometimes the application will display, sometimes it won't. The browsers loading progress bar

RE: [PHP] Help please!!

2005-01-14 Thread Jay Blanchard
[snip] Thanks guys for any help troubleshooting this. [/snip] Is the drive full? Enough memory? An unusual number of connections? Any other applications added to the system? what do you see when you run top? Have you looked at a MySQL process list? -- PHP General Mailing List

Re: [PHP] Help with encryption

2005-01-14 Thread Tom Rogers
Hi, Friday, January 14, 2005, 7:53:30 AM, you wrote: BD Howdy all - BD I have RTFM and STFW and I still can't get encryption to work. What I BD finally ended up with from the PHP documentation is long, unwieldy, BD confusing, and doesn't work. I give up. I threw my big mess away and BD would

Re: [PHP] Help with encryption

2005-01-14 Thread Jochem Maas
Brian Dunning wrote: Howdy all - I have RTFM and STFW and I still can't get encryption to work. What I good man! (for trying that is) bummer its not working yet... finally ended up with from the PHP documentation is long, unwieldy, confusing, and doesn't work. I give up. I threw my big mess away

Re: [PHP] Help with encryption

2005-01-14 Thread Greg Donald
On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning [EMAIL PROTECTED] wrote: Could anyone point me to a web page or other documentation that shows a SIMPLE example of encryption? I know absolutely nothing about encryption. There are like 6 people in the entire world who know something about it,

Re: [PHP] Help please!!

2005-01-14 Thread Brent Baisley
I would check what hitting the machine from the network. At the most basic level, just try netstat 1 on the command line. Also try iostat 1 to see what load the machine has. It may not be PHP or Apache but something else, maybe a denial of service attack. On Jan 13, 2005, at 10:02 PM, Brent

[PHP] Help with encryption

2005-01-13 Thread Brian Dunning
Howdy all - I have RTFM and STFW and I still can't get encryption to work. What I finally ended up with from the PHP documentation is long, unwieldy, confusing, and doesn't work. I give up. I threw my big mess away and would like to start from scratch. Could anyone point me to a web page or

[PHP] PHP Help

2005-01-08 Thread TonyC
I have used Dreamweaver 4.0 for editing my html files and love its 'design view; so I know exactly what the file looks like before I upload to the server. We currently now are incorporating a shopping cart into our site and the files are in 'php' format. When I open a 'php' file in Dreamweaver

Re: [PHP] PHP Help

2005-01-08 Thread tr
TonyC wrote / napísal (a): I have used Dreamweaver 4.0 for editing my html files and love its 'design view; so I know exactly what the file looks like before I upload to the server. We currently now are incorporating a shopping cart into our site and the files are in 'php' format. When I open

[PHP] Help with pack unpack functions

2005-01-03 Thread Scott E. Young
Hello All, I am trying to write some PHP code that will act as a client to a homegrown server interface developed in C. The client/server interfaces exchange data using two C structures defined as: /* struct for client requests to server */ struct client_request { char stringA[20];

Re: [PHP] Help with pack unpack functions

2005-01-03 Thread Richard Lynch
What is strange is that I can always get the char data[] structure member, and sometimes I get meaningful data in a few of the shorts, but never all of the structure's members at the same time. Do you consistently get the same problems on the FIRST record returned? Anything after that is

Re: [PHP] Help with pack unpack functions

2005-01-03 Thread Scott E. Young
First, let me say thanks for responding. My other responses are embedded within your reply: What is strange is that I can always get the char data[] structure member, and sometimes I get meaningful data in a few of the shorts, but never all of the structure's members at the same time. Do

[PHP] help with PEAR and SOAP

2004-12-28 Thread Jones, Douglas 1
Hello, I have the SOAP PEAR package set up correctly to the point where I can send a request and get a response. However, my web service is designed to return XML back to the caller. When I do this, all of the tags have their and converted to lt; and gt;. I have spent much time searching

Re: [PHP] Help with code

2004-12-26 Thread Burhan Khalid
karl james wrote: I have since updated it. And I am having issues with a function I suppose. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site38/fst/var/www/html/php/wrox_php/movie_details.php on line 119

[PHP] help in reversing an array

2004-12-25 Thread mail.pmpa
Hi all and Merry Christmas!! I am having some trouble reversing the order of an array. I have this array: $array[0]='Socket A'; $array[1]='Single processor'; $array[2]='Motherboards'; $array[3]='Hardware'; and I want to do a simple reverse of the content like this:

RE: [PHP] help in reversing an array

2004-12-25 Thread Mike
I am having some trouble reversing the order of an array. [snip] Which function amongst the available should I use? rsort() is what you're looking for. http://us2.php.net/manual/en/function.rsort.php -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Help with code

2004-12-25 Thread karl james
Team, Can you tell me why this code is not working? I get a query is empty at the moment. http://www.theufl.com/php/wrox_php/movie_details.phps Karl James (TheSaint) [EMAIL PROTECTED] http://theufl.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help in reversing an array

2004-12-25 Thread M. Sokolewicz
Mike wrote: I am having some trouble reversing the order of an array. [snip] Which function amongst the available should I use? rsort() is what you're looking for. http://us2.php.net/manual/en/function.rsort.php -M what's wrong with array_reverse()?

Re: [PHP] Help with code

2004-12-25 Thread Robby Russell
karl james said: Team, Can you tell me why this code is not working? I get a query is empty at the moment. http://www.theufl.com/php/wrox_php/movie_details.phps We need some information on the errors that you are getting. -Robby -- /*** * Robby

Re: [PHP] Help with code

2004-12-25 Thread John Holmes
karl james wrote: Can you tell me why this code is not working? I get a query is empty at the moment. http://www.theufl.com/php/wrox_php/movie_details.phps Didn't we already see this once? From File: $movie_query in mysql_query(); What kind of PHP code is that? You could really help yourself by

RE: [PHP] Help with code

2004-12-25 Thread karl james
/movie_details.php Karl James (TheSaint) [EMAIL PROTECTED] http://theufl.com/ -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Sunday, December 26, 2004 1:09 AM To: karl james Cc: php-general@lists.php.net Subject: Re: [PHP] Help with code karl james wrote: Can you tell me why

Re: [PHP] Help wth coding

2004-12-21 Thread Richard Lynch
http://www.theufl.com/php/wrox_php/movie_details10.php Copy movie_details10.php into movie_details10.phps (with an 's' on the end) and then we can surf to your source and tell you something useful. Or, copy and paste your soure up to the line with the error to the list. We sure can't help you

[PHP] help with coding #3

2004-12-21 Thread karl james
Team, Ok I will try the links again, sorry about the hassel, gee do I sound like a rookie coming up From the minor leagues or want. Anyway, Here are the links. Phps file http://www.theufl.com/movie_details.phps website http://www.theufl.com/php/wrox_php/movie_details.php on my

Re: [PHP] help with coding #3

2004-12-21 Thread John Holmes
From: karl james [EMAIL PROTECTED] Ok I will try the links again, sorry about the hassel, Did I miss the first part of this message? http://www.theufl.com/movie_details.phps website http://www.theufl.com/php/wrox_php/movie_details.php Are you able to tshoot it and see whats going

[PHP] Help wth coding

2004-12-20 Thread karl james
Team I am trying to teach myself php through a book I got at the store. Its kinda rough with limited programming experience. I was wondering if you could take a look at my code and tell me or write the code so it Will work and make comments in it so I know what I did wrong. Here is the links.

[PHP] Help with code#2

2004-12-20 Thread karl james
Hey guys, Just to let you know I turned off my read receipt, sorry about that. I had forgot I had it on. Karl James (TheSaint) [EMAIL PROTECTED] http://theufl.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-09 Thread ApexEleven
$year_split = date(Y); $chars = chop($year_split); $chars[0] // = 2 $chars[1] // = 0 $chars[2] // = 0 $chars[3] //= 4 # end code I hope that will help From: Louie Miranda [EMAIL PROTECTED] Reply-To: Louie Miranda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] help me

[PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Louie Miranda
Help me split chars w/o spaces by 2... like: 2004 How can i make it? first: 20 second: 04 Im working on this.. # begin code $year_split = date(Y); $chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY); # end code But it splits the whole 2004 string.. Array ( [0] = 2

RE: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Tyler Replogle
PROTECTED] Subject: [PHP] help me split chars w/o spaces by 2... like: 2004 Date: Thu, 9 Dec 2004 09:55:57 +0800 MIME-Version: 1.0 Received: from pb1.pair.com ([216.92.131.4]) by mc6-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 8 Dec 2004 17:56:52 -0800 Received: (qmail 21242 invoked

Re: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Robby Russell
On Thu, 2004-12-09 at 09:55 +0800, Louie Miranda wrote: Help me split chars w/o spaces by 2... like: 2004 How can i make it? first: 20 second: 04 Im working on this.. # begin code $year_split = date(Y); $chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY); # end

Re: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Louie Miranda
Miranda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] help me split chars w/o spaces by 2... like: 2004 Date: Thu, 9 Dec 2004 09:55:57 +0800 MIME-Version: 1.0 Received: from pb1.pair.com ([216.92.131.4]) by mc6-f24.hotmail.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 8 Dec 2004 17:56:52

[PHP] help plssssss.!!!

2004-12-03 Thread Tomar Rajeev (ext)
Hello All, I am a new member of this group and in the world of PHP;-) In my company, around 12 web pages are there. So, I want to make a web portal in PHP from where all these web pages can be accessed. Also, I want to provide the link for the web pages ( will make three categories) in

AW: [PHP] help plssssss.!!!

2004-12-03 Thread Stefan
-Ursprüngliche Nachricht- Von: Tomar Rajeev (ext) [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. Dezember 2004 16:20 An: '[EMAIL PROTECTED]' Betreff: [PHP] help plss.!!! Hello All, I am a new member of this group and in the world of PHP;-) In my company, around 12 web

Re: [PHP] help plssssss.!!!

2004-12-03 Thread Marek Kilimajer
Tomar Rajeev (ext) wrote: Hello All, I am a new member of this group and in the world of PHP;-) and I guess to mailing lists in general too. You should give a hint about your problem in the subject. In my company, around 12 web pages are there. So, I want to make a web portal in PHP from

Re: [PHP] help plssssss.!!!

2004-12-03 Thread ankur_os
I think u have to go for http://www.w3schools.com Thnx for joining the group Ankur Dave Quoting Tomar Rajeev (ext) [EMAIL PROTECTED]: Hello All, I am a new member of this group and in the world of PHP;-) In my company, around 12 web pages are there. So, I want to make a web

Re: [PHP] help plssssss.!!!

2004-12-03 Thread Richard Lynch
Tomar Rajeev (ext) wrote: I am a new member of this group and in the world of PHP;-) In my company, around 12 web pages are there. So, I want to make a web portal in PHP from where all these web pages can be accessed. Also, I want to provide the link for the web pages ( will make three

[PHP] Help with GET variables which do not work after upgrading

2004-11-28 Thread Eamon Reyn
Hey, I was happily using GET command line variables in my project under php 4.3.4 but when I upgrade to 4.3.9 they no longer work I can make them work by changing back to my prior version of php but would rather use the newer one can anyone explain why this may happen. here is some sample

Re: [PHP] Help with GET variables which do not work after upgrading

2004-11-28 Thread Burhan Khalid
Eamon Reyn wrote: Hey, I was happily using GET command line variables in my project under php 4.3.4 but when I upgrade to 4.3.9 they no longer work I can make them work by changing back to my prior version of php but would rather use the newer one can anyone explain why this may happen. Please

RE: [PHP] Help with GET variables which do not work after upgrading

2004-11-28 Thread Adrian Portsmouth
alteration of the contents of this message by a third party or as a result of any virus being passed on. -Original Message- From: Eamon Reyn [mailto:[EMAIL PROTECTED] Sent: 28 November 2004 10:37 To: [EMAIL PROTECTED] Subject: [PHP] Help with GET variables which do not work after

[PHP] Help with DB.php in PHP5

2004-11-28 Thread [EMAIL PROTECTED]
I upgraded to PHP 5 and now I am having some problems with DB.php. 2 problems: 1. I get this notice Notice: Undefined property: DB_mysql::$disconnect 2: the $db-query no longer works. I have gone as far as to place this line at the beginning of the file: set_include_path(.:/usr/local/lib/php);

Re: [PHP] help with html through php

2004-11-26 Thread Curt Zirzow
* Thus wrote Todd Alexander: Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words 123.html will use php to call on abc.html so I can make changes to

[PHP] help with html through php

2004-11-21 Thread Todd Alexander
Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words 123.html will use php to call on abc.html so I can make changes to abc.html and have it update on all

Re: [PHP] help with html through php

2004-11-21 Thread Raditha Dissanayake
Todd Alexander wrote: Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words 123.html will use php to call on abc.html so I can make changes to abc.html and

Re: [PHP] help with html through php

2004-11-21 Thread Rens Admiraal
Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME], or [ACTIVE_USER]... When you open the HTML document in your browser, you can see where your time

Re: [PHP] help with html through php

2004-11-21 Thread M. Sokolewicz
Rens Admiraal wrote: Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME], or [ACTIVE_USER]... When you open the HTML document in your browser, you can

Re: [PHP] help with html through php

2004-11-21 Thread Pete
In message [EMAIL PROTECTED], Raditha Dissanayake [EMAIL PROTECTED] writes Todd Alexander wrote: Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words

Re: [PHP] help with html through php

2004-11-21 Thread Rens Admiraal
thnx ;-) this really is shorter, and easier to use... !!! M. Sokolewicz wrote: Rens Admiraal wrote: Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME],

RE: [PHP] Help: Database Search

2004-11-15 Thread Gryffyn, Trevor
PROTECTED] Sent: Saturday, November 13, 2004 1:16 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help: Database Search I've changed my logic around but still running into a sql query error. I've tried a number of things with no success. Here is the error that returns on POST: SELECT

Re: [PHP] Help: Database Search

2004-11-13 Thread Stuart Felenstein
I've changed my logic around but still running into a sql query error. I've tried a number of things with no success. Here is the error that returns on POST: SELECT PostStart, JobTitle, Industry, LocationState, VendorID FROM VendorJobs WHERE (VendorJobs.Industry = ''1','2','3''Query failed: You

[PHP] Re:[SOLVED] [PHP] Help: Database Search

2004-11-13 Thread Stuart Felenstein
--- Stuart Felenstein [EMAIL PROTECTED] wrote: Okay, so what did I learn. 1) That a comma delimited list (from the array) to be used correctly in the sql statement had to use the IN word. $sql .= WHERE VendorJobs.Industry IN ($s_Ind); 2) I need a space between the first quotation in the

[PHP] Help: Database Search

2004-11-10 Thread Stuart Felenstein
I am creating a database search form and results. Running into a problem though. I have two form elements, both that are fed by tables that have int values (1, 2 , etc) my sql statement is such: SELECT vendorjobs.PostStart, vendorjobs.JobTitle, vendorjobs.Industry, vendorjobs.VendorID,

Re: [PHP] Help: Database Search

2004-11-10 Thread Jon Hill
You might want to try looking up the syntax for left join queries. I think this might be what you are after. http://dev.mysql.com/doc/mysql/en/JOIN.html On Wednesday 10 November 2004 14:37, Stuart Felenstein wrote: I am creating a database search form and results. Running into a problem

Re: [PHP] Help: Database Search

2004-11-10 Thread Stuart Felenstein
--- Jon Hill [EMAIL PROTECTED] wrote: You might want to try looking up the syntax for left join queries. I think this might be what you are after. http://dev.mysql.com/doc/mysql/en/JOIN.html It has nothing to do with left joins. It works fine provided I do one of two things, make

Re: [PHP] Help: Database Search

2004-11-10 Thread Jason Wong
On Wednesday 10 November 2004 14:37, Stuart Felenstein wrote: But if the user decides to only use one of the elements, then I don't want the query to return nothing because of the And in the where clause so I have these 2 statements that set a default value (shown here as 0 in the event one

Re: [PHP] Help: Database Search

2004-11-10 Thread Jason Wong
On Wednesday 10 November 2004 15:37, Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: Why not build your sql query according to whether or not whatever you want is selected or not. That way debugging is easier as you won't be looking at queries that contain redundant

RE: [PHP] Help: Database Search

2004-11-10 Thread Graham Cossey
What about doing something like: $sql = SELECT * FROM my_table WHERE col1=$var1; if (isset($var2)) $sql .= AND col2='$var2'; HTH Graham -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 10 November 2004 14:37 To: [EMAIL PROTECTED] Subject: [PHP

Re: [PHP] Help: Database Search

2004-11-10 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Why not build your sql query according to whether or not whatever you want is selected or not. That way debugging is easier as you won't be looking at queries that contain redundant ... AND 0 Jason, How would I do that ? Care to share a

[PHP] help with fopen path

2004-11-09 Thread Giles Roadnight
Hi All I'm developing a fusebox PHP app and have a class in a /classes directory that opens an xml file in a directory below the site root using this path: ../siteconfig.xml All of the places I have used this class from so far have been in the site root. I am now starting some pages in a sub

Re: [PHP] help with fopen path

2004-11-09 Thread Marek Kilimajer
Giles Roadnight wrote: Hi All I'm developing a fusebox PHP app and have a class in a /classes directory that opens an xml file in a directory below the site root using this path: ../siteconfig.xml All of the places I have used this class from so far have been in the site root. I am now

RE: [PHP] help with fopen path

2004-11-09 Thread Graham Cossey
-Original Message- From: Giles Roadnight [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 13:07 To: [EMAIL PROTECTED] Subject: [PHP] help with fopen path Hi All I'm developing a fusebox PHP app and have a class in a /classes directory that opens an xml file in a directory

Re: [PHP] help with fopen path

2004-11-09 Thread James McGlinn
Hi Giles, I'm developing a fusebox PHP app and have a class in a /classes directory that opens an xml file in a directory below the site root using this path: ../siteconfig.xml All of the places I have used this class from so far have been in the site root. I am now starting some pages in a sub

[PHP] help in php script

2004-11-04 Thread Deepak Dhake
I have a following PHP file TimeRotateImage.php which prints an image ?php $curr_time = (localtime()); if ($curr_time[2] = 6 and $curr_time[2] = 17) { PRINT IMAGE_1; } else { PRINT IMAGE_2; } ? I want to use this script in another file to display the image. the tag should be img

Re: [PHP] help in php script

2004-11-04 Thread Klaus Reimer
Deepak Dhake wrote: But i am not getting any output if i follow the above procedure. Can you tell me how to do it? I have to have the script TimeRotateImage.php which calculates which image to print accoring to local time and i want to embed the file name in html tag to print it on screen. It's

Re: [PHP] help in php script

2004-11-04 Thread Deepak Dhake
PRINT is nothing but... TimeRotateImage.php ?php $curr_time = (localtime()); if ($curr_time[2] = 6 and $curr_time[2] = 17) { print img src='image1.jpg'; } else { print img src='image2.jpg'; } ? this script (something like this) should be called from another script like, ?PHP print img

Re: [PHP] help in php script

2004-11-04 Thread Klaus Reimer
Deepak Dhake wrote: ?PHP print img src='TimeRotateImage.php'; ? did you get what i am saying? please let me know if you have some solution. thanks No. I must admit, It don't understand it. Let me try: You have a script a.php which outputs this static content: img src=b.php b.php outputs the

Re: [PHP] help in php script

2004-11-04 Thread Klaus Reimer
Klaus Reimer wrote: This can't work. You browser tries to download an image with the name 'img src=c.jpeg'. Ah, I'm talking nonsense. I meant the browser tries to DISPLAY an image with the CONTENT 'img src=c.jpeg'. The browser can't do this. That's why you don't see anything. -- Bye, K

Re: [PHP] Help needed on php/mysql

2004-11-02 Thread Garth Hapgood - Strickland
Well my page doesnt have any of the spoken about elements on it yet, because I am not clear as to go about it. The fields I speak of are things that need to be added extra to my page. Here is my pages code so far... ?php require('includes/application_top.php');

Re: [PHP] Help needed on php/mysql

2004-11-02 Thread Lists
Hmmm...I'm not sure I'm following you. You just want to know how to deal with multiple drop down lists? Or do you want to be able to check and make sure all the mandatory selections have been chosen? -dg http://www.rexruff.com On Nov 2, 2004, at 4:58 AM, Garth Hapgood - Strickland wrote:

Re: [PHP] Help needed on php/mysql {Scanned}

2004-11-02 Thread Garth Hapgood - Strickland
As you can see from my code, I do want to check if all mandatory fields are selected or filled in. As well as the issue of the communicationtyes. SO far I do not have fields or anything for the user to use, to select the different CommunicationTypes he wants. I am not sure how to go about this

Re: [PHP] Help with preg_match_all()

2004-11-01 Thread Klaus Reimer
Curt Zirzow wrote: And so on.. It's a kind of a template system... well... I need to create a expression to get all the tags from the HTML with preg_match_all() in order to have them in a array... So your looking from something that starts with '{' and continues while not a ')' ... /{([^}]*?)}/

[PHP] Help needed on php/mysql

2004-11-01 Thread Garth Hapgood - Strickland
I have written a registration page in php and have a number of edit boxes and drop-down lists. The lists are pulling data out of their respective tables, whereas the edit boxes are just for saving data. Now my main table where all my data is being saved is called Business. Onto this I have a

Re: [PHP] Help needed on php/mysql

2004-11-01 Thread Lists
Seeing the page might help. On Nov 1, 2004, at 2:52 AM, Garth Hapgood - Strickland wrote: I have written a registration page in php and have a number of edit boxes and drop-down lists. The lists are pulling data out of their respective tables, whereas the edit boxes are just for saving data. Now

[PHP] Help with Advanced Guestbook

2004-10-31 Thread Melanie
I am trying to use Advanced Guestbook in my website (www.tracingfootprints.com) but would like to have it match (in style, background, etc) the other pages in the site. I've been trying to figure out how to do that (with very limited PHP knowledge) without success. My site is hosted by Go

Re: [PHP] Help with Advanced Guestbook

2004-10-31 Thread Lists
It looks like you can change quite a bit by opening the body.php file in the templates folder. If you are using FP, if you haven't already, make sure to set it so it does not affect code. You might want to open that in Notepad to make sure though. On Oct 31, 2004, at 1:03 PM, Melanie wrote:

<    7   8   9   10   11   12   13   14   15   16   >