Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. buspass

    Redirect Question - masking url in address bar

    OK, thanks for the suggestions anyway :)
  2. buspass

    Redirect Question - masking url in address bar

    I tried this: $urlToFetch = 'http://abc.go.com'; $ch = curl_init($urlToFetch); curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); $contents = curl_exec($ch); echo $contents; which worked, echoing the page contents, but other urls didn't work. Clickbank affiliate urls did not work - for...
  3. buspass

    Redirect Question - masking url in address bar

    Article directories such as ezine, prohibit direct links to affiliate pages from articles, unless you redirect to an aff page from your own domain. So if I link to www.mydomain.com from the article and then redirect the user to the affilaite page, that is okay - they will allow that. But I...
  4. buspass

    Redirect Question - masking url in address bar

    cURL - Would you be able to provide a code snippet to point me in the right direction? Thanks
  5. buspass

    Redirect Question - masking url in address bar

    This script works nicely for files I host myself, and I am using it. I would like to expand its use to include URLs hosted elsewhere if possible - can that be done? So, say I want to have my affiliate offer page appear to a user and retain my root domain in the address bar - can I do that...
  6. buspass

    Redirect Question - masking url in address bar

    Yes that is very nice. Solves the loop problem - thank you much better than a frame Thanks added again :)
  7. buspass

    Redirect Question - masking url in address bar

    Is this what you meant me do? <?php session_start(); $id = $_GET["id"]; if (!(isset($_SESSION['id']))){ $_SESSION['id'] = $id; header("location:http://audiovoiceads.info"); }else{ $id = $_SESSION['id']; $root_domain = $_SERVER['HTTP_HOST']; $filename = "id_list.txt"; //...
  8. buspass

    Redirect Question - masking url in address bar

    It was the Ajaxy stuff that put me off :) but will try your code as well. Actually just trying my code with the domain.com straihgt into the address bar (or via a bookmark) and I am getting a Redirect Loop error. I must have something wrong with my code. This is my code attempt <?php...
  9. buspass

    Redirect Question - masking url in address bar

    Thanks for all the input. jpadie , thanks for that code but I have got this working without need for database. I wanted a simple portable solution and just use a text file to store the article page names etc. I used a session as you origianlly suggested and it works a treat. I will test...
  10. buspass

    Redirect Question - masking url in address bar

    The purpose of this script is simply to allow me to include links containing querysrings in my articles. Some article directories do not allow linking to sub domains or sub folders on your domain, so they won't allow www.site.com/folder/link.htm or sub.site.com for example. So all I am after...
  11. buspass

    Redirect Question - masking url in address bar

    Sessions are a good idea - I will play around with some code. Whatever solution I (we) come up with, it has to be portable across different servers, and i don't want to use htaccess at all.
  12. buspass

    Redirect Question - masking url in address bar

    There may not be a php solution to this - but I will explain what I want to do first. I want to be able to show a link in an article resource box that points to my root domain with a variable in the querystring - eg "www.site.com?id=123" When clicked, my php script will $_GET["id"] the value...
  13. buspass

    POPULATING SELECT ELEMENT FROM DATABASE

    Forget this thread I loaded 27000 items into my table and populated a combo by querying the table when the page was loaded. It took 70 seconds to load on my server. if user refreshes it takes another 70 seconds. So that's it. I'll either have to live with the 70 second delay (which is too...
  14. buspass

    POPULATING SELECT ELEMENT FROM DATABASE

    OK, let's say i use multi selects, as big bad dave suggests. At moment we are only talking UK, so we only need 2 tables... town and county. The user needs to select a town OR a county to include as search criteria. If he chooses town, I'll need to query the town table and fill the combo, same...
  15. buspass

    POPULATING SELECT ELEMENT FROM DATABASE

    I was going to use something like mysql-front to load the raw data into the table from a csv file i've already got.
  16. buspass

    POPULATING SELECT ELEMENT FROM DATABASE

    Hard coding it is going to take time. I've never seen more than a few hundres items in a list at once (usually a list of countries) Hard coding 20000 items ( a list of towns in UK) is going to be time consuming and I'm concerned about the time the page would take to load. Filling from a...
  17. buspass

    POPULATING SELECT ELEMENT FROM DATABASE

    I use php/mysql. I would like your thoughts on the best way to populate an html form SELECT drop down list which will contain around 20,000 items. Hard coding them into the html, or calling them from a database? Thing is, once they've been called from the database, and appear in the combo...
  18. buspass

    Help building a query

    Forget this question, I've found sorted the problem out.
  19. buspass

    Help building a query

    i have a PHP search page with several text fields, surname, email,phone as an example. the user fills one or all in and clicks search button. The data is POSTed to a result.php page. Here i need to validate what has bbeen completed, and build the query depending on which fields have been...
  20. buspass

    Help displaying search results with PREV NEXT

    i am having problems displaying search results from a mysql database in blocks of 20 or so using prev and next links. I have read through old posts and got some sample code which worked in a test file, but not in my code.. I have copied some example code from my pages here with comments in to...

Part and Inventory Search

Back
Top