f



PHP regular expressions

Hello,

I am writing an elearning software with php. I need a script to
recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.
Could anyone tell me how can I do this using regular expressions?

Regards,
Albert Achtenberg
0
10/28/2003 4:47:14 PM
comp.lang.php 32646 articles. 0 followers. Post Follow

9 Replies
587 Views

Similar Articles

[PageSpeed] 37

Albert <albert@arbel-designs.com> wrote:
> I am writing an elearning software with php. I need a script to
> recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.
> Could anyone tell me how can I do this using regular expressions?

So basically you need a regexp tutorial. I don't know any but studing
http://nl.php.net/manual/en/pcre.pattern.syntax.php might help.

But what you want is trivial:

/a+b+/

a+ means: 'a' one or more times.
a+b+ means: 'a' one or more times followed by 'b' one or more times.

-- 

  Daniel Tryba

0
10/28/2003 5:04:41 PM
http://us2.php.net/manual/en/ref.pcre.php


"Albert" <albert@arbel-designs.com> wrote in message
news:748f323.0310280847.20d8ae91@posting.google.com...
> Hello,
>
> I am writing an elearning software with php. I need a script to
> recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.
> Could anyone tell me how can I do this using regular expressions?
>
> Regards,
> Albert Achtenberg


0
Brian
10/28/2003 5:37:52 PM
An noise sounding like Daniel Tryba said:
> Albert <albert@arbel-designs.com> wrote:
>> I am writing an elearning software with php. I need a script to
>> recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.
>> Could anyone tell me how can I do this using regular expressions?
> 
> So basically you need a regexp tutorial. I don't know any but studing
> http://nl.php.net/manual/en/pcre.pattern.syntax.php might help.
> 
> But what you want is trivial:
> 
> /a+b+/
> 
> a+ means: 'a' one or more times.
> a+b+ means: 'a' one or more times followed by 'b' one or more times.
> 
His problem was trivial, unfortunately you weren't able to see what he
required. The solution isn't quite as trivial.
Your solution would allow something along the lines of abbbb. What was asked
for was the same number of a's and b's.

db
-- 

I'm a dead man, and buggered to boot!

0
Belial (118)
10/28/2003 5:38:05 PM
In article <slrnbptabt.gh9.Belial@carbon.redbrick.dcu.ie>,
 David Gillen <Belial@RedBrick.DCU.IE> wrote:

> An noise sounding like Daniel Tryba said:
> > Albert <albert@arbel-designs.com> wrote:
> >> I am writing an elearning software with php. I need a script to
> >> recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.
> >> Could anyone tell me how can I do this using regular expressions?
> > 
> > So basically you need a regexp tutorial. I don't know any but studing
> > http://nl.php.net/manual/en/pcre.pattern.syntax.php might help.
> > 
> > But what you want is trivial:
> > 
> > /a+b+/
> > 
> > a+ means: 'a' one or more times.
> > a+b+ means: 'a' one or more times followed by 'b' one or more times.
> > 
> His problem was trivial, unfortunately you weren't able to see what he
> required. The solution isn't quite as trivial.
> Your solution would allow something along the lines of abbbb. What was asked
> for was the same number of a's and b's.

Yes, he needs a *script* to accomplish that. It doesn't sound like there's 
any requirement for the entire solution to be contained within the 
regex[*].  A capturing regex takes care of the script's first step.  Then 
the script can easily be finished with a strlen operation.

Daniel, see http://php.net/pcre.pattern.syntax and http://php.net/strlen for more info.


* Though if there were such an arbitrary requirement, one could do the 
length check within the callback function for preg_replace_callback and 
then return a boolean as the replace value.  A silly workaround, but one 
that arguably meets such a requirement...

-- 
CC
0
cczona2 (86)
10/28/2003 5:53:19 PM
Albert:

> I am writing an elearning software with php. I need a script to
> recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.
> Could anyone tell me how can I do this using regular expressions?

In general you can't, regular expressions are not powerful enough to deal
with expression of the type A^nB^n. But there are of course ways to do what
you want. If you describe the actual problem in more detail we might be
able to help.

Andr� N�ss
0
10/28/2003 6:05:51 PM
David Gillen <Belial@redbrick.dcu.ie> wrote:
>>> I am writing an elearning software with php. I need a script to
>>> recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.
>>> Could anyone tell me how can I do this using regular expressions?
>> 
>> /a+b+/
>> 
> His problem was trivial, unfortunately you weren't able to see what he
> required. The solution isn't quite as trivial.
> Your solution would allow something along the lines of abbbb. What was asked
> for was the same number of a's and b's.

Lets call it selective dyslecia. Scanning a line with aaaabbbb in it, to
me there appear to be more b's than a's.

But I should have read the question better..

-- 

  Daniel Tryba

0
10/29/2003 12:25:51 AM
albert@arbel-designs.com (Albert) wrote in message news:<748f323.0310280847.20d8ae91@posting.google.com>...
> Hello,
> 
> I am writing an elearning software with php. I need a script to
> recognize any inut of the type ab,aabb,aaabbb,aaaabbbb..... And so on.


$str = "aabb";
if (preg_match("/(a+)(b+)/", $str, $matches) &&
(strlen($matches[1])==strlen($matches[2])))
	echo 'match!';

     ***Try this http://weitz.de/regex-coach

---
  "Our songs have meaning for everyone. I don't know of anyone who
isn't either in love, just out of love, or else wants to be in
love."--- Graham Russell, Air Supply
Email: rrjanbiah-at-Y!com
0
ng4rrjanbiah (1570)
10/29/2003 7:54:56 AM
>      ***Try this http://weitz.de/regex-coach

THis one is squarely focused on PHP.
http://www.phpedit.net/products/RegExpEditor/


0
Brian
10/29/2003 3:33:25 PM
Hi,

Thank you for your replies. In fact I was curious to see the replies
to my post as what I described is simply impossible. The explanation
is that reular expressions can only describe regular languages,
whereas {a^nb^n | n=0,1,...} is not a regular language (As one of the
replies stated).

I'm very sorry if someone was offened by this.

Thank you all,
Albert Achtenberg
0
10/30/2003 9:32:06 PM
Reply:

Similar Artilces:

PHP and Regular Expressions
I need to do a very simple query in MySQL versions 3.23.41 and 4.0.10 whereby it would be something like this: [PHP] $sql = "SELECT * FROM image WHERE image_path LIKE '%$imageLocationPath/[a-zA-Z0-9\\-_\\.%]+\$%'" [/PHP] However, I can't figure out how to do this. I went to various online tutorials including www.mysql.com and I'm sorry not a single one of them made an ounce of sense. Could someone please help me with this very simple task or point me in the right direction as to how to write this? Thanx Phil Phil Powell wrote: > I need to do a very simple query in MySQL versions 3.23.41 and 4.0.10 > whereby it would be something like this: > > [PHP] > $sql = "SELECT * FROM image WHERE image_path LIKE > '%$imageLocationPath/[a-zA-Z0-9\\-_\\.%]+\$%'" > [/PHP] > As far as I am aware you can't use regular expressions in MySQL using "like" in a select query. You can use % to match any number of characters and _ to match just one character but that's just about it. Check the string comparison functions in the MySQL manual: http://www.mysql.com/doc/en/String_comparison_functions.html Chris -- Chris Hope The Electric Toolbox Ltd http://www.electrictoolbox.com/ In article <4071b83d_3@news.athenanews.com>, Chris Hope <blackhole@electrictoolbox.com> wrote: > As far as I am aware you can't use regular expressions in MySQL using "like" > in a select query....

PHP Training Institute In Delhi, Live Projects on PHP. Short Term PHP Courses, PHP Scripts, PHP Training with Live Projects.
Vserve Global offers short term PHP: Hypertext Preprocessor Training Course, which is a widely used, general-purpose scripting language that was originally designed for web development, to produce dynamic web pages. It can be embedded into HTML and generally runs on a web server, which needs to be configured to process PHP code and create web page content from it. It can be deployed on most web servers and on almost every operating system and platform free of charge.PHP is installed on over 20 million websites and 1 million web servers. TOPICS:- >> Core PHP Language >> HTML, Cascad...

php to php obj
Hi All, Is there any tool to convert the .php files into its object files in deploying the files to other's server like java classes are deployed? Thanks in advance --AR John7481 <arjohn7481@hotmail.com> wrote or quoted: > Is there any tool to convert the .php files into its object files in > deploying the files to other's server like java classes are deployed? To what end? Do you want a PHP obfuscator? They tend not to be needed - since the code remains on the server. Do you want a PHP squeezer? Again - since PHP remains on the server that is of reduced importance. PHP obfuscators and squeezers are out there - but what exactly are you looking for? -- __________ |im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply. With total disregard for any kind of safety measures Tim Tyler <tim@tt1lock.org> leapt forth and uttered: > John7481 <arjohn7481@hotmail.com> wrote or quoted: > >> Is there any tool to convert the .php files into its object >> files in deploying the files to other's server like java >> classes are deployed? > > To what end? > > Do you want a PHP obfuscator? They tend not to be needed - > since the code remains on the server. > > Do you want a PHP squeezer? Again - since PHP remains on the > server that is of reduced importance. > > PHP obfuscators and squeezers are out there - but what exactly > are you looking for? I think he'...

PHP and regular expressions #2
Hi, I'm new to this group and regular expressions. I want to extract text from a newspaper website using regular expressions and php I'm using this regular expression at the moment $regexp = "%<table cellspacing=\"0\" cellpadding=\"0\"> (.+) <img height=\"1\" alt=\"Today's News\" />%s"; Each news story is in between those tags , So if I extract those chunks of html using preg_match($regexp,$document,$matches); where $document is a handle on the file. I can store them in %matches for further processing. Alas it does not work and i cannot figure out why Can anyone help? Thanks __where $document is a handle on the file__ the 2nd parameter should be a string read the file to a string... Do you really want the space around "(.+)" ? you can clean this up by enclosing it in '' rather than "" $regexp = '%<table cellspacing="0" cellpadding="0"> (.+) <img height="1" alt="Today's News" />%s'; On Feb 28, 12:03 pm, "Damo" <cormacdeba...@gmail.com> wrote: > Hi, > I'm new to this group and regular expressions. I want to extract text > from a newspaper website using regular expressions and php > I'm using this regular expression at the moment > > $regexp = "%<table cellspacing=\"0\" cellpadding=\"0\"> (.+) <img > height=\"1\" alt=...

Help me with a regular expression for PHP
I have no idea where to get help on RE stuff. Since it's for a PHP app I thought I would ask here to see if there was some RE pros. Basically I'm doing some template stuff and I wanted to use a preg_replace_callback function to call another function when the criteria of the RE expression is matched but have no idea how to accomplish it. So I start with this: /<(input|select|textarea)[^>]*name\s*\=\s*\"[_a-zA-Z0-9\s]*\"[^>]*>/ but need to modify it so it only matches if it has '{' characters in the name but to not match if it does not. So this would not match: <input name="test"> But this would match: <input name="test{0}"> Thanks much in advance. cendrizzi wrote: > So I start with this: > /<(input|select|textarea)[^>]*name\s*\=\s*\"[_a-zA-Z0-9\s]*\"[^>]*>/ You'd better not use regular expressions to validate HTML. The following line is perfectly valid HTML (I think in any version) <input type="text" name="x><y" id="xy"> > but need to modify it so it only matches if it has '{' characters in > the name but to not match if it does not. > > So this would not match: > <input name="test"> > > But this would match: > <input name="test{0}"> Get the name. Verify it has '{' and '}' (in that order and once only?) <?php $name = get_name(&#...

help / php regular expressions
$string = "a frist string [[a second string]]"; I want to get in one line of code (using ereg) $string2 = "a second string"; what is the good regexp ? thanks Pooxeur, http://pooxi.free.fr/?oid=nwsclp Pooxeur wrote: > $string = "a frist string [[a second string]]"; > > I want to get in one line of code (using ereg) > > $string2 = "a second string"; > > what is the good regexp ? Don't know about ereg; using preg_*() is faster and more powerful. See the manual @ http://www.php.net/pcre <?php echo preg_replace('/^.*\[\[(.*)\]\]$/', '\1', 'one [[two]]'); ?> This script outputs: two -- Mail to my "From:" address is readable by all at http://www.dodgeit.com/ == ** ## !! ------------------------------------------------ !! ## ** == TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>) may bypass my spam filter. If it does, I may reply from another address! ...

php outside php (?)
Sounds weird, i know. What i want/wonder is the following: PHP can do the next: <?php if($foo == 'bar') { ?> Ow yeah, foo is bar! <?php }; ?> But how can i do the following: <?php $foo= ?> this is what foo looks like. <?php }; ?> This way i could edit the content of $foo in DW's design-view. I hope it's clear enough for you all to understand... Greetings frizzle. frizzle wrote: > But how can i do the following: > > <?php > > $foo= > > ?> > this is what foo looks like. > <?php > > }; > > ?> > > This way i could edit the content of $foo in DW's design-view. > I hope it's clear enough for you all to understand... <?php ob_start(); ?> this is what foo looks like. <?php $foo=ob_get_clean(); ?> -- Justin Koivisto - justin@koivi.com http://koivi.com Wow, little late on the reply, but i still wanted to thank you for your help. This is exactly what i meant, and it works great! :D Thanks again. ...

Question on PHP regular expressions
In PHP I have many more options for functions that do regular expression than I did in Perl. My question is what is the best one to use for doing the following: Give the following: {Somestring.somestring.somestring} blah blah {somestring} value here not used {more.text.here} I want an array like the following: [0] => Somestring.somestring.somestring [1] => somestring [2] => more.text.here So basically I just want to capture the contents (alpha-numeric + periods) inside of curly braces. Thanks for any help. sberry <sean@buildingonline.com> writes: > In PHP I have many more options for functions that do regular > expression than I did in Perl. My question is what is the best one to > use for doing the following: > > Give the following: > {Somestring.somestring.somestring} blah blah {somestring} value here > not used {more.text.here} > > I want an array like the following: > [0] => Somestring.somestring.somestring > [1] => somestring > [2] => more.text.here > > So basically I just want to capture the contents (alpha-numeric + > periods) inside of curly braces. > > Thanks for any help. This should get you started: $string = "{Somestring.somestring.somestring} blah blah {somestring} value here not used {more.text.here}"; $pattern = '/\{.+?\}/'; preg_match_all($pattern, $string, $matches); print_r($matches); Hope that helps, On Nov 8, 11:17 am, Carl <c.gro...@gmail.com>...

PHP within PHP...
I took over the support of a website that is set up something like this inside one of the pages: include_once("header.php"); <?php //to get the content of the page they do this: $content = mysql_query("select content etc...); echo $content; ?> include_once("footer.php"); I am having problems evaluating any php that is used in the mysql content. Is there a way to get the mysql withing the mysql to run? Thank you for your time, Mandragon On Sep 17, 12:56 pm, Mandrago...@gmail.com wrote: > I took over the support of a website that is set up something like > this inside one of the pages: > > include_once("header.php"); > > <?php > //to get the content of the page they do this: > $content = mysql_query("select content etc...); > > echo $content; > ?> > > include_once("footer.php"); > > I am having problems evaluating any php that is used in the mysql > content. Is there a way to get the mysql withing the mysql to run? > > Thank you for your time, > > Mandragon Sorry, The question should read: "Is there a way to get the php withing the echo $htmlcontent to run?" Of course you are, $content is a resource. The MySQL Query resource. try this: $content = mysql_query('bla bla bla'); while ($row = mysql_fetch_assoc($content)) { $result[] = $row; } $content = $result; Now you can use $content ;). In answer to your edit... eval($co...

Regular expression example on PHP.net
Howdy folks, On this page at php.net http://www.php.net/features.http-auth there's a regular expression in Example 34.2. It's supposed to parse out the different values being passed in the header. I know what it's supposed to do, so I have a vague idea of what's being done in the RE, but I've been having a heck of a time figuring out what each part of the RE is actually doing. Here's what I have so far: preg_match_all('@(\w+)=(?:([\'"])([^\2]+)\2|([^\s,]+))@', $txt, $matches, PREG_SET_ORDER); //'@ //(\w+) Any word character (letter/digit/_), 1 or more //= Equal sign //(?: This submatch will not be captured (still available for later matching) //([\'"]) A single or double quote //([^\2]+) Not start of text (STX)?, 1 or more //\2| //([^\s,]+) Not whitespace or comma, 1 or more //) //@' I'm unclear as to what the second \2 does, as well as which parts the OR applies to. And what are the @s for? Thanks for any help, ZF -- Posted via a free Usenet account from http://www.teranews.com On Fri, 07 Sep 2007 08:02:07 +0200, Zenofobe <fake_email@fake_domain.com= > = wrote: > Howdy folks, > > On this page at php.net > http://www.php.net/features.http-auth > there's a regular expression in Example 34.2. It's supposed to parse = out > the different values being passed in the header. I know what it's > supposed to do, so I have a vague i...

I need help in Regular Expression in PHP
Hi Everyone, How can I get all the values which are between Name tags as follows: <emp> <name>N1</name> <age>1</age> <name>N2</name> <age>2</age> <name>N3</name> <age>3</age> <name>N4</name> <age>4</age> </emp> Regards Zeeshan ...

Converting PERL regular expression to PHP?
Hi, I'm in the process of converting some PERL to PHP. Thus, is it possible to leave the following line as is: if ($id =~ /vvvvv/g) { ... } If not, can someone provide PHP equivalent? BTW, I have checked the syntax using 'php -l' because I'm not an expert of PERL but I'm using various references to do the conversion. However, I was able to locate this particular construct. Thanks in advance, -Conrad Hi, the last couple of sentences should read: If not, can someone provide PHP equivalent? BTW, I have checked the syntax using 'php -l'. Also, I'm not an expert of PERL but I'm using various references to do the conversion. However, I wasn't able to locate this particular construct. Thanks again, -Conrad Am Dienstag, den 27.09.2005, 17:17 -0700 schrieb Con: > Hi, I'm in the process of converting some PERL to PHP. Thus, is it > possible to leave the following line as is: > > if ($id =~ /vvvvv/g) { The php equivalent is if(preg_match('/vvvvv/', $id)) { I'm quite sure that you won't need the "g". See http://www.php.net/manual/en/function.preg-match.php Best regards Sven -- Sven Lauritzen -------------------------------------------------------------------- mailto: the minus pulse at gmx dot net pub 1024D/95C9A892 sub 1024g/D30E490F ABCDEFGHIJKLM Fp 2FA9 FC9B 078C 5BC7 87DC 0B0D 2329 94F6 95C9 A892 NOPQRSTUVWXYZ --------------------------------------...

Regular Expression for replacing images through URLs in PHP
Hi! I want to replace images through URLs with the help of a regular expression. For example: <img src='http://xxxxx.net/photo/small.jpg'> should be replaced through: <a href='http://xxxxx.net/photo/small.jpg'>Link</a> Another problem are emoticons, which are also included as <img>. Therefore I would like to extend the upper regular expression that the image should only be replaced through an URL, if the src attribute of the img tag does not start with "/modules/emoticons/". Thanks in advance, Markus On Tue, 19 Jul 2005 10:31:30 +0200, Markus Wallner wrote: > Thanks in advance, Your welcome. Have you actually *tried* anything yet? You have no sample code. I won't help you until I see what you've tried. nyah nyah n-nyah nyah. -- JDS | jeffrey@example.invalid | http://www.newtnotes.com DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/ ...

a regular expression for detecting PHP commands in a template?
I'm away from my home computer, where I have a copy of RegEx Buddy that might let me figure this out on my own. I've edited the php.ini file on my server so PHP the only way to start a PHP tag is <?php I've got a system in place that keeps each PHP function in its own file, with the file having the same name as the function. Functions are only imported when they are needed. Before a template is evaluated, I've got a script that looks through it for every PHP command and imports it. The script can handle this: <h2>All weblog entries</h2> <?php showAllWeblogEntries(); ?> But I have been unable to think of the regex expression that would allow me to find PHP functions used as parameters to PHP functions. I don't know how to capture the parameter here: <?php makeThumbnailImage(showCurrentImage()); ?> Any ideas? ...

I need help in Regular Expression in PHP #2
Hi Everyone, How can I get all the values which are between Name tags as follows: <emp> <name>N1</name> <age>1</age> <name>N2</name> <age>2</age> <name>N3</name> <age>3</age> <name>N4</name> <age>4</age> </emp> Regards Zeeshan > Hi Everyone, > > How can I get all the values which are between Name tags as follows: > > <emp> > <name>N1</name> > <age>1</age> > > <name>N2</name> > <age>2</age> > > <name>N3</name> > <age>3</age> > > <name>N4</name> > <age>4</age> > > > </emp> > > > > > Regards > Zeeshan > preg_match("/<name>.+?<\/name>/sim", $HTML, $matches); Ivan Omelchenko 608308824 пишет: >> Hi Everyone, >> >> How can I get all the values which are between Name tags as follows: >> >> <emp> >> <name>N1</name> >> <age>1</age> >> >> <name>N2</name> >> <age>2</age> >> >> <name>N3</name> >> <age>3</age> >> >> <name>N4</name> >> <age>4</age> >> >> >> </emp> >> >> >> >> >> R...

Best PHP Training | PHP Development Training | PHP Training Institute
Tops Technologies provides php and mysql certification courses in ahmedabad, baroda, surat, Rajkot, Udaipur, Gujarat, india.PHP Training with MySQL is an introductory course in the PHP and MySQL technology. Mysql and php training course, php for beginners, sql training courses, PHP Training courses, php courses, mysql training courses, php mysql course. For More Details :- http://www.tops-int.com ...

php regular expression doesn't match
Hi PHP's regular expression look like doesn't support .*? syntax. So i cannot match the shortest match. For exmaple: $str="a1b a3b"; $str1=ereg_replace("a.*b", "peter", $str1); will produce "peter", but i want "peter peter", so how to? thanks from Peter (cmk128@hotmail.com) cmk128@hotmail.com wrote: > Hi Hi, > PHP's regular expression look like doesn't support .*? syntax. So i > cannot match the shortest match. For exmaple: > > $str="a1b a3b"; Typo. That was $str1="a1b a3b" I expect. > $str1=ereg_replace("a.*b", "peter", $str1); > will produce "peter", but i want "peter peter", so how to? > Yes, * is greedy. I do not know your real-world example, but maybe using a wordboundary can solve your problem? eg: $str1=ereg_replace("/a.*b\b/", "peter", $str1); > thanks > from Peter (cmk128@hotmail.com) > Regards, Erwin Moller Erwin Moller wrote: > cmk128@hotmail.com wrote: >> Hi > > Hi, > >> PHP's regular expression look like doesn't support .*? syntax. So i >> cannot match the shortest match. For exmaple: >> >> $str="a1b a3b"; > > Typo. That was $str1="a1b a3b" I expect. > >> $str1=ereg_replace("a.*b", "peter", $str1); >> will produce "peter", but i want "p...

PHP games to learn PHP
Hi, I am learning PHP, but it can be kind of boring. Are there any games where you use PHP programming to play the game? This way you learn how to use PHP and it is fun. Does anybody know? Nick "Nick Mudge" wrote > I am learning PHP, but it can be kind of boring. Are there any games where > you use PHP programming to play the game? This way you learn how to use > PHP and it is fun. Does anybody know? Yes. Write something (a game, for example) in PHP. To make it even more entertaining, you could add a touch of javascript. Ivo "Ivo" <no@thank.you> wrote in message news:40cc70fe$0$62706$ee9da40f@news.wanadoo.nl... > "Nick Mudge" wrote > > I am learning PHP, but it can be kind of boring. Are there any games where > > you use PHP programming to play the game? This way you learn how to use > > PHP and it is fun. Does anybody know? > > Yes. Write something (a game, for example) in PHP. To make it even more > entertaining, you could add a touch of javascript. > Ivo Since all games are input, output and state engines, the PHP bit is limited to the latter. You get to do the input/output in something else (browsers, JScript, etc) and practise doing the state engine code in PHP. Something like an old-style play-by-mail is perfect. Witness something like http://www.nationstates.net/cgi-bin/index.cgi for ideas that do that. Garp Garp wrote: > "Ivo" <no@thank.you> wrote in mess...

PHP with Indian PHP Developers
Dear all, If you want to make a PHP web application, or need to <a href="http:// www.virtueinfo.com/php-developers/hire-php-programmers-developers-india.htm">Hire PHP Developer</a>contact a leading <a href="http://www.virtueinfo.com/ php-developers/php-web-development.htm"> PHP Web Development Compnay</ a> <a href="http://www.virtueinfo.com/php-developers/php-web-programming- php-developers-india.htm">Offshore PHP web development India</a> On Thu, 25 Feb 2010 01:37:02 -0800 (PST), Virtue Info wrote: > Dear all, > > > If you want to make a PHP web application, or need to <a href="http:// > www.example.com/php-developers/hire-php-programmers-developers-india.htm">Hire > PHP Developer</a>contact a leading <a href="http://www.example.com/ > php-developers/php-web-development.htm"> PHP Web Development Compnay</ > a> > > ><a href="http://www.example.com/php-developers/php-web-programming- > php-developers-india.htm">Offshore PHP web development India</a> > Third time's the charm? Not exactly a ringing endorsement of the skills you've got available or your testing method reliablity... -- 12. One of my advisors will be an average five-year-old child. Any flaws in my plan that he is able to spot will be corrected before implementation. --Peter Anspach's list of things to do as an ...

PHP 4 and PHP 5
What is main difference between PHP 4 and PHP 5? Is possible to use object programming apporach with PHP4? Is possible to use Stored Procedures in Oracle with PHP4? Where I can get more informations? Thanks in advance "ablyplus" <ablyplus@yahoo.com> wrote in message news:cr5n6g$5bp$1@ls219.htnet.hr... > What is main difference between PHP 4 and PHP 5? take a look at http://www.zend.com/php5/ > Is possible to use object programming apporach with PHP4? Yes. The new features in PHP 5 are mainly cosmetic (e.g. visibility). With PHP 4 you can define classes with methods, properties and constructors. You can create objects from these classes at runtime. You do not *need* PHP 5 to write object oriented code with PHP. > Is possible to use Stored Procedures in Oracle with PHP4? Read the manual. take a looki at http://www.php.net/manual/en/ref.oci8.php at scroll down to example 2. > Where I can get more informations? Looking for it might be a start. > Thanks in advance You're welcome. -- Tony Marston http://www.tonymarston.net "ablyplus" <ablyplus@yahoo.com> wrote in message news:cr5n6g$5bp$1@ls219.htnet.hr... > What is main difference between PHP 4 and PHP 5? Much improved OO, and the odd incompatibility. The only noticeble one is that array_merge must be given 2 arrays, you can just chuck in a simple variable and expect it to be merged with an array. It chucks a warning I believe, and still does it...

Does PHP need the .php extension ?
Hi guys, When I use PHP I give my file the .php extension. I always wondered if it could be an .htm page with a <script> block that the PHP resides in, the same way you would do JavaScript. If you can do it that way are there any benifits to that method ? Take care, Cyrus "Cyrus D." <satan@invalid.org> writes: > Hi guys, > > When I use PHP I give my file the .php extension. I always wondered if it > could be an .htm page with a <script> block that the PHP resides in, the > same way you would do JavaScript. If you can do it that way are there any > benifits to that method ? > > Take care, > Cyrus > > Right now you probably have a directive like this in your httpd.conf file (or your ISP does). AddType application/x-httpd-php .php4 .php .php3 .inc .inf .phtml It identifies the extensions which should be processed by the php interpreter before output is sent to the browser. I believe you can also include this directive in a .htaccess file in your area and add .htm to the list. This would send all your files throught the interpreter and those that do not contain PHP code would just be passed through.... You mention Javascript, but that is a bit different. The interpretation of that happens at your browser -- all the PHP work is done at the server. Hope this helps. -- John __________________________________________________________________...

PHP does not parse .PHP files
I have this problem with PHP that someone might be able to help. With CLI, I am able to execute my .php files. For example, if I type "php phpinfo.php" , this works fine on my system. If I put the phpinfo.php file is in /var/www/html and I try to access it through the browser, I get the content of the file and not the execution of the file. Instead of display the info of PHP, I got the text of the file as: <?php phpinfo(); ?> Why? Thanks Phong Ho wrote: >I have this problem with PHP that someone might be able to help. > >With CLI, I am able to execute my .php files. For example, if I type >"php phpinfo.php" , this works fine on my system. > >If I put the phpinfo.php file is in /var/www/html and I try to access >it through the browser, I get the content of the file and not the >execution of the file. Instead of display the info of PHP, I got the >text of the file as: > ><?php > phpinfo(); >?> > > >Why? >Thanks Do you have a webserver such as Apache running on the machine where you expect this to happen? Because it's the webserver, not the browser, that needs to know about php. The browser only does html. Margaret -- (To mail me, please change .not.invalid to .net, first. Apologies for the inconvenience.) "Phong Ho" wrote: > I have this problem with PHP that someone might be able to help. > > With CLI, I am able to execute my .php files. For exam...

Php constants in php.ini
I am trying to set user_agent = PHP_VERSION in php.ini. In my php.ini the instructions say that you can use constants in the php.ini file. The only constants I can get to work, though, are the error level constants like E_ALL, E_ERROR, E_WARNING, etc., ... Is anyone aware of some sort of trick to getting others to work? (I was thinking it would be nice to have the user agent string used by my Php scripts to use PHP_VERSION in the string.) -- ***************************** Chuck Anderson • Boulder, CO http://www.CycleTourist.com Integrity is obvious. The lack of it is common. ***************************** ...

Tutorial on php (or learning php)
I need to learn php and MySQL quickly to support an app. Realizing experience is the best teacher, and this takes time, does anyone ahve any recommendations on: books tutorials web sites samples to help me get going? Thanks. Hugh Williams and David Lane have written a book called "Web Database Applications with PHP and MySQL'' which you can obtain from Amazon at http://www.amazon.com/exec/obidos/ASIN/0596000413/hughwilliams-20/103-0647779-6796618. This book has its own website at http://www.webdatabasebook.com/. You can also download the code and install it locally. HTH. -- Tony Marston http://www.tonymarston.net "JA" <JAlbert@Yahoo.Com> wrote in message news:urjc80tlmfdmd0ha7ed017j1mj580ha167@4ax.com... > I need to learn php and MySQL quickly to support an app. Realizing > experience is the best teacher, and this takes time, does anyone ahve > any recommendations on: > > books > tutorials > web sites > samples > > to help me get going? > > Thanks. JA wrote: > I need to learn php and MySQL quickly to support an app. Realizing > experience is the best teacher, and this takes time, does anyone ahve > any recommendations on: > > books > tutorials > web sites > samples > > to help me get going? > > Thanks. PHP.net really is good, it has references for all the instructions, and the manual is actually pretty good for beginners. JA wrote: > > I need to l...

Web resources about - PHP regular expressions - comp.lang.php

Expression (mathematics) - Wikipedia, the free encyclopedia
In mathematics, an expression is a finite combination of symbols that is well-formed according to rules that depend on the context. Symbols can ...

Arab women artists and their long road to expression
At a London festival, female artists grapple with the issues facing their region and their own identities.

Christie’s Expressions At Trump Event Under Scrutiny
Donald Trump Holds Super Tuesday Election Night Press Conf. In Palm Beach PALM BEACH, FL - MARCH 01: Republican Presidential frontrunner Donald ...

Decoding The Facial Expressions Of The GOP Candidates
Trump's "crooked contemptuous" smile, Rubio's sheepish grin, and Cruz's upper lip of disgust dominated the debate. For tonight's Republican ...

You enjoy freedom of expression only because army guards borders: Delhi HC to Kanhaiya Kumar
The bail granted to Kanhaiya Kumar comes with several conditions, directives to JNU faculty and some serious observations

Bernie Sanders Brought His Finest Facial Expressions to the Democratic Debate
You may not like Bernie Sanders as a presidential candidate, but you’ve gotta admit, this man’s got some pretty expressive peepers. Read more... ...

Security, the Greatest Threat to Free Expression?
Like it or not, today we are all, in one way or another, engaged in a battle between perceived security and freedom of expression. And far too ...

'Animal Soul' Book Of Photos: Expression in Cats and Dogs
Intrigued by the facial expressions of dogs and cats, photographer Robert Bahou is compiling a book of his efforts to capture them.

It Turns Out Vanessa Hudgens' Expression of Love Was Highly Illegal
The Federal Government cares more about some old, dead, scratched up rocks in the desert than it cares about Vanessa Hudgens and Austin Butler ...

The Tech Behind A PS4 Game's Realistic Facial Expressions
Ninja Theory’s upcoming action game, Hellblade , has a protagonist with expressions that actually look, well, human. Here’s how they did it. ...

Resources last updated: 3/24/2016 6:11:42 AM