Jump to content

mistergoomba

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mistergoomba's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a form 'form.php' which sends post data to 'actions/form.php' which then processes the information and uses header("Location: ../form.php"); exit; to return to the form after the script has executed. The problem is, when the user is returned to form.php and hits 'Refresh' or 'Reload', the pop up saying 'The page you are trying to view contains POSTDATA'. Is there a way I can dump post data in the form.php header?
  2. So, I just installed Apache via XAMPP and would like to start developing my web pages under htdocs in the apache folder. Now, when I go to my browser and type in [a href=\"http://localhost/\" target=\"_blank\"]http://localhost/[/a] it goes to index.php in the htdocs folder. Now, I'd like to have 1 folder within htdocs for each web site. How do I tell apache to let each one of these folders be a separate web site? In other words, how can I access it locally and have each one be a separate root directory the same way I can enter [a href=\"http://localhost/\" target=\"_blank\"]http://localhost/[/a] and have that be a root directory. Will each folder have an IP address? Do I use httpd.config? Do I use .htaccess? Also, how do I a) find out what IP address will access my folder remotely, and b) restrict remote access and only allow the pages to be accessed locally? Will deny all limit access remotely and locally or just remotely?? Thanks for helping a newbie!!
  3. i just installed XAMPP. i 100% endorse this product! ive been working on php for several years and wanted to be able to run php and mysql scripts without having to upload them to the server first. someone said to check out XAMPP and it installs Apache, PHP, MySQL and several others without having any knowledge of apache. now that it works and is running, i can start to learn it.
  4. holy shit! xampp is exactly what i needed! you are my hero!
  5. Is there a program that will let me run basic php scripts without the use of a web server? I realize it's a long shot, but what the hey...
  6. may i suggest adding an extra dimension to the array? instead of $_SESSION['pr_1'], maybe $_SESSION['pr'][1]. It may make the code cleaner and easier to sort through the array. I would organize it as $_SESSION['BG-457']['p'] = 9.99; $_SESSION['BG-457']['q'] = 3; i dunno if that helps or answers the question, just throwing it out there
  7. if i'm reading it right, you want to get $row['ItemNum'] to work as opposed to $row[1] which you are getting?! I use MySQL, so the line would be $row=mysql_fetch_assoc($res), but in your case, id guess it would be $row=odbc_fetch_assoc($res)
  8. Okay, so I understand how to set up an email filter in the .filter file by piping an email to a PHP script. I was wondering if there is any header in the email that will tell the filter that it is a bounce back so I can send it to a script to extract and collect the bogus email address. Basically, I just need to know how to filter bounce back emails.
  9. try putting [code]import_request_variables('p');[/code] at the beginning of the script
  10. use strpos to test the occurance of a string in an array. so you have your array. let's say it looks something like this: [code]$tags = Array      [0] = 'a href=dir1/link1.html>'      [1] = 'a href=dir2/link2.html>'      [2] = 'img src=dir2/img1.jpg>'[/code] we want to find all tags that use the directory 'dir2'. now, use foreach to search the array. [code]foreach($tags as $k=>$v){      if(strpos($v,'dir2/')){           echo 'Tag #'.$k.' contains the directory!';      } }[/code]
  11. A couple suggestions: The easy way would be to separate the strings first. [code]$haystack = explode(".",$haystack);[/code] Then you can use 'foreach' to search each individual sentence. The hard way is to learn how to use Regular Expressions. In this case, the easy way would probably be best, but it wouldn't hurt to learn Regular Expressions anyway. They will definitely come in handy.
  12. paypal has a merchant account where it will accept credit cards from users that do not have paypal accounts. it will also provide you with the code for a shopping cart. when the user wants to check out, paypal will ask them if they want to use their pay pal account or use a credit card.
  13. [code] $handle=opendir('live/'); $file = array(); while($var = readdir($handle)){      if(is_file("live/".$var)){           array_push($file, $file0);      } }[/code] Of course replace 'live/' with your directory. All file names will be in an array called $file. You can then pass the array through a loop to print out the links. [code]foreach($file as $k=>$v){      echo '<a href="video.php?filename=$v">$v</a>'; }[/code] [!--quoteo(post=362848:date=Apr 8 2006, 01:07 PM:name=battleroyalex)--][div class=\'quotetop\']QUOTE(battleroyalex @ Apr 8 2006, 01:07 PM) [snapback]362848[/snapback][/div][div class=\'quotemain\'][!--quotec--] anybody :( [/quote] PS: This above example will not add '.' and '..' as filenames.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.