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 bkrike 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: verbatim1
  • Content: Threads
  • Order by date
  1. verbatim1

    combining php and javascript code

    I am using a php script to list the websites [folders] in a directory and links to them. I am trying to figure out a way to make another window open when the link to a given folder is clicked with javascript. I have tried placing the javascript code in multiple places with no luck. Any help...
  2. verbatim1

    how do i prevent the url from changing in the address bar?

    quick question: how do i prevent the url from changing in the address bar? currently, when i type timmy.bar.com - it goes to www.bar.com/okay/timmy but the address bar will continue to show timmy.bar.com. After clicking on a link though, it will show the full url. how do i configure it so...
  3. verbatim1

    htaccess rewriteEngine problem- which of my variables is wrong

    i am trying to configure a rewrite rule that will redirect foo.bar.com to www.bar.com/okay/foo i have attempted to alter the script below with no luck ############################ rewriteEngine On # Rewrite <subdomain>.example.com/<path> to example.com/<subdomain>/<path> # # Skip rewrite...
  4. verbatim1

    how do i insert info to a table?

    when trying to insert to a table info for a picture with a html link to another site on it i get an error message: counter INSERT error: 1064, You have an error in your SQL syntax near 'href=""www.mysite.com" target="_blank"><img src="/uploa' at line 1 the mysql code is below $damn = '"<a...
  5. verbatim1

    How can i redirect where my form posts to?

    Because I would like to see the data posted. I have successfully submited info to a form with cURL in the past but I have a form on my website that i attempted to post to with cURL with no luck. the form normally posts to itself. How can i change the post action so that the info is sent...
  6. verbatim1

    403 forbidden error with cURL script. no access to cgi-bin???

    I am trying to set up a cURL script to automatically post info to a form i have on my site. I get a 403 error when running the script. Initially i put the curl script in my html directory so i could just type http://www.mysite.com/curl2.php and run the script. During my 1st attempt my cgi...
  7. verbatim1

    the curl example FAQ434-2502 gave this error:

    i copied the curl example from FAQ434-2502 . the only changes i made were to put in my data fields where the examples were. changed IP-resolvable FQDN of the server $hostname = 'hostname.mysite.com changed the CGI path so my script looks like this: <?php /* There are two fundamental...
  8. verbatim1

    how do i simulate a form post with cookies in it?

    I am attempting to mimic a form post or [simulate a form post] I have a form on my website that sets cookies in the header when the initial form page loads. I think i a\have the script set up correctly to send the form data. My problem: I am trying to figure out how to send the cookie that...
  9. verbatim1

    is this php script wriiten correctly? fsockopen error message:

    I have a form on my website that creates cookies in the header when the page loads. I am attempting to mimic a form post. I get the following 2 errors when tring to simulate the post: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in...
  10. verbatim1

    unexpected T_VARIABLE where data

    I can't find the solution in my php editor. The error starts at the 1st line of data : $data["dbType"] = "mysql"; can someone tell me where my error is please? <?php function post_it($datastream, $url) { $url = preg_replace("@^http://@i", "", $url); $host = substr($url, 0...
  11. verbatim1

    noob php question

    f i want a variable to = the name of the folder the script is placed in, how would i write that? script is in : /var/www/html/userz/joe/ and i want the username to be 'joe' any help offered is appreciated.
  12. verbatim1

    will this script copy only certain files?

    i want to copy all the files [but none of the folders] from one folder to another. To copy only the files and not the folders this should work: <?php define('TARGETDIR', '/home/xxx/mainwebsite/new/''); foreach (glob('/home/abc/dep/*') as $dep) { if (is_file($dep)) # Exclude...
  13. verbatim1

    why isn't this symlink script working?

    I was told that the code below would create symlinks in php. $path = "/home/user/orig_file"; $path_new = "/home/user/link_file"; symlink($path_new, $path); I 'reconfigured' it to work to my needs, but it doesnt. the paths i am trying to link are below: $path = "/home/some/dep/"...
  14. verbatim1

    which is the correct directory path?

    i have downloaded a user authentication script [vSignup,@ www.beanbug.net] i want to install it outside of my html directory so: 1. visitors to my site wont have to type www.xxx.com/vsignup/login.php 2. no one has access to the php files, and 3. visitors wont see...
  15. verbatim1

    unexpected t constant encapsed string

    on line 14 below. what is it please? <? $ID = uniqid("userID"); $db = mysql_connect("localhost","xxxxx","xxxxx"); mysql_select_db (secretDB); $result = mysql_query ("INSERT INTO users (id, real_name, username, password, email)                 VALUES ('$ID', '$real_name', '$username'...
  16. verbatim1

    help automatically creating new user subdirectory

    i was wondering if someone could assist me in creating the functionality where a person can sign into a website as a new user and the website automatically create a subdirectory named whatever they chose as a username?

Part and Inventory Search

Back
Top