[PHP] Any Tiki users on the list

2003-03-07 Thread George Pitcher
Hi, I'm trying to evaluate Tiki 1.5 but just keep getting an error message on the setup.php page: Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\tiki\setup.php on line 11. I've followed the instructions in the Tiki manual. Any suggestions? George === George Pitcher

[PHP] Re: submit button

2003-03-07 Thread Foong
can i have a peek on your diki.php? I didn't see any attachment. Foong Diksha Neel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi everybody, i have a PHP script by name registration.php in which i have a submit button at the bottom. the form in this script is sent to p.php

[PHP] Re: submit button

2003-03-07 Thread Foong
sorry, I really didn't seen any attachment in any of your post. can you paste it in your next post? foong Diksha Neel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi everybody, i have a PHP script by name registration.php in which i have a submit button at the bottom. the

[PHP] submit button with attachment

2003-03-07 Thread Diksha Neel
dear all, hi! i have a php page by name diki.php which i have pasted below. i have removed the irrelevant code because of the size limit of the email. in this page is a submit button at the end. the form in which this button is placed is by get sent to p.php which has only the following contents:

[PHP] Re: SUBMIT

2003-03-07 Thread Foong
OK sorry i miss this post. looking at you code. I guess there are mismatch of opening and closing form tags. In HTML double slashes // is not a comment. when you do something like //form The tag wont get commented use: !-- form -- to comment a html tag out side php scope. Foong Diksha Neel

[PHP] Search for keyword in txt file

2003-03-07 Thread Chris Blake
Greetings learned PHP(eople), What is the best method to search a text file for a specific string and return it to a form ? I`m not looking for you guys (and gals) to give me the answer, just point me in the right direction So long and thanks for all the fish.. -- Chris Blake Office

RE: [PHP] Version 5?

2003-03-07 Thread Dan Rossi
the OO handling definately and it works ! although u have to change your private and public functions to specific public function 1 and private function 2 etc , i run it only another apache process on a different port so i can run 4.3.1 aswell -Original Message- From: Marco Tabini

RE: [PHP] Search for keyword in txt file

2003-03-07 Thread Niklas Lampén
Dolphins are gone. ;) Here is your direction: preg_match(). If you need help with it (it can be compicated at first), ask. :) Niklas -Original Message- From: Chris Blake [mailto:[EMAIL PROTECTED] Sent: 7. maaliskuuta 2003 11:16 To: [EMAIL PROTECTED] Subject: [PHP] Search for keyword

Re: [PHP] Any Tiki users on the list

2003-03-07 Thread Jason Wong
On Friday 07 March 2003 16:09, George Pitcher wrote: I'm trying to evaluate Tiki 1.5 but just keep getting an error message on the setup.php page: Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\tiki\setup.php on line 11. I've followed the instructions in the Tiki

Re: [PHP] Empty Database Variables

2003-03-07 Thread Jason Wong
On Friday 07 March 2003 05:52, Stephen wrote: For some reason, whenevr I try and access the database contents, it turns up empty. What I do is randomly select an ID (the lowest being 1 and the highest being however many IDs are in the database [this section of accessing the database works]).

RE: [PHP] Any Tiki users on the list

2003-03-07 Thread George Pitcher
Jason, Duh! I should have checked that out first. Thanks George. == In a marching band, I'd be carrying the piano! == -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 07 March

RE: [PHP] Search for keyword in txt file

2003-03-07 Thread Chris Blake
Ok, it`s not that easy..here`s my code...I wanna search all the files in the logs directory and for each file found I want it to search for the word started and print that line into a table row. I will probably need to do like a for each loopbut where do I insert it ?

RE: [PHP] Search for keyword in txt file

2003-03-07 Thread Ernest E Vogelsinger
At 11:36 07.03.2003, Chris Blake said: [snip] Ok, it`s not that easy..here`s my code...I wanna search all the files in the logs directory and for each file found I want it to search for the word started and print that line into a table row. I will

[PHP] rates for differents date?

2003-03-07 Thread Shaine Gordon
hey guys ok question: 7days in a week. day 1-2 costs $10, day 3-5 cost $15, day 4-7 costs $10. how can I work out the total if someone stays from say day 2-5? or what about day 3-7? any help would be great thanks shaine gordon -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] rates for differents date?

2003-03-07 Thread Jon Haworth
Hi Shaine, ok question: 7days in a week. day 1-2 costs $10, day 3-5 cost $15, day 4-7 costs $10. I'm assuming you meant 6-7 here instead of 4-7, otherwise you've introduced a contradiction with days 3-5. how can I work out the total if someone stays from say day 2-5? or what about day

RE: [PHP] Search for keyword in txt file

2003-03-07 Thread Niklas Lampén
You might want to use preg_match_all(). Here's a sample of getting whole row with a specified word in it: pre ? $file = This line should be found! This line is not important! If you see this, there is something wrong!!! This line should be found too! This is too much! Should this too? Yes, it

[PHP] attaching php-action to form-button

2003-03-07 Thread Michiel van Heusden
my problem is this I have some variables defined which i'm sending through get form name=form1 method=get action=result.php // input's etc /form now I have $var1 defined in my PHP and I want to send it through that GET as well is there a way to do this? so it's not a user-defined but

[PHP] cookie problem.

2003-03-07 Thread H M
hello. i'm new to this NG, so i don't know if this is the right mailinglist / newsgroup for my problem. if not, please let me know which one to post it to. anyway, here goes: i'm designing a new website with several php scripts. for that purpose i've configuerd my server (apache under MacOSX

Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Ernest E Vogelsinger
At 12:59 07.03.2003, Michiel van Heusden said: [snip] I have some variables defined which i'm sending through get form name=form1 method=get action=result.php // input's etc /form now I have $var1 defined in my PHP and I want to send it through that GET as

[PHP] javascript

2003-03-07 Thread Diksha Neel
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a

[PHP] JAVASCRIPT

2003-03-07 Thread Diksha Neel
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a

[PHP] JAVASCRIPT

2003-03-07 Thread Diksha Neel
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a

Re: [PHP] JAVASCRIPT

2003-03-07 Thread Awlad Hussain
i think you're not calling the the javascript validation function when you're submiting the form you need to call the function like this: form method=post action=registration1.php onsubmit=return Field_Validator(this) try this code below, hope this will help -awlad

[PHP] JAVASCRIPT

2003-03-07 Thread Diksha Neel
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a

Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Awlad Hussain
did you try to include them as hidden variables? if not, try including them as hidden vars awlad - Original Message - From: Michiel van Heusden [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:59 AM Subject: [PHP] attaching php-action to form-button my problem

[PHP] JAVASCRIPT

2003-03-07 Thread Diksha Neel
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a

Re: [PHP] JAVASCRIPT

2003-03-07 Thread Awlad Hussain
Diksha, please don't post the same question many times, doing this may reduce the change of getting an answer.. -awlad - Original Message - From: Diksha Neel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 12:45 PM Subject: [PHP] JAVASCRIPT dear all, hi! in my

[PHP] JAVASCRIPT

2003-03-07 Thread Diksha Neel
dear all, hi! in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! i guess i have made a

Re: [PHP] javascript

2003-03-07 Thread Liam Gibbs
in my php script registration1.php, i have written javascript for form validation i.e. for checking if the mandatory fields are filled correctly or not. but on clicking the submit button, i get connected to the next page without the form getting validated!! What's wrong with using PHP to

RE: [PHP] javascript

2003-03-07 Thread Niklas Lampén
If you want to validate form data before sending it, javascript is the choise. Niklas -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: 7. maaliskuuta 2003 15:44 To: php list Subject: Re: [PHP] javascript in my php script registration1.php, i have written

[PHP] How to redirect form results to different server?

2003-03-07 Thread Jody Cleveland
Hi Jonathan, on frommail.php: Are you familiar with the formmail.php script?: http://www.boaddrink.com/projects/phpformmail/ Depending on your version of PHP I would guess you are running PHP 4.2 or greater with register_globals = off. Thanks! Since I'm under pressure, I switched it to

Re: [PHP] javascript

2003-03-07 Thread Liam Gibbs
If you want to validate form data before sending it, javascript is the choise. Yeah, before sending it. Just wondering what the advantage is in validating before sending. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript

2003-03-07 Thread Awlad Hussain
Yeah, before sending it. Just wondering what the advantage is in validating before sending. so that the user does not submit any crap.. good example is email validation :) awlad - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Friday, March

RE: [PHP] javascript

2003-03-07 Thread Niklas Lampén
Advantage is obvious! If there is a field user didn't fill up, you can notify user about it and ask him/her to fill the field up. Do the math: Validating after send: 1. Fill in the form 2. Send 3. (Load) 4. Validate - It failed = back to form 5. (Load) 6. Pre-fill the fields up with

RE: [PHP] javascript

2003-03-07 Thread George Pitcher
Well, it saves having to handle the form - so that the user still has all their entered data in the fields without having to overcomplicate the response page. You can have optional fields which aren't mandatory and you can also do number, string and date validation too. George -Original

Re: [PHP] javascript

2003-03-07 Thread Marek Kilimajer
Not bothering the user to wait till the next page loads Liam Gibbs wrote: If you want to validate form data before sending it, javascript is the choise. Yeah, before sending it. Just wondering what the advantage is in validating before sending. -- PHP General Mailing List

Re: [PHP] javascript

2003-03-07 Thread Cranky Kong
And what are you doing if the javascript is not enabled in the browser of the client ??? There will be no verification and the user can enter what he want in the field of your form And it's a bit dangerous for your DB if your insert data in a DB... Marek Kilimajer [EMAIL PROTECTED] a écrit

RE: [PHP] javascript

2003-03-07 Thread Adrian Portsmouth
Yes until a user comes along with JS disabled. Ade www.phpscriptsearch.com -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED] Sent: 07 March 2003 14:04 To: 'Php-General' Subject: RE: [PHP] javascript Advantage is obvious! If there is a field user didn't fill up, you can

RE: [PHP] javascript

2003-03-07 Thread James E Hicks III
And what are you doing if the javascript is not enabled in the browser of the client ??? There will be no verification and the user can enter what he want in the field of your form And it's a bit dangerous for your DB if your insert data in a DB... Wow, the only safe way to insure data

Re: [PHP] javascript

2003-03-07 Thread Marek Kilimajer
If the user is disabled, the user will be bothered to wait till the page reloads, sure there MUST be server side check Cranky Kong wrote: And what are you doing if the javascript is not enabled in the browser of the client ??? There will be no verification and the user can enter what he want in

Re: [PHP] javascript

2003-03-07 Thread Cranky Kong
I always test the data server side, never on the client. The set up of the browser can be changed by the client and so a guy whi want to create problem can disable JS. On the server, the visitor of your site can not changed the set up... So you can also check both client side and server side but

[PHP] populating textarea with data

2003-03-07 Thread Mirco Ellis
Hi, I have a simple RFQ ( request for quotes ) system that runs on mysql and php. The clients inserts data into the database with a simple form, no problem! What I would like to do is when the user recalls data from the db that the data is displayed in a textarea rather than the old fashioned php

Re: [PHP] javascript

2003-03-07 Thread Cranky Kong
Yes but if the fields are well filled, you will check all 2 times, the first time on the client side to know that the fields are filled. And a second time on server side to check the data before inserting them in a DB for examples... So why make 2 tests, if only one is good. The reloading of the

[PHP] how to abort script execution at a certain point?

2003-03-07 Thread Chris Edwards
How would I abort a scripts execution at a certain point in the script. Say, if stuff doesn't look good about halfway through execution, kill it. I thought there was this function. abort() but I don't see it in the function reference. Any ideas? Thanks. -- Chris Edwards Web Application

Re: [PHP] how to abort script execution at a certain point?

2003-03-07 Thread Mincu Alexandru
die(); or exit; On Fri, 2003-03-07 at 16:35, Chris Edwards wrote: How would I abort a scripts execution at a certain point in the script. Say, if stuff doesn't look good about halfway through execution, kill it. I thought there was this function. abort() but I don't see it in the function

[PHP] PHP + Java (integration problem)

2003-03-07 Thread RDias
Somebody works with PHP + JAVA with some similar configuration to this Linux red-hat Java j2sdk1.4.1_01 PHP 4.3.1 Somebody already obtained to make to function this sh... has the sections: [Java] php.ini java.class.path = /usr/local/lib/php/php_java.jar :/usr/local/apache/htdocs

[PHP] how to ssl on php

2003-03-07 Thread Luis A
how i can make ssl on php4 ???

Re: [PHP] javascript

2003-03-07 Thread Marek Kilimajer
Cranky Kong wrote: Yes but if the fields are well filled, you will check all 2 times, the first time on the client side to know that the fields are filled. And a second time on server side to check the data before inserting them in a DB for examples... So why make 2 tests, if only one is good.

Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 14:19, Ernest E Vogelsinger wrote: At 12:59 07.03.2003, Michiel van Heusden said: [snip] I have some variables defined which i'm sending through get form name=form1 method=get action=result.php // input's etc /form now I have

Re: [PHP] rates for differents date?

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 00:57, Shaine Gordon wrote: hey guys ok question: 7days in a week. day 1-2 costs $10, day 3-5 cost $15, day 4-7 costs $10. ary you sure the line above is right ... could you explain the way that you want the cost to be added ... What happens in day 4 or 5? What is the

[PHP] Stupid Question

2003-03-07 Thread Eric Conrad
How do you make a command not return a warning... I thought it was the @ sign, but i think i'm wrong, and everything i've tried hasn't worked, i want this for a switch command if that matters. -Eric Conrad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Tom Woody woody@nfri.comRe: [PHP] how to ssl on php

2003-03-07 Thread Luis A
but how can i do that ?? hrere a set the ssl may you please guive to me a hand with that ??? i using apache to win32 - Original Message - From: Tom Woody [EMAIL PROTECTED] To: Luis A [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:02 AM Subject: Re: [PHP] how to ssl on php

Re: [PHP] Stupid Question

2003-03-07 Thread Liam Gibbs
How do you make a command not return a warning... I thought it was the @ sign, but i think i'm wrong, and everything i've tried hasn't worked, i want this for a switch command if that matters. It's the @ sign. Put it right before the command, as in @fopen(). Show us the line that is giving you

Re: [PHP] javascript

2003-03-07 Thread David Miller
You might be checking it 6 or 8 times if the user can't get all the fields filled in correctly. Creates a lot of traffic that isn't necessary between server and client. If javascript isn't enabled, there isn't a choice but if it is then the client side can prompt the 6 or 8 times until the user

[PHP] error while reading google-search-results

2003-03-07 Thread Jens Lehmann
For reading in and displaying a file $uri I use this short script: ?php $uri = 'http://www.google.de?q=test'; echo implode('',file($uri)); ? Of course this works well for almost every website, but I have problems reading in the results of google (for instance the URI above). The error message I

[PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Hi all, I have this query: SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b WHERE x.area_1 = a.id AND x.area_2 = b.id I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo the values for a.id and b.id? Thnks Charles -- PHP General Mailing List

[PHP] why is iconv not working as expected?

2003-03-07 Thread Fil
Hi there, I'm puzzled by the iconv() call from php. When I test it with cyrillic text, in the utf-8 or windows-1251 charsets, or when I try with iranian text, the following php call ?php echo @iconv($charset, 'ASCII//TRANSLIT', $texte)) ? brings me only question marks ???. What I

[PHP] safe_mode not working with php-4.3.1

2003-03-07 Thread Stephen Grier
Hi all, Has anyone noticed safe_mode not working correctly with php-4.3.1? Until recently we have been running php-4.2.3 with safe_mode enabled to host a multi-user public web server. Having upgraded to php-4.3.1 I noticed that scripts can now access files on the file system owned by a different

RE: [PHP] MySQL Alias and PHP

2003-03-07 Thread Rich Gray
Hi all, I have this query: SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b WHERE x.area_1 = a.id AND x.area_2 = b.id I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo the values for a.id and b.id? Thnks Charles I presume you mean area_name... Try

[PHP] Making a true statement false.

2003-03-07 Thread ed
Whenever I query a database with php I've always used the following code as a result. if ($row = mysql_fetch_array($result)) { do something } else { do seomthing else } This method will persuades you to take action on something true first then false. How would I write it so it would assume

[PHP] test for rtf

2003-03-07 Thread bill
Is there any way to test a file to confirm it is an RTF file? I'm thinking along the lines of how we can test for an image with getimagesize(). kind regards, bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] require_once adds a 1

2003-03-07 Thread Gary
Hi I've included the following in a php document: ?php echo @ require_once(anyfile.php) and it works exactly as I expect except at the end of the included document theres a single 1 displayed. I've noticed also that if I include a document in the included document the end result will be the

Re: [PHP] Making a true statement false.

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: Whenever I query a database with php I've always used the following code as a result. this way: if (!$row = mysql_fetch_array($result)) { do something } else { do seomthing else } This method will persuades you to take action on

Re: [PHP] require_once adds a 1

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 18:28, Gary wrote: Hi I've included the following in a php document: ?php echo @ require_once(anyfile.php) use only ?php require_once anyfile.php; ? if you use echo require_once(somefile.php); it will include the file and then echo 1 witch is the return value of

Re: [PHP] require_once adds a 1

2003-03-07 Thread Ernest E Vogelsinger
At 17:28 07.03.2003, Gary spoke out and said: [snip] Hi I've included the following in a php document: ?php echo @ require_once(anyfile.php) and it works exactly as I expect except at the end of the included document theres a single 1 displayed. I've

Re: [PHP] test for rtf

2003-03-07 Thread Andrew Brampton
Not to sure on the RTF file format, but checking the first few letters might help Quickly opening a RTF file I see that they start with {\rtf Maybe look for that. Andrew - Original Message - From: bill [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 4:22 PM Subject:

Re: [PHP] javascript

2003-03-07 Thread Jim Lucas
Plus, what if their was a textarea that you can't reload from the process page because the amount of data was greater then the max limit of the GET protocol? Then you would loose all that data. - Original Message - From: David Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday,

Re: [PHP] Making a true statement false.

2003-03-07 Thread Greg Beaver
Mincu Alexandru wrote: On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: Whenever I query a database with php I've always used the following code as a result. this way: if (!$row = mysql_fetch_array($result)) { do something } else { do seomthing else } It is simpler to do this: if ($row

Re: [PHP] Making a true statement false.

2003-03-07 Thread ed
Thanks for all the help. I was just placing the ! in the wrong place. Thanks again, Ed On Fri, 7 Mar 2003, Greg Beaver wrote: Mincu Alexandru wrote: On Fri, 2003-03-07 at 18:16, [EMAIL PROTECTED] wrote: Whenever I query a database with php I've always used the following code as

Re: [PHP] test for rtf

2003-03-07 Thread Radek Zajkowski
IF this data is being uploaded via form you should look into $_FILES array, in particular $_FILES[userfilename][type]; R On 3/7/03 11:33 AM, Andrew Brampton [EMAIL PROTECTED] wrote: Not to sure on the RTF file format, but checking the first few letters might help Quickly opening a RTF file I

[PHP] Configure with register_globals on

2003-03-07 Thread Mike Tuller
I am running OS X 10.2 and am trying to work with PHP and Adobe GoLive. GoLive tells me that I don't have PHP running, which I do, and on Adobe's site someone said that register_globals needs to be on. I know that this is not something that should be done, but I want to see if this is the

[PHP] Re: require_once adds a 1

2003-03-07 Thread Gary
Thank you for your replies they are appreciated, I've tried a few things in response to your answers but all I can get is either 1 by it self or no include. Ernest is correct in assuming there is code in the included file it is as follows perhaps you can see my mistake? Gary

Re: [PHP] Dollar signs in values

2003-03-07 Thread Jim Lucas
How are you including the file in question? Jim - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:58 PM Subject: [PHP] Dollar signs in values How is it I can properly get PHP to represent dollar signs when putting it

Re: [PHP] require_once adds a 1

2003-03-07 Thread James Holden
The '1' is received simply because your requirement clause echoed the result to the page. include, require and include_once all return boolean results of 1 or 0 which indicates a successful loading of said include. If you want to suppress the output of an include use ob_ methods which

[PHP] Checking for Null Variables

2003-03-07 Thread Christopher J. Crane
How do I check if a variable is blank or not. I am returning data from a MySQL database and if a field is empty I would like to do something different. I tried if($field[Name] == ) { do this } else { do this } It does not work right. Actually, at one point, it was working in the exact opposite

Re: [PHP] Checking for Null Variables

2003-03-07 Thread Florin Dumitrescu
Check out http://php.net/empty HTH, Florin. On Fri, 7 Mar 2003 12:24:29 -0500 Christopher J. Crane [EMAIL PROTECTED] wrote: How do I check if a variable is blank or not. I am returning data from a MySQL database and if a field is empty I would like to do something different. I tried

[PHP] Re: Checking for Null Variables

2003-03-07 Thread Bobby Patel
you can look at isset() and empty(). If you retrieve the query result with Mysql association (ie. $field=mysql_fetch_array($resource, MYSQL_ASSOC), then even the field has a blank value, there will be a blank variable created ($field[Name] is created but with no value)), however if you grab the

[Fwd: Re: [PHP] error while reading google-search-results]

2003-03-07 Thread James Holden
Welcome to a mine field of problems :-) 1. The url you have entered is invalid. Thats a good first check to make usually. Try /search?q=test to get that bit sorted. 2. Google prevents known useragents from accessing it's content as it believes you are acting as a spider or a search engine

[Fwd: Re: [PHP] Checking for Null Variables]

2003-03-07 Thread James Holden
quick way: if (!$field[name]){ } else {} elegant ways (there will be many): if (empty($field[name])){ // null or 0 } else {} if (is_null($field[name])){ // null } else {} is_scalar() // string is_integer() // integer is_float() // float etc etc etc Christopher J. Crane wrote: How do I check

[PHP] Forcing page refresh with http headers?

2003-03-07 Thread Daniel Joyce
I've used the HTTP Location, Expire, and Refresh headers to no effect. What's the magic order to 1) Refer a browser to a new location 2) Ensure that the location is refreshed? I want to avoid using meta http-equiv tags, as this complicates things in the system I am designing -Daniel

Re: [PHP] Tom Woody [PHP] how to ssl on php

2003-03-07 Thread Luis A
pal how can i find that modules i dont have that modules LoadModule ssl_module modules/ApacheModuleSSL.dll LoadModule ssl_module modules/ApacheModuleSSL.so LoadModule ssl_module modules/mod_ssl.so im using Apache/1.3.26 (Win32) PHP/4.3.0 i dont have internet access i donwload that

Re: [PHP] Re: fopen/fgets

2003-03-07 Thread Bryan Koschmann - GKT
Thanks.. I feel stupid, I wasn't paying attention. *sigh* seems to work now :) Bryan On Fri, 7 Mar 2003, Adrian Ciutureanu wrote: |you close the input file in while loop ( fclose($fp); ) | |Bryan Koschmann - Gkt [EMAIL PROTECTED] wrote in message |news:[EMAIL PROTECTED] | Can someone

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Thanks for the help. Almost there. Here is what I have: SELECT x.id, x.headline, x.description, a.area area_a, b.area area_b FROM tbl_funding x, tbl_dra a, tbl_dra b GROUP BY x.id LIMIT 0 , 30 The problem is that $array[area_a] and $array[area_b] display the same info. On Friday, March 7,

[PHP] Running PHP 4 PHP 5 Simultaneously

2003-03-07 Thread Jason Lange
Greetings! I was wondering if it is possible to run both PHP 4 and PHP 5 simultaneously under Apache 2.0.43 on Windows XP Home. I currently have PHP 4.3.0 (SAPI) running successfully under it, but would like to add PHP 5-dev for experimenting. What I'd like to do is allow PHP 4 files to have

[PHP] Displaying few words from record in mySQL

2003-03-07 Thread Rahul.Brenda
Glory Supreme Power What i'm looking to do is.. i want to display only the first few words of the record in my mySQL database.. For example.. i have a table with a field title.. and let's say my last record has the value in title field as This is going to be really cool What i want to

[PHP] Re: Checking for Null Variables

2003-03-07 Thread Christopher J. Crane
isset is the function I was looking for. I could not remember what it was. Thank you. Bobby Patel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] you can look at isset() and empty(). If you retrieve the query result with Mysql association (ie. $field=mysql_fetch_array($resource,

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Jim Lucas
Then the information in the DB is the same. Jim - Original Message - From: Charles Kline [EMAIL PROTECTED] To: Rich Gray [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:03 AM Subject: Re: [PHP] MySQL Alias and PHP Thanks for the help. Almost there. Here is what

[PHP] Min and max of array

2003-03-07 Thread Liam Gibbs
Is there a way to find the minimum and maximum values of an array? min() and max() don't take arrays.

Re: [PHP] Displaying few words from record in mySQL

2003-03-07 Thread Kevin Stone
- Original Message - From: Rahul.Brenda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:22 AM Subject: [PHP] Displaying few words from record in mySQL Glory Supreme Power What i'm looking to do is.. i want to display only the first few words of the record in

Re: [PHP] Min and max of array

2003-03-07 Thread Kevin Stone
- Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Friday, March 07, 2003 12:07 PM Subject: [PHP] Min and max of array Is there a way to find the minimum and maximum values of an array? min() and max() don't take arrays.

Re: [PHP] require_once adds a 1

2003-03-07 Thread Gary
Thanks for your response James! but still I must be doing something wrong the 1 is a persistent little bugger. Have you any tips on how to rewrite: ?php echo @ require_once(topten.php); ? using the ob_methods? Again thanx for your response Gary James Holden wrote: The '1' is received simply

Re: [PHP] require_once adds a 1

2003-03-07 Thread Ernest E Vogelsinger
At 20:19 07.03.2003, Gary said: [snip] Thanks for your response James! but still I must be doing something wrong the 1 is a persistent little bugger. Have you any tips on how to rewrite: ?php echo @ require_once(topten.php); ? using the ob_methods?

Re: [PHP] Min and max of array

2003-03-07 Thread Liam Gibbs
you can sort it and get the values. I would, but I need the array in the same order. I can't sort it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Access

2003-03-07 Thread Kiswa
Hi. Is their anyway to connect to a Access Db using only the filesystem like $connect = odbc_connect(\Db\Webdb.mdb, nobody, nobody); thus pointing directly to the file not using drivers??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Min and max of array

2003-03-07 Thread Jim Lucas
make a copy of the original array and sort that, when you find it correct key, use that to refer to the correct value in the original array. Jim - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:24 AM Subject: Re: [PHP]

Re: [PHP] test for rtf

2003-03-07 Thread Brady Hegberg
You could always open it and see if the first few characters are {\rtf1. Brady Is there any way to test a file to confirm it is an RTF file? I'm thinking along the lines of how we can test for an image with getimagesize(). kind regards, bill -- PHP General Mailing List

[PHP] Problem

2003-03-07 Thread Kiswa
Ok here is the problem. At home i run an Apache server with php4 and the server its supposed to be run on is NT5 and iis with php4 The site is run on an access db through ODBC. It works fine at home where i have a system link to the db. On the iis server the admin created the same link but the

Re: [PHP] Min and max of array

2003-03-07 Thread Kevin Stone
- Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Friday, March 07, 2003 12:24 PM Subject: Re: [PHP] Min and max of array you can sort it and get the values. I would, but I need the array in the same order. I can't sort it. --

Re: [PHP] populating textarea with data

2003-03-07 Thread Hugh Danaher
get your field info from a mysql search then do: print textarea name=field rows=3 cols=50.stripslashes($array_result['field'])./textarea; Hope this helps, Hugh - Original Message - From: Mirco Ellis [EMAIL PROTECTED] To: Php-General (E-mail) [EMAIL PROTECTED] Sent: Friday, March 07,

[PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-07 Thread Poon, Kelvin (Infomart)
Hi, I got a little project and I need to come up with a solution on how to finish it and was hoping if you guys can give me any ideas. I have a PERL script on a Unix AIX machine that checks for incoming update of data. Specificly what it does is, when it runs, it will look at the corresponding

  1   2   >