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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
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...
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/"...
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...
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?
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.