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

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

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

2004-12-09 Thread ApexEleven
I did something like this a while back, I believe I used chunk_split [code] ? $year_split = date(Y); $chars = chunk_split($year_split,2); print_r($chars); ? [/code] it'll output something along the lines of: 20 04 Hope this helps, --

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

2004-12-08 Thread Tyler Replogle
have you tride using chop() ? # begin code $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

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
?php $hello2 = chop($year_split); echo $hello2; ? outputs: 2004 Whats the correct syntax for it? The manual said.. This function is an alias of rtrim(). and: rtrim (PHP 3, PHP 4 ) rtrim -- Strip whitespace from the end of a string On Wed, 08 Dec 2004 18:11:19 -0800, Tyler Replogle

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

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
Hi Eamon, It looks like you need to upgrade your code to use the superglobal arrays. Change print $unitID; to print $_GET['unitID']; and see if that helps. You can find more information regarding superglobals here: http://uk.php.net/en/language.variables.predefined HTH

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

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

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

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

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 ')' ... /{([^}]*?)}/

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

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:

Re: [PHP] Help with preg_match_all()

2004-10-31 Thread Curt Zirzow
* Thus wrote Francisco Javier Escoppinichi Fernndez: Hello people... I'm relatively a beginner with regular expressions, so I need a little help here.. I hope you can help me... If you read the whole section @ http://php.net/pcre you'll be able to do this in your sleep. Ok, I have a HTML

Re: [PHP] Help with preg_match_all()

2004-10-31 Thread Francisco Javier Escoppinichi Fernández
Thanks! Worked like a charm! *Problem solved* On Mon, 1 Nov 2004 03:01:12 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Francisco Javier Escoppinichi Fernndez: Hello people... I'm relatively a beginner with regular expressions, so I need a little help here.. I hope you can

Re: [PHP] Help needed

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 15:22:29 +0530, suma parakala [EMAIL PROTECTED] wrote: I developed a html form in which I have text box and combo box. Now my problem is I have to pass the values of this page to another page. How can i pass the values/variables to next page using href Kindly help me

RE: [PHP] Help needed

2004-10-29 Thread Graham Cossey
Hi I developed a html form in which I have text box and combo box. Now my problem is I have to pass the values of this page to another page. How can i pass the values/variables to next page using href Kindly help me Thanks Suma As you've posted to a PHP list I will assume your

[PHP] SOLVED Re: [PHP] Help: Database search and results

2004-10-24 Thread Stuart Felenstein
Wow~! I'm getting good. --- Stuart Felenstein [EMAIL PROTECTED] wrote: I have created a database search and results set. Things seem to work fine until I add the join statements into the results page query string. If I don't use the joins , the search works great. It returns the correct

Re: [PHP] Help: Database search and results

2004-10-24 Thread Stuart Felenstein
Ooops, not solved yet. --- Stuart Felenstein [EMAIL PROTECTED] wrote: I have created a database search and results set. Things seem to work fine until I add the join statements into the results page query string. If I don't use the joins , the search works great. It returns the correct results

Re: [PHP] Help! No output from PHP CLI

2004-10-21 Thread Jason Wong
On Wednesday 20 October 2004 12:06, Warren Guy wrote: I'm having a strange problem with command line PHP. Scripts seem to function fine, however with no output. [EMAIL PROTECTED]:~ php ? echo moocows\n; ? ^D [EMAIL PROTECTED]:~ Try using ?php ... ? -- Jason Wong - Gremlins Associates -

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
If it's okay I'll throw out two more questions then. 1-Probably a silly question, but is a faux pas if I don't do client side [javascript] validations ? 2a- Textboxes - provided I'm not allowing special characters (only alphanumeric) does this alone protect me from things like sql injections ?

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Graham Cossey
got some great info. http://shiflett.org especially: http://shiflett.org/articles HTH Graham -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 19 October 2004 10:26 To: Graham Cossey; [EMAIL PROTECTED] Subject: RE: [PHP] Help: Suggestions for multi page form

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
-Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 19 October 2004 10:26 To: Graham Cossey; [EMAIL PROTECTED] Subject: RE: [PHP] Help: Suggestions for multi page form validation If it's okay I'll throw out two more questions then. 1-Probably

RE: [PHP] Help With Error

2004-10-19 Thread php-list
Pablo, Thanks for responding. I found out what the problem was. There was an argument that was empty (i.e. empty string) in the add_cat() method. Thanks for your help, I really appreciate it. :) [snip] Notice: Undefined index: 0 in

Re: [PHP] Help! No output from PHP CLI

2004-10-19 Thread Matthew Sims
Hi all, I'm having a strange problem with command line PHP. Scripts seem to function fine, however with no output. [EMAIL PROTECTED]:~ php ? echo moocows\n; ? ^D [EMAIL PROTECTED]:~ However works fine on another machine with a seemingly identical php.ini [EMAIL PROTECTED]:~ php ?

RE: [PHP] Help With Error

2004-10-17 Thread Pablo Gosse
[snip] Notice: Undefined index: 0 in L:\localhost\catalog\catalog_0.1.0\includes\classes\tree.class.php on line 77 [/snip] It's telling you that $data['0'], which is used twice in your query, is not a valid index (ie. it doesn't exist) for the $data array. Why don't you dump the $data array

Re: [PHP] Help with parsing result code

2004-10-15 Thread Matt M.
I'm setting up a credit card payment app. When I send the information through the form I get a result similar to this: NOT CAPTURED:00:428930479495:NA:1015:9755676331042890:1:1 This is the only data in the result page. I have never done parsing, and I have no idea of how to get

Re: [PHP] Help with parsing result code

2004-10-15 Thread Matt M.
http://us2.php.net/manual/en/function.preg-split.php should do it also http://us2.php.net/explode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with parsing result code

2004-10-15 Thread Carlos Alberto Bazan-Canabal
Thank you Matt and Ed. I have solved the issue and started looking into parsing and regular expressions. Thx Carlos. On Fri, 15 Oct 2004 10:57:02 -0500, Matt M. [EMAIL PROTECTED] wrote: http://us2.php.net/manual/en/function.preg-split.php should do it also

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Jason Wong
On Thursday 14 October 2004 17:35, Graham Cossey wrote: A user logs in to my 'site' (script1.php) and I store relevant details in a session, all fine. I redirect to another page (script2.php) which checks and retrieves certain session values, all fine. My problem is with script3.php which

Re: [PHP] Help with sessions problem please

2004-10-14 Thread John Holmes
Graham Cossey wrote: I'm having a bad day with sessions which hopefully someone can help me with. A user logs in to my 'site' (script1.php) and I store relevant details in a session, all fine. I redirect to another page (script2.php) which checks and retrieves certain session values, all fine. My

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: Use an absolute URL for header redirects. Glad to see someone else preaching the good HTTP gospel. :-) You're passing the session id (SID) onto script2 but not to script3, if that's the only method by which you're propagating the session id then

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Shiflett
--- John Holmes [EMAIL PROTECTED] wrote: header('Location: http://www.example.org/script2.php?.SID); He is human after all. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Dowell
No I think it's more likely that one of his tentacles slipped Chris Shiflett wrote: --- John Holmes [EMAIL PROTECTED] wrote: header('Location: http://www.example.org/script2.php?.SID); He is human after all. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP

RE: [PHP] Help with sessions problem please [SOLVED]

2004-10-14 Thread Graham Cossey
Shiflett [mailto:[EMAIL PROTECTED] Sent: 14 October 2004 11:03 To: Jason Wong; [EMAIL PROTECTED] Subject: Re: [PHP] Help with sessions problem please --- Jason Wong [EMAIL PROTECTED] wrote: Use an absolute URL for header redirects. Glad to see someone else preaching the good HTTP gospel

Re: [PHP] Help with sessions problem please

2004-10-14 Thread John Holmes
Chris Shiflett wrote: --- John Holmes [EMAIL PROTECTED] wrote: header('Location: http://www.example.org/script2.php?.SID); He is human after all. :-) That's just a rumour' I started... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for

Re: [PHP] Help Me Understand PHP5, register_globals=off, $HTTP_POST_VARS, and $_POST

2004-10-13 Thread Jason Wong
On Wednesday 13 October 2004 15:08, Francis Chang wrote: [snip] access the post variables. My question is, is the $HTTP_POST_VARS global still populated for backwards compatibility? In other words, if I have an old script that has the following piece of code running on a PHP5.0 environment

Re: [PHP] help me to get out of this mass mailing

2004-10-09 Thread Matt M.
I'm implementing mass mailing program...as there are hundred's of users that receive mails...as a result i'm getting this error... Fatal error: Maximum execution time of 30 seconds exceeded in d:\phpsites\ac\asc\acendo on line 42 take a look at

Re: [PHP] help me to get out of this mass mailing

2004-10-09 Thread Greg Donald
On Sat, 9 Oct 2004 16:41:28 +0530, suneel [EMAIL PROTECTED] wrote: I'm implementing mass mailing program...as there are hundred's of users that receive mails...as a result i'm getting this error... Fatal error: Maximum execution time of 30 seconds exceeded in d:\phpsites\ac\asc\acendo on

RE: [PHP] Help with Array Sorting Please

2004-10-08 Thread Ford, Mike
On 07 October 2004 17:29, Nick Wilson wrote: Hi, If you scroll up the list you'll see another thread of mine, this is related. The reason for a new thread is that i've made a lot of progress but the old was getting really confusing.. Here's the scoop: I have an array like this:

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Ford, Mike declared php 543 = 2 432 = 2 // like here, more 2's than 1's see? 566 = 2 568 = 2 999 = 3 878 = 3 444 = 3 That's not terribly good, as you are using the unknowns (ip addresses) as keys to the knowns (machine IDs). It would be better keying off the

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Ford, Mike declared 543 = 2 432 = 2 // like here, more 2's than 1's see? 566 = 2 568 = 2 999 = 3 878 = 3 444 = 3 That's not terribly good, as you are using the unknowns (ip addresses) as keys to the knowns (machine IDs). It would be better keying off the machine

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then Nick Wilson declared * and then Ford, Mike declared php sorry about the dupes everyone, i changed router today and resent a whole bunch of stuff b4 i realized it wasnt goint out... -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread M Saleh EG
i'd recommand u to use trees if u got complicated data arrays. use tree datascturcutres... u could sort n do watever then or jus queues or stacks depending on what u wanna do Try PEAR Tree class it might help Hope that was usefull. On Fri, 8 Oct 2004 20:13:10 +0200, Nick Wilson [EMAIL

Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread Nick Wilson
* and then M Saleh EG declared i'd recommand u to use trees if u got complicated data arrays. use tree datascturcutres... u could sort n do watever then or jus queues or stacks depending on what u wanna do Try PEAR Tree class it might help Hope that was usefull. *very*

Re: [PHP] Help with Array Sorting Please

2004-10-07 Thread djoseph
I have an array like this: 123 = 1 // each value may have few or many duplicate values 321 = 1 543 = 2 432 = 2 // like here, more 2's than 1's see? 566 = 2 568 = 2 999 = 3 878 = 3 444 = 3 Now, the keys are not the issue. What i would really like, is for that array, to end up

RE: [PHP] Help needed Postgresql and PHP

2004-10-05 Thread Warren Vail
Extracting name and addresses from postgres as a comma separated values CSV file should be doable with postgress utilities or scripts. Assuming you have access to a word processor like Microsoft Word, that has a Mail Merge capability, where your letter can be merged and printed with names and

Re: [PHP] Help with fwrite()

2004-09-15 Thread Nick Wilson
* and then Nick Wilson declared Hi all, Im trying to delete a line from a file after having first read the line. The file contains a list or urls, one per new line: like this: BTW, reading the file into an array, shifting off the first element and rewriting isnt a good option for me

Re: [PHP] Help with fwrite()

2004-09-15 Thread John Holmes
From: Nick Wilson [EMAIL PROTECTED] Im trying to delete a line from a file after having first read the line. The file contains a list or urls, one per new line: like this: [snip] fwrite($f, '', strlen($url2use)); // Where is the gotha? Hmmm... how can you write an empty string with a length? If

Re: [PHP] Help with fwrite()

2004-09-15 Thread John Nichel
John Holmes wrote: From: Nick Wilson [EMAIL PROTECTED] Im trying to delete a line from a file after having first read the line. The file contains a list or urls, one per new line: like this: [snip] fwrite($f, '', strlen($url2use)); // Where is the gotha? Hmmm... how can you write an empty string

Re: [PHP] Help with fwrite()

2004-09-15 Thread Nick Wilson
* and then John Nichel declared John Holmes wrote: You can't just remove part of a file like you remove part of a string. You'll need to read (eventually) the entire file and only write back what you want to keep. Now, you said this could be a very large file, so you don't want to

Re: [PHP] Help with fwrite()

2004-09-15 Thread John Holmes
From: Nick Wilson [EMAIL PROTECTED] Each user (must have an id,name clearly) can fetch as many urls as they wish, those urls get written to the db, then as each url is fetched from the db it is dealt with with php and deleted from the db. What if a user gets cut off from the script and a whole

Re: [PHP] Help with fwrite()

2004-09-15 Thread Nick Wilson
* and then John Holmes declared Should the db go like this? db_urls url_id | user_id | project_id | url db_user user_id | name | whatever db_project project_id | user_id Wow, now i've written it down it seems clearer ;) you guys reckon that's the right kind of schema (based

RE: [PHP] Help With PEAR::DB Connection

2004-09-13 Thread php-list
PROTECTED] Sent: Saturday, September 11, 2004 7:50 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help With PEAR::DB Connection On Sat, Sep 11, 2004 at 01:48:43AM -0500, [EMAIL PROTECTED] wrote: Hello everyone, I have a problem connecting to the Database. When I execute the code at the bottom

Re: [PHP] Help With PEAR::DB Connection

2004-09-11 Thread James Kaufman
On Sat, Sep 11, 2004 at 01:48:43AM -0500, [EMAIL PROTECTED] wrote: Hello everyone, I have a problem connecting to the Database. When I execute the code at the bottom, it gives me this message: DB Error: extension not found. It sees the DB file and the parameters are correct. I checked the

Re: [PHP] help-fetching-url-contents

2004-09-10 Thread John Holmes
From: vijayaraj nagarajan [EMAIL PROTECTED] i would like to fetch the content of a url. and then would like to put in my page... dynamically refreshing it once in a day... is it possible to do this in php. i have used perl get url option and then parse the file, with the date and time

[PHP] Re: PHP Help

2004-09-03 Thread Torsten Roehr
Conbud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, Im making a site to where I can fill out a form and it adds updates to the main page, but I only want the site to display 5 updates on it, now I know how to make it only show 5 updates, but then that means when a new update

Re: [PHP] Help with Strings Please

2004-08-31 Thread Marek Kilimajer
Nick Wilson wrote: Hi, I have a string like this, read from an html file: ' VALUE=16' The value could be any number. I am trying to get that number. I have this so far, i was hoping someone might tell me how to get that number: ?php $handle = fopen(page.php, r); while (!feof($handle)) {

Re: [PHP] Help with Strings Please

2004-08-31 Thread Justin French
Nick, Nick wrote: I have a string like this, read from an html file: ' VALUE=16' The value could be any number. I am trying to get that number. If you have that exact string and you want to extract just the number, then a simple regex to delete all non-numeric characters should suffice. I have

Re: [PHP] Help with Strings Please

2004-08-31 Thread John Holmes
From: Marek Kilimajer [EMAIL PROTECTED] $handle = fopen(page.php, r); while (!feof($handle)) { $buffer .= fgets($handle, 4096); } fclose($handle); file_get_contents() could be helpful here, too... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Help with Strings Please

2004-08-31 Thread Nick Wilson
* and then Marek Kilimajer declared Im not very good at regex, is there an function that would help me? (couldnt see one...) preg_match('/value\s*=\s*([0-9]+)/i', $buffer, $result); print (Result:br /.$result[1]); Marek, you're a star ;-) I *hate* having to ask someone to do my

RE: [PHP] Help SQLServer connection: What's server_name??

2004-08-13 Thread Fernando Verdu Castillo
[snip] Hi all, that's my first question here, I'm not subscribed. I'm tring to connect a local DB (Apache+sqlserver2K), but when I execute this simple example: ?php $conectID = mssql_connect(,SA,); mssql_select_db(Northwind); $result=mssql_query(select * from products,$numero );

RE: [PHP] Help SQLServer connection: What's server_name??

2004-08-12 Thread Jay Blanchard
[snip] Hi all, that's my first question here, I'm not subscribed. I'm tring to connect a local DB (Apache+sqlserver2K), but when I execute this simple example: ?php $conectID = mssql_connect(,SA,); mssql_select_db(Northwind); $result=mssql_query(select * from products,$numero ); while

Re: [PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread John Holmes
John Holmes wrote: Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm using Apache 1.3 on Windows XP. Nevermind... (^((*(*^%%$^% libmysql.dll [EMAIL PROTECTED]@#(## !!! windows #*[EMAIL

Re: [PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread Neil Freeman
John Holmes wrote: *** This Email Has Been Virus Swept *** Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm

RE: [PHP] help with regular expression

2004-07-29 Thread Michael Sims
Barbara Picci wrote: I've a script that must strip a string when it find the first word containing at least 4 characters; it must print the content of the string before that word, that word, a separator and the rest of the string. I've tried with ereg whit this script ([EMAIL PROTECTED] is

Re: [PHP] Help with a image upload class

2004-07-21 Thread Jason Wong
On Thursday 22 July 2004 11:56, Joe Harman wrote: Hello, I was curious if someone would help me alter this class so that instead of using it to upload images... I could send it a full URL path to an image, and it would save it to my server... 1) I'm not going to change the script for you.

Re: [PHP] Help - GUI using PHP

2004-07-20 Thread Chris Hayes
A GUI having a drwable area and a button in a frame is required. The points colected by drawing in the drawable area needs to be stored in a datastructure in php. can we do this using php? If so for displaying graphics what should be done? This GUI has to be embedded in a browser and

Re: [PHP] Help on copying part of a text file

2004-07-16 Thread John W. Holmes
C.F. Scheidecker Antunes wrote: Hello all, I need some help on the following: I need to extract a paragraph from a text file that is delimited with a --start-paragraph-- and --end-paragraph-- However, after --start-paragraph-- there's a blank line that I need to remove. The delimiter

Re: [PHP] Help Formatting String into URL

2004-07-10 Thread Curt Zirzow
* Thus wrote Ryan Schefke: Hi, Can someone help me write a short code snippet to format a string to add: http://www http://www/ -- if the string is google.com and doesn't have http://www http://www/ in front of it This is really not a good idea to do blindly, what if I was

Re: [PHP] help to generate barcodes

2004-07-09 Thread Ewout
- Original Message - From: Vicente Vives [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 09, 2004 11:42 AM Subject: [PHP] help to generate barcodes Hello everybody, I'm looking for a way to generate barcodes from the web. I found some ActiveX for ASP but i want to

Re: [PHP] help me with eregi

2004-07-05 Thread Richard Davey
w ho do you make a eregi so it looks at the var as a single line If anyone helps you after you posted 15KB of pointless HTML.. twice.. I'll be amazed. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I am not young enough to know everything. - Oscar Wilde

Re: [PHP] help me with eregi

2004-07-05 Thread water_foul
sorry i didn't relise i did that till just now Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] w ho do you make a eregi so it looks at the var as a single line If anyone helps you after you posted 15KB of pointless HTML.. twice.. I'll be amazed. Best regards,

<    4   5   6   7   8   9   10   11   12   13   >