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 Wanet Telecoms Ltd 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: *

  • Users: 748323
  • Order by date
  1. 748323

    Can cURL work off of the brower's cookies?

    I know how to use cURL, but I've always had to manually plug cookies into the script. Can cURL work off of the browsers cookies? This would probably be very dangerous, so I doubt it can, but its worth knowing. Thanks.
  2. 748323

    Sessions Question

    Maybe there is no more space on your server to keep Session information saved? I took a very quick look through the script, and couldn't find anything wrong.
  3. 748323

    Once per session

    How I would do it: -Use cookies to keep track of who has viewed a photo. Sure, they can be cleared, but its safer than nothing.
  4. 748323

    Form value problems

    Placing: foreach($_POST as $key => $value) { $$key = $value; } in the beginning may work. Try it.
  5. 748323

    Basic Question regarding PHP

    You are dealing with variables, and variable variables. All variable names in PHP start with $. Example: <? $name = 'scorpion'; echo $name; will display 'scorpion' ?> Variable variables are just what they sound like. They are variables, with a name that's also changeable. So... $name =...
  6. 748323

    Function to return prime factors

    I did it! Never give up.
  7. 748323

    Function to return prime factors

    I need to do this by myself. I'll keep trying. Its just going to click one day.
  8. 748323

    Function to return prime factors

    Err.. I can't do it. I tried, but can't. Help is welcomed. Thanks.
  9. 748323

    Function to return prime factors

    Wait. Let me try this. I know I can do it. I'll run back here if I can't do it by tonight.
  10. 748323

    Function to return prime factors

    Grr.. I've been trying to figure this out for a few days now, but I can't figure it out. I've been into PHP for about 6 months now, so I know the functions needed. I just can't convert it into code. Here is a function I made to return the first pair of factors that isn't 1 or the number. 20...
  11. 748323

    Searching a string for text

    strpos() is less of a memory hog than strstr(). Use the first.
  12. 748323

    Insert Data Form Trouble

    Umm... You really aren't using PHP to the fullest. Here is my mini-tutorial on how to use foreach statements: foreach() is a loop in PHP that will run through arrays. It only works on arrays. It is usually set up like this: foreach($Array_name as $key => $value) { block of statement; } That...
  13. 748323

    Creating an online proxy. Help with masking your IP?

    I figured it out. I have a question: What I did, was make a script on my server that uses my cookies to communicate with a separate forum. I used cURL to log in as me, and change my forum signature to anything the user wanted. If the admin looks at the logs of my username, he will notice...
  14. 748323

    Creating an online proxy. Help with masking your IP?

    Nothing shows up. Why is this the wrong place to do it? Its not illegal, is it? Its just for security.
  15. 748323

    Lengthening PHP sessions

    Why not use cookies? The third parameter of the setcookie function lets you determine when the cookie will expire.
  16. 748323

    Validate Phone Number

    Most people will tell you to use ereg(), but I personally hate that function. What I would is get rid of the dashes, run a is_int() check on the remaining string. And then, use substr() to check for specific characters in specific places. Look up the functions at http://www.php.net
  17. 748323

    Creating an online proxy. Help with masking your IP?

    Well, I've created a very basic online proxy. I'm having trouble setting up the proxy. This is what I have so far: <? $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $_POST['url']); if ($_POST['cookies'] != "") { curl_setopt($curl, CURLOPT_COOKIE, $_POST['cookies']); } if...
  18. 748323

    Is there anyway to pass POST variables to a site with Header()?

    Thanks a lot. My script worked perfectly. It connects to a specific message board, grabs the last message that was posted, and changes my signature on that forum according to the last message. Since it doesn't redirect the browser, I used FireFox' reload every to make it do it every 15 seconds...
  19. 748323

    Is there anyway to pass POST variables to a site with Header()?

    Wait.. cURL will run the script, but not send my browser there? That's awesome! That's exactly what I wanted. I'll give that a try. Kind of like inet functions of VB, except it doesn't depend on IE. Thanks!
  20. 748323

    Is there anyway to pass POST variables to a site with Header()?

    I have cURL installed. I was going to ask about that, but I wasn't sure. How would I use cURL do to it? I know to set set up and use cURL, just not that function. I'm assuming you do something like: $postvars = 'user=scorpion&pass=' . $pass; curl_setopt($curl, CURLOPT_POST, $postvars); Mind...

Part and Inventory Search

Back
Top