Hi, when I ran it I got testtest2 but I want:
$string = '<body>
<a href="test.htm">test</a>
<a href="text2.htm">test2</a>
</body>';
to return:
$string = '<a href="test.htm">test</a>
<a href="text2.htm">test2</a>';
Hi, I was wondering how you strip the contents of a string uptil the first occurance of <a and also how to strip a string to the last occurance of </a>
ie
$string = '<body>
<a href="test.htm">test</a>
<a href="text2.htm">test2</a>
</body>';
will return:
$string = '<a href="test.htm">test</a>...
Hi, I have followed a tutorial for installing PHP with IIS and everything was fine until I changed the home directory under the iis manager. Everything else works fine except the PHP files. This is very important I change this and I can't keep it as the default.
Please note that on the new...
Hi, I have a table setup called categories with the following structure:
- cat_id (primary key)
- subcat_id
- cat_name
If a category is within another category it's subcat_id would be the cat_id of the category it is within. This allows me to have unlimited subcats within subcats. Hope all...
Hi, I followed the following tutorial to setup IIS with MS SQL Server DE here:
http://www.geekpedia.com/prog_ttrls.php?id=57
I also installed the web data administrator fine. Finally I removed the ; before extension=php_mssql.dll in the PHP config file.
Until now everything seems to be...
Hi, I followed the following tutorial to setup IIS with MS SQL Server DE. I also installed the web data administrator fine. Finally I removed the ; before extension=php_mssql.dll in the PHP config file.
Until now everything seems to be working fine but my problem lies with connecting to the...
Ah cheers, I've used curl before making an amazon web service. One question where does the SSL come into it to keep the credit card details secure during the transaction.
Hi, say I wish to create a shopping cart company for a company. To checkout and purchase their goods I wish for them to use a credit card. I understand the best way is to use a third party organization (like paypay or 2checkout) but say my company has a merchant account and a server setup with...
Hi, I'm trying to make a box with rounded edges. The top was easy enough because I could use one whole pic but the bottom is a little hard because I have text in between. I have attempted the following:
http://www.punkcentre.com/test/test.htm
http://www.punkcentre.com/test/test2.htm
but...
Hi, yeah I've solved it now but the link still should be working. I think it may have been because I just put a firewall on my server and only realized it was allowing me to access that page until this morning.
Hi, please visit the following site:
http://www.punkcentre.com/test/test.htm
You see where it says Left | Home | Search. I wish to have the entire row in a solid background color instead of the current way it is. I tried putting a div around the center_wrap, left and right divs and setting the...
Hi I tried as you said but it returned:
PHP Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING or T_VARIABLE or '{' or '$' in C:\Inetpub\wwwroot\star buyer\shopping_cart.php on line 40
I then tried print_r($xml) (so you can see what we're dealing with) and I got...
Hmm it outputs:
SimpleXMLElement Object ( [0] => 104-9375040-9923111 )
I tried:
print_r ( $xml->Cart[0]->CartId);
but it did the same. I'd assume this is the problem. I tried echo $xml->Cart->CartId and that returned the value as I would expect. Cheers
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.