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...
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, 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'm trying to setup my own amazon web service shopping cart. To do this I need some way of storing some of the information related to the cart and the user so I figured I would use sessions. In my file I put:
session_start();
$xml = simplexml_load_file('http://webservices.amazon' ...
Hi, I wish to create a navigation bar for users to follow as they browse a store I am creating. The following is the table structure for the categories table:
- cat_id
- subcat_id (if 0 then not a subcat)
- cat_name
This allows me to have unlimited subcats. An example of some values are
1 |...
Hi, I'm trying to set up my own amazon web service. My problem comes from different stores only available to certain countries. Please check http://www.amazon.com/gp/aws/sdk/main.html/002-9395438-1392821?s=AWSEcommerceService&v=2005-03-23&p=ApiReference/SearchIndexValues for information on...
hI, i'm working on a website and trying to make it without using tables (using CSS). If you visit the website below you will notice the navigation bar is positioned in the top right hand corner because the default vertical align is top. I managed to position it on the right but I also want to...
Hi, I want to create a function that will scan through a variable and convert any urls to auto hyperlink. I would appreciate if someone could show me how I could do this. Also could the function truncate the initial link display such that it would say ... (after so many characters) to avoid...
Hi, I am trying to set up a three column structure for my website using CSS. The trouble I'm having is using the footer since I can't absolutely position the divs since I need the footer directly after the content. I've just seen an example on a website about floating them but then when I have...
Hi, I've recently started taking an interest in asp.net as many companies (web developers) look for experience in asp.net when employing people in php. I read a couple tutorials but was not quite sure how different it is. I found c# to be most similar to php but noticed that asp does some...
Hi, I was wondering how to get the global value of a defined constant from within a class. Say I have (within a function inside a class that is called):
echo X_ADMIN ? '<br /><a href="admin.php">Admin Panel</a>' : '';
The constant is defined by:
if($self['status'] == 'Administrator') {...
Hi, I've setup mssql server 2000 desktop edition and as far as I can see all is working fine. I've then setup the web data administrator and when I go to http://localhost/webadmin/default.aspx I am given two authentication methods:
1. Windows Integrated
2. SQL Login
It requires a username and...
Hi, i've been using cookies to store my users login details but have been told it is more secure to use sessions. I've read a couple of tutorials on sessions but one thing I'm not understanding is that when you close the browser or visit another site the sessions are deleted (right?). So how...
Hi, I did a search on google to help password protect a directory. I tried the following files and placed them inside the folder I wish to password protect (c:/www/public_html/phpmyadmin/) and when I go to http://localhost/phpmyadmin it asks me for the password but when I put the details (I...
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.