[PHP] Replacing text on page, but not in img tags

2003-11-06 Thread Taylor York
Lets say im trying to replace every occurance of 'hello' with 'bhi/b'. heres a sample page html hello there! /html This would simply change to html bhi/b there! /html but what if it had an img? html hello there! img src=hello.jpg alt=well hello there /html It would then be, html bhi/b

Re: [PHP] Replacing text on page, but not in img tags

2003-11-06 Thread Taylor York
Ya, i know it will be done with regular expressions, but how? I dont know how to format that kind of expression [snip] It would then be completely jacked up. Not only would it do the wrong img, but the tag in general would be screwed be cause of the bold tag. So what can I do? [/snip] Skip the

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Taylor York
Cant you edit the httpd.conf? I know there might be plenty of reasons why not to...but im just checking. =) Server mydom1.com Alias mydom.com Anthony [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the links, I'm going through them now as far as the location thing. I

[PHP] regexp problem

2003-07-10 Thread Taylor York
First, I need the code to replace the link in a string, like BASE HREF=www.google.com with BASE HREF=mystring ereg_replace('BASE HREF=\'(.*)'\', 'BASE HREF=\$my_string\', $old); That was the closest i got, but (.*) makes it take the first BASE HREF, and the last , which sucks. Can anyone help?

[PHP] MySQL passwords dont work.

2003-03-18 Thread Taylor York
I have recently made a server on FreeBSD. I've run into 2 problems. 1. I cant get PHP to compile with mysql 2. I can use mysql in PHP, but if i use phpMyAdmin, with user/pass...I ALWAYS get No databases. If i do user/no pass, it works. wth? -- PHP General Mailing List (http://www.php.net/)

[PHP] any string function to...

2002-09-23 Thread Taylor York
Is there any string function to put backslashes on any characters that are used in regular expressions? IE ()[];.^*$ etc. Thank you, Taylor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reg Exp issue

2002-09-20 Thread Taylor York
. And suggestion on what to do? any function to convert all of the special regexp characters ()[];.^*$ etc to work correctly? Thank You, Taylor York -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML vs Everything Else

2002-09-03 Thread Taylor York
help me grasp what its all about. Thank you, Taylor York DreamStar Group -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] header()

2002-07-09 Thread Taylor York
I'm trying to change some information in the header...lets say that User Agent for example...but it just wont change. putenv() will change the User Agent..but nothing else will ? $ua = Mozilla/4.0 (compatible;); header(User-Agent: $ua\n, TRUE); header(Accept: */*, TRUE);

[PHP] redeclaring functions

2002-06-26 Thread Taylor York
I am having a problem with two scripts that use the same function name. The two functions do the exact same thing...but when the include files are called, the second file recieves a redeclare error. Suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Passing Form Values

2002-06-26 Thread Taylor York
I would suggest posting the vars to a page, which will open up a new javascript window, then .write() the values into the javascript window from the main page. OpenWindow = window.open(, newWindow, height=400, width=300,toolbar=yes,scrollbars=yes,menubar=yes);

[PHP] Re: redeclaring functions

2002-06-26 Thread Taylor York
And sorry but no, I can't just delete one of the functions...these scripts are used in many other places by themselves without the other..so script A has to be able to have this function on its own page, and so does script B on its own page. Taylor York [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: phpmyadmin - moving data from one database to another

2002-06-18 Thread Taylor York
Just dump the data and structure to an SQL file, choose save as file, then run all the code in the file on the next server. Taylor York Phil Schwarzmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The lazy and worthless a-holes at www.infinitehost

[PHP] PHP commands inside a MySQL Database

2002-05-30 Thread Taylor York
? echo test; ? It doesnt parse or execute any of the php. Any suggestions? Thanks Taylor York -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php