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
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
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
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?
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/)
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
. 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
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
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);
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:
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);
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
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
? 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
14 matches
Mail list logo