Re: [PHP] Help with exec.

2010-03-03 Thread Teus Benschop
On Wed, 2010-03-03 at 13:04 +, Richard Quadling wrote: On 3 March 2010 13:01, Paul Halliday paul.halli...@gmail.com wrote: I need to pipe some data to an external application. I have this: while ($row = mysql_fetch_array($theData[0])) { $src_ip[] = $row[0]; $dst_ip[] =

Re: [PHP] Help with exec.

2010-03-03 Thread Paul Halliday
I work by example :) I can't find enough of an example to get me going with this. I have this: $glow = popen('afterglow.pl -c color.properties -s -e 3 -p 1 -l 2000 | neato -Tpng -o /usr/local/www/test.png','r'); how do I feed my array to that? Thanks. On Wed, Mar 3, 2010 at 9:04 AM, Richard

[PHP] Help preserving sentence structure

2010-02-26 Thread John Tamm-Buckle
Hi, new to this list... I'm adapting some code that generates text and want to keep the syntax. In the original version the output was iterated from an array in pre tags. That was fine for what it was, but it's now a word press plugin and the pre tags get in the way. How do I keep the sentence

Re: [PHP] Help preserving sentence structure

2010-02-26 Thread Ashley Sheridan
On Fri, 2010-02-26 at 14:11 -0600, John Tamm-Buckle wrote: Hi, new to this list... I'm adapting some code that generates text and want to keep the syntax. In the original version the output was iterated from an array in pre tags. That was fine for what it was, but it's now a word press

Re: [PHP] Help preserving sentence structure

2010-02-26 Thread Ryan Sun
http://us.php.net/manual/en/function.htmlentities.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help, please, understanding my problem

2010-02-22 Thread Stan
I have a PHP page that has require_once(genMyOverlay.js.php); . . . echo body; echo script language=\JavaScript\doit(\mydiv\);/scriptbr; echo /body; genMyOverlay.js.php contains: createDiv() (see below) that creates a DIV ID=mydiv and sets it up to overlay a portion of the wbe page and

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread Ashley Sheridan
On Mon, 2010-02-22 at 09:09 -0600, Stan wrote: I have a PHP page that has require_once(genMyOverlay.js.php); . . . echo body; echo script language=\JavaScript\doit(\mydiv\);/scriptbr; echo /body; genMyOverlay.js.php contains: createDiv() (see below) that creates a DIV ID=mydiv

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread tedd
At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute: script language=javascript type=text/javascript Actually, you only need this: script type=text/javascript The language attribute will throw an error in validation. Cheers, tedd -- ---

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread Ashley Sheridan
On Mon, 2010-02-22 at 12:33 -0500, tedd wrote: At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute: script language=javascript type=text/javascript Actually, you only need this: script type=text/javascript The language attribute will throw

Re: [PHP] help, please, understanding my problem

2010-02-22 Thread tedd
At 5:32 PM + 2/22/10, Ashley Sheridan wrote: On Mon, 2010-02-22 at 12:33 -0500, tedd wrote: At 3:15 PM + 2/22/10, Ashley Sheridan wrote: Also, your script tags need a type attribute: script language=javascript type=text/javascript Actually, you only need this: script

Re: [PHP] Help with regex (search/replace) please

2010-02-08 Thread Gautam Bhatia
hello, Hi ryan, i am not sure i am getting you on what ya want , is this something like what ya want, the code below which i wrote? function get_value() { var el = document.form_name.elements.length; for(var i =0 ; i= el ; i++) { if(document.form_name.elements[i].type=checkbox) { var id =

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Phpster
Why not just pass the value in the onclick? Onclick=doSomething(this); Would give you simple access to all the properties of that element. This.value would pass just the value. Bastien Sent from my iPod On Feb 6, 2010, at 9:43 AM, Ryan S gen...@yahoo.com wrote: Hey guys, As many of you

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 06:43 -0800, Ryan S wrote: Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey Ash,Bastien! clip Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your criteria. /clip @Ash, You're kinda reading my mind...

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ashley Sheridan
On Sat, 2010-02-06 at 07:53 -0800, Ryan S wrote: Hey Ash,Bastien! clip Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your

[PHP] help with preg_replace pattern

2010-01-26 Thread Rob Gould
It appears that IE renders it's display: none in all caps while Firefox and other browsers pass it back in lowercase. This throws off my php line of code the is supposed to nuke blank bullets from a string of text: $bl = LI style=DISPLAY: none id=bullet_ug2_col5_8/LI LI style=DISPLAY: none

Re: [PHP] help with preg_replace pattern

2010-01-26 Thread Adam Richardson
On Tue, Jan 26, 2010 at 10:37 PM, Rob Gould gould...@mac.com wrote: It appears that IE renders it's display: none in all caps while Firefox and other browsers pass it back in lowercase. This throws off my php line of code the is supposed to nuke blank bullets from a string of text: $bl = LI

[PHP] Help on compiling PHP for MIPS, Bus Error thrown

2010-01-22 Thread Angel Sánchez
Hi guys! I've been trying to cros-compile PHP for an embedded MIPS device with no luck, so I decided to build a developing environment inside a virtual machine with QEMU for developing PHP inside first. I have been trying different options for configure and all I get is a Bus Erro 138 when

[PHP] Help with security configuration for a shared hosting environment

2009-12-30 Thread robert mena
Hi, I am setting a shared hosting server and I'd like to gather some advices regarding the security. Since the code will not be produced by me I'd like to focus on environment strategies. For now I've added a noexec in the mount options of the /tmp and the homedir of the web server, disabled the

[PHP] Help needed with calculation

2009-11-15 Thread Chris Payne
Hi everyone, I'm not sure of the correct formula for this, if I have a file - just for example, that is 10245458756 bytes long and the download speed is 60KB a second, what formula would I use to calculate how many seconds/minutes/hours it would take to download the file? Maths really isn't my

Re: [PHP] Help needed with calculation

2009-11-15 Thread Adam Shannon
If the download speed is constant (linear) then you can just use. (10245458756 / 6t)/1000 = kb/second or (10245458756 / 6t)/6 = kb/minute The general form would be. (size_of_file / download_speed * time) / convert_to_units Where t (or time) is the amount of seconds that the download

[PHP] Help with my first recursion menu

2009-10-28 Thread MEM
Hello all, Please have a look here: http://www.nuvemk.com/c_categoria/seccao/1 When we click on Fitofármacos, I can display the correspondent children! This is great! And I'm really happy! :) When we click on Fitofármacos children - Herbicidas, I was expecting to have returned Herbicidas

[PHP] Help on pregreplace

2009-08-18 Thread Merlin Morgenstern
Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a fix. Can someone help? Here is the code: $pattern = /\b($words)\b/is;

Re: [PHP] Help on pregreplace

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a fix. Can someone

Re: [PHP] Help on pregreplace

2009-08-18 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a

Re: [PHP] Help on pregreplace

2009-08-18 Thread Tom Worster
On 8/18/09 10:56 AM, Merlin Morgenstern merli...@fastmail.fm wrote: Ashley Sheridan wrote: On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be

[PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
*Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I did some major code rewriting about halfway through (lines 114-132), and suddenly I'm getting the above ERROR. I have examined the code line by line, but I'm still relatively new to

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Daniel Brown
On Tue, Aug 4, 2009 at 13:47, Allen McCabeallenmcc...@gmail.com wrote: [snip=everything] Looks like you're missing a closing bracket here: if(!empty($_POST['EMailAddress'])) { $EMailAddress = $_POST['EMailAddress']; } else { $EMailAddress = ; // --- Right here -- /Daniel P. Brown

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have a miss-matched number of brackets on a foreach, while, or

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: Allen McCabe wrote: *Parse error*: syntax error, unexpected $end in * /home/a9066165/public_html/admin/processccu.php* on line *231* I have learned from a number of similar mistakes that this error message /normally/ means that I have

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
Ashley - I am formatting this way, it just didn't translate into gmail : ) Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't get the result page anymore. My inbox receives the form (missing cells, but that's another issue), but the browser doesn't load processccu.php,

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
Well, I got it to display a thank you page instead of what I had. I'm rolling with the punches. Got to work on why my email table is not building right. Stay tuned! On Tue, Aug 4, 2009 at 11:09 AM, Allen McCabe allenmcc...@gmail.com wrote: Ashley - I am formatting this way, it just didn't

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote: Ashley - I am formatting this way, it just didn't translate into gmail : ) You might try using indentation with more then one space. Try tabs. Any respectable editor will allow you to set the number of spaces it uses to actually represent the tab. That way I can have mine

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Allen McCabe
I created a webpage with the code listed, and a screen shot of the email I am currently receiving (with nonsense entered into my inputs) URL: http://lpacmarketing.hostzi.com/admin/help.html Anyone that can provide help will be rewarded in their next life. That's a promise. Thanks! On Tue, Aug

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Jim Lucas
Allen McCabe wrote: I created a webpage with the code listed, and a screen shot of the email I am currently receiving (with nonsense entered into my inputs) URL: http://lpacmarketing.hostzi.com/admin/help.html Anyone that can provide help will be rewarded in their next life. That's a

[PHP] help with stream filter

2009-07-22 Thread 白浩平
Hi, everyone Has anyone tried to use stream filter to decompress a large file? My problem when doing this is memory consume. My php process requires more and more memory as time goes. Is this a bug or just I don’t get the right usage? My code as follows: 26

[PHP] Help with file downloads.

2009-07-19 Thread tony mount
Hi, My first post. Been writing php from scratch for about 12 months, mainly with what I learnt from the web. Have a problem trying to download multiple files. I'm using the following code: if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type:

Re: [PHP] Help with file downloads.

2009-07-19 Thread Ashley Sheridan
On Sun, 2009-07-19 at 16:47 +0930, tony mount wrote: Hi, My first post. Been writing php from scratch for about 12 months, mainly with what I learnt from the web. Have a problem trying to download multiple files. I'm using the following code: if (file_exists($file)) {

Re: [PHP] HELP SQL INJECTION

2009-07-11 Thread Ashley Sheridan
On Saturday 11 July 2009 01:17:28 Zareef Ahmed wrote: Hi, First of all change your FTP password and stop storing your password in your FTP client. This type of attacks are very common with the people who use insecure FTP client. My previous experience with your kind of problem tell me

[PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of you have any ideas how to lock down my forms so MySQL cannot be used from my forms? Thanks everyone Chris -- PHP General Mailing List

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 15:48, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of you have any ideas how to lock down my forms so MySQL cannot be used

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 3:50 PM, Daniel Browndanbr...@php.net wrote: On Fri, Jul 10, 2009 at 15:48, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Govinda
On Jul 10, 2009, at 1:50 PM, Daniel Brown wrote: On Fri, Jul 10, 2009 at 15:48, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of you have any ideas

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi everyone, Hmmm i'm not sure it is an SQL Injection now, done a lot more checking and it is inserting code at the end of every index.htm index.html default.html and index.php pages on my site. Ooooh what fun :-) Chris On Fri, Jul 10, 2009 at 2:22 PM, Govindagovinda.webdnat...@gmail.com

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:37, Chris Paynechris_pa...@danmangames.com wrote: Hi everyone, Hmmm i'm not sure it is an SQL Injection now, done a lot more checking and it is inserting code at the end of every index.htm index.html default.html and index.php pages on my site. Ooooh what fun :-)

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi, Yes their IP is from Russia by Chinese in origin. How can this be prevented? Thank you all SO much for your help, it is very appreciated. Chris On Fri, Jul 10, 2009 at 2:40 PM, Daniel Browndanbr...@php.net wrote: On Fri, Jul 10, 2009 at 17:37, Chris Paynechris_pa...@danmangames.com

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:48, Chris Paynechris_pa...@danmangames.com wrote: Hi, Yes their IP is from Russia by Chinese in origin. How can this be prevented? Thank you all SO much for your help, it is very appreciated. So would be your move to bottom-posting (with nods to the jihad

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Thank you all SO much for your help, it is very appreciated.    So would be your move to bottom-posting (with nods to the jihad that was the longest thread of the list so far this month) as per the mailing list rules.  ;-P    What's the URL to your site, if you feel comfortable in providing

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 18:11, Chris Paynechris_pa...@danmangames.com wrote: Sorry I post at the top because i'm legally blind and it's easier but i'll try to post at the bottom :-) This is the main site on my server: http://www.oxyge.net I just took out the offending code at the end of

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Zareef Ahmed
Hi, First of all change your FTP password and stop storing your password in your FTP client. This type of attacks are very common with the people who use insecure FTP client. My previous experience with your kind of problem tell me that chances of a FTP attack are really higher in the pattern

[PHP] Help: PHP version not up to date after apt-get install php5-dev

2009-06-17 Thread Philipp Schaffner
Dear PHP [hard]core expert After apt-get install php5-dev on Linux (Debian, Ubuntu, Hardy Heron) with an already existing and functioning PHP5 interpreter phpinfo() still shows PHP Version 5.2.4-2ubuntu5.6. BUT at the same time phpinfo() shows Build Date: April 17 2009! This seems

[PHP] PHP HELP

2009-06-03 Thread tRace DOliveira
Can anyone help me to install APC in Xampp on windows ?

Re: [PHP] PHP Help

2009-06-02 Thread Bastien Koert
On Tue, Jun 2, 2009 at 12:33 AM, tRace DOliveira married...@yahoo.com wrote: I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is

Re: [PHP] PHP Help

2009-06-02 Thread Topbit
On Tue, Jun 2, 2009 at 5:33 AM, tRace DOliveira married...@yahoo.com wrote: I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is

Re: [PHP] PHP Help

2009-06-02 Thread Eddie Drapkin
There's a few things about your post I'd like to comment on. One, if you're not using APC, I definitely agree with the fact that you're just wasting resources. However, you mention micro-optimizations and say that they're hardly useful, but in some cases it's a huge difference. ' vs. is like a

[PHP] PHP Help

2009-06-01 Thread tRace DOliveira
I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is some  other alternative other than APC of improving PHP performance ? The

[PHP] help : getting float max

2009-05-24 Thread Nathan Rixham
Afternoon all, This is a quick survey, think it would be useful to have the values of MAX_FLOAT for each platform, and indeed see if it does differ. to do this can you please run the following code (bc* required) and reply back with the output (and your platform / php version) code: ?php

Re: [PHP] help : getting float max

2009-05-24 Thread Robert Cummings
On Sun, 2009-05-24 at 14:33 +0100, Nathan Rixham wrote: Afternoon all, This is a quick survey, think it would be useful to have the values of MAX_FLOAT for each platform, and indeed see if it does differ. to do this can you please run the following code (bc* required) and reply back

[PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread chris_payne
Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart show up as checked on the products listing forms to make it easier to see what

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
chris_pa...@danmangames.com wrote: Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart show up as checked on the products listing

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
kranthi wrote: this depends much on the database implementation. obviously this is a one to many relationship. Probably easiest to do in the session database. You can store the session fields in an external database if you want the shopping cart to persist over multiple sessions. -- PHP

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 06:51:32PM -0700, chris_pa...@danmangames.com wrote: Hi everyone, I'm having a major problem. I have an order system that allows you to add items with a checkbox, that works fine. If you add an item and go back to the product listing the items that are in your cart

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread Michael A. Peters
Paul M Foster wrote: When you say it sends its id, what do you mean? You're not talking about the ID attribute of the checkbox tag, are you? The way I handle something like this is to give the checkbox tag a value attribute. Like: input type=checkbox name=mixer value=ordered_mixer

Re: [PHP] Help with PHP processing form checkboxes needed :-(

2009-05-18 Thread chris_payne
- From: kranthi kranthi...@gmail.com To: Michael A. Peters mpet...@mac.com Cc: chris_pa...@danmangames.com; php-general@lists.php.net Sent: Monday, May 18, 2009 7:48 PM Subject: Re: [PHP] Help with PHP processing form checkboxes needed :-( 1. every time the form is submitted.. generate

[PHP] help with global not working

2009-05-13 Thread Joey
Hello All, I am running into a problem after I moved a site from a server with PHP4 to PHP5. As an example I have a variable defined at the top of my code lets say: $test_mode = no; Then within the code I check if we are in test mode to bypass certain functionality like so:

Re: [PHP] help with global not working

2009-05-13 Thread Marc Steinert
Maybe your code overwrites the variable anywhere? You should think about switching to a constant in that case by using define('TEST_MODE', true); [...] if (TEST_MODE) { [...] } else { [...] } Greetings from Germany Marc Joey wrote: Hello All, I am running into a problem after I moved a

[PHP] Help with scandir() -- Problem Solved

2009-04-28 Thread Deivys Delgado Hernandez
Deivys Delgado Hernandez wrote: Hi, I'm having problems when i try to use the function scandir() in a Novell Netware Volumen or a Windows Shared Folder they both are mapped as a windows network drive, so i suppose i could access them as local drive, but i can't. instead i receive this

[PHP] Help with scandir()

2009-04-26 Thread Deivys Delgado Hernandez
Hi, I'm having problems when i try to use the function scandir() in a Novell Netware Volumen or a Windows Shared Folder they both are mapped as a windows network drive, so i suppose i could access them as local drive, but i can't. instead i receive this message: Warning: scandir(R:\)

[PHP] help with explode()

2009-04-24 Thread Adam Williams
I have a form where users submit search terms and it explodes the terms into an array based upon spaces. But, how can I have explode() keep words in quotation marks together? For example, if someone enters on the form: John Jill Judy Smith and I run $termsarray = explode( , $_POST[terms]);

Re: [PHP] help with explode()

2009-04-24 Thread Adam Williams
Jan G.B. wrote: You could try it with regular expression matching.. for example: ?php preg_match_all('/([a-z]+|[a-z ]+)/i', $searchstring, $resultarray); ? Regards Thanks. That seems to create 2 duplicate arrays, though. Can it be narrowed down to just array [0]?

Re: [PHP] help with explode()

2009-04-24 Thread Jan G.B.
2009/4/24 Adam Williams awill...@mdah.state.ms.us: I have a form where users submit search terms and it explodes the terms into an array based upon spaces.  But, how can I have explode() keep words in quotation marks together?  For example, if someone enters on the form: John Jill Judy Smith

Re: [PHP] help with explode()

2009-04-24 Thread Jan G.B.
2009/4/24 Adam Williams awill...@mdah.state.ms.us: Jan G.B. wrote: You could try it with regular expression matching.. for example: ?php    preg_match_all('/([a-z]+|[a-z ]+)/i', $searchstring, $resultarray); ? Regards Thanks.  That seems to create 2 duplicate arrays, though.  Can it

RES: [PHP] help with explode()

2009-04-24 Thread Jônatas Zechim
Para: PHP General list Assunto: [PHP] help with explode() I have a form where users submit search terms and it explodes the terms into an array based upon spaces. But, how can I have explode() keep words in quotation marks together? For example, if someone enters on the form: John Jill Judy

Re: [PHP] help with explode()

2009-04-24 Thread Adam Williams
Jan G.B. wrote: Yes, preg_match_all returns all matches and the subpattern matches (the stuff inside the brakes) You can ommit stop it by using (?:) instead of ().. So: preg_match_all('/(?:[a-z]+|[a-z ]+)/i', $_POST[terms], $termsarray) You might want to check out the regular expression

[PHP] Help me debug this

2009-04-20 Thread Patrick Moloney
Some months ago I downloaded and installed Apache, PHP and MySql. With only light use they seem to be working. I have downloaded a Test Script from the VBulletin vendor that is supposed to determine if your setup could run their product. The Test Script is php and appears as a form that allows

Re: [PHP] Help me debug this

2009-04-20 Thread Stephen
Patrick Moloney wrote: I've tried their help forum, but they keep telling me to create an empty database. Have you tried creating an empty database? Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me debug this

2009-04-20 Thread Patrick Moloney
Stephen wrote: Patrick Moloney wrote: I've tried their help forum, but they keep telling me to create an empty database. Have you tried creating an empty database? Stephen yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me debug this

2009-04-20 Thread Phpster
On Apr 20, 2009, at 17:23, Patrick Moloney webpa...@gmail.com wrote: Some months ago I downloaded and installed Apache, PHP and MySql. With only light use they seem to be working. I have downloaded a Test Script from the VBulletin vendor that is supposed to determine if your setup could

Re: [PHP] Help me debug this

2009-04-20 Thread kranthi
i find var_dump useful in these situations, and for error reporting try trigger error. http://php.net/manual/en/function.trigger-error.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help with statement

2009-04-15 Thread Terion Miller
I'm trying to take a paragraph then break it into linebreaks and grab each line separately but it's not working, I can get the paragraph but my lines are not I get the object id #6 or #7 everytime Here's my code // grab all the paragraphs on the page $xpath = new DOMXPath($dom); //$graphs =

[PHP] Help on how to grab data from a page?

2009-04-10 Thread Terion Miller
I'm trying to grab our towns restaurant inspection results , store them in a db ... I have a script that is able to pull the inspections and divides them by the paragraphs, now I need a way to grab each line (I think) so that I can hopefully store the data with fields like RestName, RestAddress

[PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) { if (is_uploaded_file

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Ashley Sheridan
On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) {

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Bastien Koert
2009/3/30 Terion Miller webdev.ter...@gmail.com I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) {

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
On Mon, Mar 30, 2009 at 1:11 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Ashley Sheridan
On Mon, 2009-03-30 at 12:47 -0500, Terion Miller wrote: On Mon, Mar 30, 2009 at 1:11 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
The chmod in the script just ensures that the file you uploaded is given the correct permissions. Turn on all errors and warnings for the script so you can see where the problem is. Ash www.ashleysheridan.co.uk Thanks everyone, I figured it out, it was the directory permissions ...now

[PHP] Help with a potential bug

2009-02-27 Thread Davi Ramos
Can someone help me find the smallest block of code that is making Apache SEGV? Actually the code is about 30 lines and actually depends with Doctrine (which I think it is not causing the crash as well, but it is combined with something else). I also make use of user defined stream wrappers. These

RE: [PHP] help installing phpDocumentor

2009-02-24 Thread Bob McConnell
From: Jim Lucas I may be wrong, but I heard short tags were going the way of the Dodo bird as of PHP6. This is not surprising. With the advent of XHTML, the short tag option collides with another valid tag, ?xml. So that option has to be turned off as soon as you need any XML in your pages.

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com --

RE: [PHP] help installing phpDocumentor

2009-02-24 Thread Ashley Sheridan
On Tue, 2009-02-24 at 08:51 -0500, Bob McConnell wrote: From: Jim Lucas I may be wrong, but I heard short tags were going the way of the Dodo bird as of PHP6. This is not surprising. With the advent of XHTML, the short tag option collides with another valid tag, ?xml. So that option

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
Forgot to click reply all! Sorry. -- Forwarded message -- From: Lewis Wright lewiswri...@gmail.com Date: 2009/2/24 Subject: Re: [PHP] help installing phpDocumentor To: a...@ashleysheridan.co.uk Turn on notices and maybe even strict messages (in your development environment

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Ashley Sheridan
On Tue, 2009-02-24 at 20:18 +, Lewis Wright wrote: Forgot to click reply all! Sorry. -- Forwarded message -- From: Lewis Wright lewiswri...@gmail.com Date: 2009/2/24 Subject: Re: [PHP] help installing phpDocumentor To: a...@ashleysheridan.co.uk Turn on notices

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
I'm sorry, Gmail makes me do it! 2009/2/24 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-02-24 at 20:18 +, Lewis Wright wrote: Forgot to click reply all! Sorry. -- Forwarded message -- From: Lewis Wright lewiswri...@gmail.com Date: 2009/2/24 Subject: Re: [PHP

RE: [PHP] help installing phpDocumentor

2009-02-24 Thread Bob McConnell
From: Lewis Wright Turn on notices and maybe even strict messages (in your development environment), and PHP should warn you of any deprecated code. Easier said than done. I don't have an IDE available. I have tried the Komodo editor and am now playing with Eclipse/PDT, but neither of those

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Lewis Wright
2009/2/24 Bob McConnell r...@cbord.com: From: Lewis Wright Turn on notices and maybe even strict messages (in your development environment), and PHP should warn you of any deprecated code. Easier said than done. I don't have an IDE available. I have tried the Komodo editor and am now

Re: [PHP] help installing phpDocumentor

2009-02-24 Thread Ashley Sheridan
On Tue, 2009-02-24 at 20:55 +, Lewis Wright wrote: 2009/2/24 Bob McConnell r...@cbord.com: From: Lewis Wright Turn on notices and maybe even strict messages (in your development environment), and PHP should warn you of any deprecated code. Easier said than done. I don't have an

[PHP] help installing phpDocumentor

2009-02-23 Thread jim white
I have tried to install phpDocumentor, but am having problems getting it to run. Finding install directions has so far eluded me. Are there any installation instructions for this? Jim White -- James (Jim) B. White tel: (919)-380-9615 homepage: http://jimserver.net/ -- PHP General

<    1   2   3   4   5   6   7   8   9   10   >