[PHP] PHP5, Windoze, Extensions

2006-09-27 Thread Dave Carrera
Hi List, Sorry to bore most of you with this one but i cannot get extensions to load using latest php5, apache 2.0xxx I have std php running and it tells me that my php.ini is being read from c:\php\php.ini. This is correct. But what ever i change extension_dir to it always says c:\php5.

Re: [PHP] PHP5, Windoze, Extensions

2006-09-27 Thread Dave Carrera
problems though. In fact I just upgraded from PHP5.0.4 to 5.1.4 and it was really easy (much to my surprise). Good luck George in Oxford -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: 27 September 2006 8:04 am To: php-general@lists.php.net Subject: [PHP] PHP5

Re: [PHP] PHP5, Windoze, Extensions

2006-09-27 Thread Dave Carrera
-Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: 27 September 2006 9:28 am To: George Pitcher; php-general@lists.php.net Subject: Re: [PHP] PHP5, Windoze, Extensions Thanks for that George, I managed to isolate the problem PEAR had slapped its own include_path

[PHP] just a php/mysql logic question

2005-08-28 Thread Dave Carrera
Hi All, Just sitting here thing about a php app i am making and an issue i have been aware of but never looked into has made itself apparent to me. Its to do with my php app and transacting with the mysql table of which my records are kept. note: sorry if this goes or is of topic. I have

[PHP] probably a simple mysql copy multiple rows question

2005-11-27 Thread Dave Carrera
Hi All, I have a table with a structure like this. name code price what i would like to do is copy the data in these rows to new ones in the same table but change the name col, keep the current data for code col and set price col to a default value. so if the output of my current table is

[PHP] How do i display a neat table of returned mysql data?

2005-11-29 Thread Dave Carrera
Hi List, I have some mysql table data that i would like to display back to the web user in a neat and tidy way using php. Data: col1 col2 col3 test 1.99 F test 1.99 F test 1.99 F test 0.99 F test 1.99 F bang 2.99 F bang 3.99 F bang 4.49 F bang 2.99 F bang 2.99

[PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
Hi List, Is there a way of sending users with a local ip address say 127.0.0.1 and 192.168.xxx.xxx to goto one page and all other visitors to goto another? Kind Regards Dave C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
Jay Blanchard wrote: [snip] Is there a way of sending users with a local ip address say 127.0.0.1 and 192.168.xxx.xxx to goto one page and all other visitors to goto another? [/snip] Yes, there is. $_SERVER['REFERER'] will give you the referer mosy of the time. More info from TFM can be

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
i know about $_SERVER['REMOTE_HOST'] but i think i should of said how do i compare any address starting with 192.168. sorry if my first question was to vague David Grant wrote: Try $_SERVER['REMOTE_HOST'] instead of REFERER. Dave Carrera wrote: Jay Blanchard wrote: [snip

Re: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dave Carrera
{ // Remote } Dave Carrera wrote: i know about $_SERVER['REMOTE_HOST'] but i think i should of said how do i compare any address starting with 192.168. sorry if my first question was to vague David Grant wrote: Try $_SERVER['REMOTE_HOST'] instead of REFERER. Dave Carrera

Re: [PHP] Accessing photos outside the web folder

2005-12-14 Thread Dave Carrera
Philip Hallstrom wrote: I'm writing a content management application which saves file paths in a database and allows users to search the database for those files. Problem I'm having is that although the PHP script that handles the database queries works fine, when the search results get to

[PHP] any https / php gotchas ???

2005-12-25 Thread Dave Carrera
Hi List, Are there any https / php gotchas to take into consideration for an app i am writing that will run within a https environment ??? Thank you in advance for any advice or links regarding this question. Dave C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] php / mysql / js search result question

2005-12-27 Thread Dave Carrera
Hi List, I have a very long list of customer names which i know is easy to get from a mysql result using php, no prob there. But what i would like to do is offer input box and when the user enters a letter, i think this will require client side onchange(), the full list, i think might be in

[PHP] swaping mysql table values

2005-03-05 Thread Dave Carrera
Hi List, I have a table like the diag below: ID Name Pos 1 jig 1 2 pig 2 3 dig 3 4 fig 4 What i am trying to do is upon click to change pos 1 to pos 2 and pos 2 to pos 1so that i can manage the position i show my list. Can someone throw me some nuggets of logic wisdom as my searchs are

[PHP] Sending SMS messages ?

2003-09-12 Thread Dave Carrera
Hi All Is there a way to send sms messages via php. I really dont know anything about this so any info,pointers or resources will be very much appreciated. Thank you in advance for any help. Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

[PHP] Basic Auth question

2003-07-01 Thread Dave Carrera
I have a issue with basic auth which I hope someone here can throw some light on. 1) I have already got my SESSION auth working well 2) Once someone logs in I need to send some basic auth info to a dir on another server to let my logged in user to view it. This is where I am stuck :-( I think

[PHP] Previous Basic Auth clarified

2003-07-01 Thread Dave Carrera
Hi All I think I missed a bit to my Basic Auth issue which I hope to clarify here. 1) User successfully logins into my UNIX/Apache/Php site using my MySql/SESSION/$_POST combo. 2) Now I need to send a username:password pair to a Windows box to allow access to a Basic Auth protected resource on

[PHP] Read a file and scroll it?

2003-07-07 Thread Dave Carrera
Hi All I know that some level of JS will be needed for this but how can I do this. 1) I have a script that writes to a file. All ok there ;-) 2) I want to load this contents of the file, line by line, so that it scrolls upwards. So how can I do that. What JS would I need and how do I read the

[PHP] Dissecting an email address

2003-11-02 Thread Dave Carrera
Hi All, How do you split an email address sent via form post text field. I.e.: split [EMAIL PROTECTED] into me@ hotmail .com Its the domain bit I am interested in, not the username or tld. Any help is appreciated. Thank you in advance Yours Dave C --- Outgoing mail is certified Virus Free.

[PHP] Dose this exist?

2003-11-09 Thread Dave Carrera
Hi List, Is there such a tool that will generate a form and relevant code when given the mysql db-table-fields to update, select, insert etc ? I ask as hand coding forms and the relevant php code is becoming very time consuming and I need to speed up this operation. Any URL's would be useful.

[PHP] Whats wrong with this query?

2003-11-10 Thread Dave Carrera
$addamysqluser = mysql_query(grant select,insert,drop,update,delete,create,index,alter on $_POST[f2] to [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]); What is wrong with the above php based mysql_query ? I am trying to add a user to mysql granting just the specified rights to table defined by the

[PHP] Forms and Arrays

2003-11-28 Thread Dave Carrera
Hi List, I have a dynamically generated form with inputs with names that create arrays i.e.: input name=fname[] input name=flab[] input name=fplc[] The extra bits for the inputs are omitted deliberately for this question but exists in the form i.e.: size, value, type. And these are repeated as

RE: [PHP] Forms and Arrays

2003-11-28 Thread Dave Carrera
example will be most appreciated. Dave C -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: 28 November 2003 14:50 To: 'Dave Carrera'; [EMAIL PROTECTED] Subject: RE: [PHP] Forms and Arrays On 28 November 2003 14:36, Dave Carrera wrote: Hi List, I have

[PHP] String construction help required please

2003-12-01 Thread Dave Carrera
Hi List, I need to construct a string to visually show to the user some $_POST vars. I need to display : $_POST[$var], Including the and the , . I have tried : \\$_POST[\.$var.\], but that is very wrong. Could one of you kind list members show me what it should be please ? Thank you in

[PHP] FreeBSD port install question

2003-12-04 Thread Dave Carrera
Hi List, I am in need to update our version of php to the latest stable 4.3.4 and in GD, XSLT and other goodies. The issue I have is how do I tell a port to install but not over right the current working version so that I can test it first. Make will be as a module for apache. I hope this is

[PHP] Sort a while loop ?

2004-01-02 Thread Dave Carrera
Hi List, How can I sort a while loop or do something before it to achieve the following? I have a MySql result fetching something like this: Id Name Number 1 Bob 34567 2 Ben 234 3 Jeff 4567 4 Dave 2345 But I want to sort the while loop by Number Highest first so the result looks like

RE: [PHP] Sort a while loop ?

2004-01-02 Thread Dave Carrera
Thanks Tom, I had a complicated sql line and used my count(var) for the order by statement and bingo. Just sometimes you forget the obvious an need a kick up the :-) Dave C -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: 02 January 2004 15:22 To: Dave Carrera

[PHP] Current Month Only ?

2004-01-05 Thread Dave Carrera
Hi List, How do I return from a MySql db, rows which only contain data for the CURRENT Month / Year ? So this month would currently return 5 days worth of data since its the 5th of Jan 2004. Thank you in advance for any examples, pointers or urls that may help with this. Dave C --- Outgoing

[PHP] RE: Current Month Only ?

2004-01-05 Thread Dave Carrera
Dont worry worked it out :-) Dave c -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: 05 January 2004 10:02 To: '[EMAIL PROTECTED]' Subject: Current Month Only ? Hi List, How do I return from a MySql db, rows which only contain data for the CURRENT Month / Year

[PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
Hi List, I have a self-made function that uses a MySql statement something like this: Function MyFunc(){ sql = mysql_query(select * from table where somefield=\somevar\){ while(blah blah){ $var =blah blah; } } return $blah; } This works ok but if I add a bit to the sql then I get a

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
would appreciate it. Thank you Dave C -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 12:48 To: Dave Carrera Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Function Problem (Long-ish) Hello Dave, Tuesday, January 13, 2004, 12:34:33 PM, you wrote: DC

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
-Original Message- From: Vincent Jansen [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 13:05 To: 'Dave Carrera'; 'Richard Davey' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Function Problem (Long-ish) I doubt that... MySQL says: Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns

[PHP] Very Simple one for u all :-)

2004-01-15 Thread Dave Carrera
Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this If(($var == val) || ($var2 == val2)){ Blah blah } I think this is a if var == val AND var2 == val2 then onwards but

[PHP] RE: Very Simple one for u all :-)

2004-01-15 Thread Dave Carrera
I told you it was simple and I sort of answered it myself ;-) If(($var == val) OR ($var2 == val2)){ Blah blah } Sorry for the time wasting: Note to self: Wake up before trying to change the world :-) Dave C -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: 15

[PHP] Payment Gateway List ?

2004-01-16 Thread Dave Carrera
Hi List, Is there a definitive list or site that shows the required fields to post to or we need to be sent data in this format to the various and numerous pay gateways offering credit card clearance services. Paypal is straight forward and the code required is freely available on their site,

RE: [PHP] Payment Gateway List ?

2004-01-16 Thread Dave Carrera
into the PPG forum. I Hope this helps everyone Dave C -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: 16 January 2004 11:17 To: Dave Carrera Subject: RE: [PHP] Payment Gateway List ? Hi Dave If you do get such a list i will be happy to host it. However, someone

[PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
Hi List, I have a function that makes a call to mysql based on certain vars. ---example Function MyFunc(){ if(isset($_POST[var])){ $sql = mysql_query(select * from table_name where field=\$_POST[var]\ ); $returnsomething =blah blah; } return $returnsomething; } And that all works fine

RE: [PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
. $returnsomething =blah blah; } return array($returnsomething, $num); } list($text, $numrows) = MyFunc(); ? hth toby - Original Message - From: Dave Carrera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 18, 2004 11:22 AM Subject: [PHP] Is this possible ? Hi

RE: [PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
you Dave C -Original Message- From: Toby Irmer [mailto:[EMAIL PROTECTED] Sent: 18 January 2004 10:29 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re: [PHP] Is this possible ? One way: ? Function MyFunc() { if(isset($_POST[var])){ $sql = mysql_query(select * from table_name

[PHP] Show Results one at a time ?

2004-01-29 Thread Dave Carrera
Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time. --- Test Function Code --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10); $i=0; while($i =count($cnt)){ set_time_limit(2); echo

RE: [PHP] Show Results one at a time ?

2004-01-29 Thread Dave Carrera
:12 To: 'Dave Carrera'; [EMAIL PROTECTED] Subject: RE: [PHP] Show Results one at a time ? On 29 January 2004 12:51, Dave Carrera wrote: Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time

[PHP] General Function usage question (simple)

2004-02-13 Thread Dave Carrera
Hi List, Here is an easy one for you :-) --- Example1 Function --- Function MyTestFunction(){ // do something here } --- Example2 Function --- Function MyTestFunction($var1,$var2){ // do something here } My question is what do or where do or why are the $var1 and or $var2 included inside

[PHP] Make Php with ALL modules / options

2004-02-19 Thread Dave Carrera
Hi List, Is there a way to easily install Php with ALL additional modules / options available on FreeBSD 4.7 (not using ports) ? The mods I can think of at the moment are GD2+ ImageMagick MySql Zlib XSLT And any other ones that will make life easier I ask as I have searched and search but

[PHP] Send Attachments via mail using form

2004-02-26 Thread Dave Carrera
Hi List, I would like to allow my visitors to send attachments via my contact form. I already have email validation, field verifications and other nice bits but I am stuck on the add attachment bit. Also would this be limited to one file or can multiple files be allowed ? Thank you in advance

[PHP] Eregi question

2004-03-11 Thread Dave Carrera
Hi List, I Know this is basic and I am sorry to bother the list with this question but I am confused, probably working to hard :-) I want to end up with a part of a string returned by $_POST to work with in my function. The string might be put into the text box like so, its a domain name

RE: [PHP] Eregi question

2004-03-11 Thread Dave Carrera
Thanks da koenich, Although $temp[0] gives me the domain name rather than the tld but thanks very much for your help, I knew it was easy :-) Yours Truly Dave C -Original Message- From: Da Koenich [mailto:[EMAIL PROTECTED] Sent: 11 March 2004 15:19 To: Dave Carrera Cc: [EMAIL

[PHP] Simple one I think

2004-03-29 Thread Dave Carrera
Hi List Sorry for this basic one but my brains gone to sleep and I can t see it. --- Problem example $vocals = array( name = array('Jonny Flash', 'Bill Banger', 'Sarah Jane'), skill = array('87', '77', 93), fee = array('22000', '18500', '39000')

[PHP] RE: Simple one I think

2004-03-31 Thread Dave Carrera
Thanks for the insight Ben, Straight forward when I looked at your code examples and this answers a couple of other things to. Thanks once again for your clear help Dave C -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: 30 March 2004 17:08 To: Dave Carrera Subject

[PHP] Checkdnsrr ?

2004-03-31 Thread Dave Carrera
Hi List, Is using checkdnsrr a good way to tell if a domain name is available ? If I ask checkdnsrr to look for 'NS' records and the result comes back as false then dose that mean a domain name is available to use ? Also what dose checkdnsrr use to lookup records. Is it the internal DNS server

[PHP] Domain Name ?

2004-04-01 Thread Dave Carrera
Hi List, I asked this a while back but have lost the replies :-( $domain = http://www.foo.com;; I want to strip our every thing and be left with only foo to use in my function. I think its multiple str_replace but have forgotten how to do it. Thank you in advance for any help Dave C ---

[PHP] Compile PHP question

2004-04-15 Thread Dave Carrera
Hi List, How do I compile php without apache, with mysql (client is installed) as cli. The reason I ask is that I would like to do some command line scripting using php as my preferred scripting language and I dont have apache loaded on the server as this is going to be on a dedicated email

RE: [PHP] Compile PHP question

2004-04-16 Thread Dave Carrera
. Yours truly Dave Carrera -Original Message- From: David A. Stevens [mailto:[EMAIL PROTECTED] Sent: 16 April 2004 18:59 To: Dave Carrera Subject: Re: [PHP] Compile PHP question Please remove my address from any future correspondence about PHP. --- Incoming mail is certified Virus Free

[PHP] preg_replace to delete all js code in string help needed

2004-05-09 Thread Dave Carrera
$text2 = preg_replace(/script[^]+.*?\/script/is,,$text2); Leaves output with language=javascript blah blah Dose anyone know of a pattern that will get rid of ALL javascript from a string. Thank you for any help Dave Carrera --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus

[PHP] RE: preg_replace to delete all js code in string help needed

2004-05-09 Thread Dave Carrera
Thanks Greg, That sorted that out nicely :-) Dave Carrera -Original Message- From: greg [mailto:[EMAIL PROTECTED] Sent: 09 May 2004 14:17 To: Dave Carrera Subject: Re: preg_replace to delete all js code in string help needed Dave Carrera wrote: $text2 = preg_replace(/script

[PHP] Complicated sql for search query ?

2004-05-10 Thread Dave Carrera
.= or body_keywords like \%$far[$kw]%\ ; } } //echo $query; $sqlor = mysql_query(select * from database where.$queryor. ) or die(mysql_error()); Any advise or examples are very much appreciated. Thank you in advance for any help Dave Carrera --- Outgoing mail

[PHP] Showing only part of string

2004-05-07 Thread Dave Carrera
thank you in advance for any help given. Thank you Dave Carrera --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Showing only part of string

2004-05-07 Thread Dave Carrera
Thanks John, Works a treat. Thank You Dave Carrera -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 07 May 2004 12:32 To: Dave Carrera Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Showing only part of string Dave Carrera wrote: $string = This is a test string

[PHP] Strip_tags issue / question

2004-05-01 Thread Dave Carrera
Hi List, I am using stip_tags to return to me just the words contained in a page from my website but what is displayed is some thing like this : --- Output Example --- hello world Why so much space ? --- End - So

RE: [PHP] Strip_tags issue / question

2004-05-01 Thread Dave Carrera
Thanks David, That sorted that out nicely :-) I hope that helps someone else on the list. Dave C -Original Message- From: David Risner [mailto:[EMAIL PROTECTED] Sent: 01 May 2004 14:36 To: Dave Carrera Subject: Re: [PHP] Strip_tags issue / question How about something like

[PHP] Php MySql selection question

2004-05-01 Thread Dave Carrera
Hi List, I am trying to make a search box for my site and I ask the list how can I search 24 tables to find a search string posted by a form. I get Column: 'listing' in where clause is ambiguous when I run $sql = mysql_query(select * from $tbs where listing like \$_POST[tglstring]\) or

[PHP] Select from 24 tables

2004-05-01 Thread Dave Carrera
Hi List, How do I select data from 24 table in my database. Each one is identical in structure layout being Id,name,list I want to select where like $_POST[var] from a form all of the tables but I am having trouble :( I thought making a var string like $string = table1,table2,table3,.;

[PHP] String Question

2004-05-02 Thread Dave Carrera
Hi List, How would I show 100 chars after finding the first instance of a searched word in a string. So I have a string of which I search for the first instance of hello and display from there 100 more chars. My output word then be something like: hello and show the next 100 chars... Thank

[PHP] Setting fopen timeout ?

2004-05-02 Thread Dave Carrera
Hi List, How can I set fopen to time out if a url is not reachable ? I have tried set_time_limit but that dose not seem to work. Thank you in advance for any help or pointers. Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version:

[PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Dave Carrera
in the string highlighted. Sorry for such a big post but I am trying to be as clear as possible to help others who may find this useful Thank you for any help or code adjustments Dave Carrera --- Current code below --- ?php $string = Hello hello server site search me and highlight my words in search

RE: [PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Dave Carrera
Hi Burhan, Tried that but I think I did not use it in the correct place, tried many. Could I be very cheeky and ask for an example using my code listed in the previous post ? Thank you for your reply and any help you may give. Dave Carrera -Original Message- From: Burhan Khalid

RE: [PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Dave Carrera
$string; } array_walk($string, 'searchlines'); //echo Clean: $string2br /; //echo Criteria: $searchbr /; //echo HighLighted: $h_stringbr /; ? My output is 3 x the expected output. Why ? Any help is appreciated Dave Carrera -Original Message- From: Burhan Khalid [mailto:[EMAIL

RE: [PHP] Walk though array applying my highlighting routine? [SOLVED]

2004-05-05 Thread Dave Carrera
Thank you list for you help -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 11:00 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re: [PHP] Walk though array applying my highlighting routine? Dave Carrera wrote: Hi List, I have worked out how

[PHP] Way OT MySql Update

2004-05-06 Thread Dave Carrera
the datenew for 1 year more that date col value. Thank you for any help you may give and once again sorry for being ot. Dave Carrera --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05

[PHP] Pear question

2004-05-20 Thread Dave Carrera
Hi List, How do I tell if pear is installed ? If it is not, then how do I add it to my Php. My Php is 4.3.0 on Unix system Thanks for any help or advice Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.687 / Virus

[PHP] RE: Pear question

2004-05-20 Thread Dave Carrera
command line. To check if you have the pear installer intalled, type pear list-packages as superuser on your machine. If the installer is not installed, see the http://pear.php.net/ website for installation information. Dave Carrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi

[PHP] Showing weekly activity reports from Php / MySql script

2004-05-21 Thread Dave Carrera
Hi List, How do I group rows from a MySql table and show them as a list of activity by week numbers. I.e.: WEEK 1: This happened, this happened... WEEK 2: This happened, this happened... And so on. I hope this makes sense and one of you clever guys (or girls) can advise me on this one.

[PHP] List all files in remote url ?

2004-05-25 Thread Dave Carrera
Hi List, I am trying to list all files in a remote url for processing into my attempt at a search engine but I cant work out how to list the files found in a given domain name. The manual has nothing on this, as I can see, and searching the web has drawn a blank. So I ask the list if there is a

[PHP] Preg_match question

2004-05-29 Thread Dave Carrera
Hi List, I have managed to list files on my website using a combination of preg_match_all and str_replace in an array. What I would like to know is how do I lift out of a a tag the contents from href=. Example: Link returned = a href=./somepage.phpOf to some page/a The bit I want to play with

RE: [PHP] Preg_match question

2004-05-29 Thread Dave Carrera
Thanks Marco, I worked it out, with trial and error but I will refine what I have by reading your examples. Is there a preg to find a ? in a string since a ? is used for calculations as I see it. Thank you and others for all the help with this Dave Carrera -Original Message- From

[PHP] Simple preg I think

2004-05-30 Thread Dave Carrera
Hi List, How do I match an accordance of ./ in a string (without the quotes) ? I have tried preg_match(/\.\//i, $str); Which I thought would work , as per the manual, but no joy. Any help or guidance is appreciated Thank you in advance Dave C --- Outgoing mail is certified Virus Free.

RE: [PHP] Simple preg I think [SOLVED]

2004-05-31 Thread Dave Carrera
01:53 To: Dave Carrera Subject: Re: [PHP] Simple preg I think Dave Carrera You are right! $str= asdf./test; echo preg_match(/\.\//, $str ,$arr); //print 1 print_r($arr); === 2004-05-30 11:55:00 === Hi List, How do I match an accordance

[PHP] Slightly OT Mysql question

2004-05-31 Thread Dave Carrera
Hi List, Sorry for this question being slightly OT but its is to due with my Php script in a way. MySql has stopped adding rows since the db table hit 1mb... Anyone know why ? I have search mysql.com docs and other web resources but can not figure it out. Running FreeBSD 4.7 and MySql 3.23.58

[PHP] Two people working on the same app / script?

2004-09-30 Thread Dave Carrera
options are useful for us. If any of you good people have ideas or solution urls or pages for reading could you please let me know. I thank you fully in advance for any help with this Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked

[PHP] Dose this tool exist

2004-10-09 Thread Dave Carrera
Hi List, Is there a GUI tool that can help make relationships between MySQL tables ? I saw a tool somewhere that you dragged the relevant table into a kind of workspace and selected what rows you wanted and it made the necessary sql for select. I also saw somewhere a tool that made it easy to

[PHP] Php 4 and Php 5 on same box

2004-10-28 Thread Dave Carrera
Hi List, I have php 4 running all ok on a freebsd box installed from ports. What I would like to do is install php5 with all modules so's not to over right the php4 install and tell my users that they can test their scripts against the new php5 by including the path to php5 in their scripts

[PHP] Configure help / advise

2004-11-05 Thread Dave Carrera
Hi List, I want to configure a new php4 (latest stable) but include some extra modules Currently I have the standard mods plus GD using this for configure './configure --with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local --prefix=/usr/local' I want to add SSL, and all other mods that

[PHP] I need to pass vars to external cgi script ?

2004-12-11 Thread Dave Carrera
Hi All, I need to send some vars to a cgi script. The script url is like this http://www.example.com/cgi-bin/script.cgi?var1=my_first_php_var;var2=my_seco nd_php_var and so on. How do I send / call this script from inside my php script ? Any help I appreciated Thank you in advance Dave C

RE: [PHP] I need to pass vars to external cgi script ?

2004-12-11 Thread Dave Carrera
Thanks John, I get fopen expects second param when I call it. What would this be ? r w x or something else ? Thanks for the help Dave Carrera -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: 11 December 2004 15:26 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re

[PHP] Nameserver checking ?

2004-12-21 Thread Dave Carrera
Hi List, Is there a way of checking a list of say 10, 100, 1000 domain names to see if they actually point to our nameservers and report back which ones are not ? I would really appreciate any help you may give with this enquiry and I thank you fully in advance Dave C -- No virus found in

[PHP] Barcode info anyone...

2004-08-05 Thread Dave Carrera
and the data from the barcode reader would go into the form field of which I can issue a OnChange instruction, but I might be completely wrong. Any pointers, urls, advice, hardware suggestions (UK Based) very much welcome Thank you in advance for any help Dave Carrera -- UK Web Hosting @ http

[PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
this is not as clear as mud and if you need further clarity to be able to advise me then I will be happy to correspond. I thank you fully in advance for any help, logic pointers or nuggets of wisdom. Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
that helps Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: 11 August 2004 19:00 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re: [PHP] Adjust two or more mysql rows ? Yup, confused me... what

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
] to 0 then run the sql again as it will get the row which has a qty value Keep going til $newval = 0 exit. Probably wont work as I have it laid out here but I think the basic logic is ok. Hers goes :-) Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com -Original Message

[PHP] Barcodes ?

2004-09-10 Thread Dave Carrera
Hi List, Anyone have any pointers to examples of Code 39 barcode generation using php please. Thanks for any help Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.754

[PHP] Can you help ?

2004-09-23 Thread Dave Carrera
for people for this project. Yours Truly Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.768 / Virus Database: 515 - Release Date: 22/09/2004 -- PHP General

[PHP] Login script login

2007-02-02 Thread Dave Carrera
Hi All, Having a grey brain moment here and need some advise on the logic of this, should be simple, login script. I am checking validity of customer number customer email customer password (md5 in mysql) So i have my form with relevant fields Now i am getting problems with either sql or

Re: [PHP] Login script login

2007-02-02 Thread Dave Carrera
i am comparing the db result with the $_POST correctly Struggling here a bit :-( Dave C Stut wrote: Dave Carrera wrote: Hi All, Having a grey brain moment here and need some advise on the logic of this, should be simple, login script. I am checking validity of customer number customer