BK87
-
Posts
147 -
Joined
-
Last visited
Posts posted by BK87
-
-
it really dosen't matter, it saves you a step... I usually keep files like config.php a directory back from www just in case file associations might get screwed up, other code can/should be kept in www dir.
-
you can try...
<A href="http://<?= $_SERVER['SERVER_NAME']/file.php">open file.php</a>
-
you will def have to go into your php.ini and change it manually... and restart apache by the way after you reconfigure php.ini
-
very top of your code put this, after <?php
ini_set("memory_limit","100MB");
or locate your php.ini file then open it, and change the memory_limit to like 100mb...
-
post up come code my friend. otherwise no help.
-
<? if($_POST["submit"]!=NULL){ if($_POST["username"]!=NULL&&$_POST["password"]!=NULL){ //username and/or password is filled }else{ //send person back to form or something.... } } ?>
-
your db connection is not setup right... make sure all username/password/ and db name is correct...
-
you have to upload image as blob to mysql... its easier to store in folder.... less stress of mysql server
-
is this code oscommerce specific? or just random code?
-
all redirection have to be done before any html or any characters are printed on the page...
rearange your code...
-
you should try to upload a file first, instead of jumping into video....
visit http://snippets.dzone.com/posts/show/3729 they have an example
-
examples maybe?
-
$lim=$page*$max_results; $offset=$page*$max_results+$max_results; $sql = mysql_query("SELECT * FROM users WHERE gender = '$gender' AND age>='$agemin' AND age<='$agemax' limit $lim, $offset") or die(mysql_error());
try that
-
try linuxforums =)
-
html header for emails is...
Content-type: text/html
so insert
$headers .="Content-type: text/html\r\n";
right before the mail() function near the end of the code
-
I looked at your html heh... but anyway I don't have a result for your issue with paging, maybe next time I log on here, but I'd like to point out this little trick for "listing"
for($i=18;$i<90;$i++){ echo "<option value='$i'>$i</option>"; }
just quicker...
-
add a randomizer at the end...
<img src="nodownload.php?image=image.jpg&rand=<?= rand(0,99999); ?>">
or something like that
-
yes you can do that, if you want my company can transfer for you $10-20 (depending on forum size)... takes approx. 1hr or so.
but if you wanna do it your self then...
copy all file from server A to server B
then copy mysql database from server A to server B
if you have cpanel on both servers, then you can just do a "backup" of your server, and then upload it to server B and unzip the file there..
have fun adios
-
your script will connect to the db meny time... because 'while' will just keep connecting and connecting
try this
$db=@mysql_connect($server,$dbusername,$dbpassword); if(!$db){die("Database error");} @mysql_select_db($database);
-
looks fine to me... you might want to cache your "data" so db doesn't work 24/7 if a person sees the same thing every time why pull it out of db... especially if its a lot of people at the time
-
without refreshing the page?
try regex... http://www.webreference.com/js/column5/methods.html
basically you would "split" the file name the same way you did with your script.... this would work without refresing
-
you just need to make a little php upload script I assume?
-
refer to... http://us.php.net/manual/en/function.mysql-select-db.php
instead to connecting to localhost, connect to external host with designated address...
-
you want this right...
Website A: have form.php, connect.php
Website B: has sql server?
you need to have a connection from Website A to Website B. You can set up a connection if your using mysql server, you need to create a user on Website B, with recognizing IP/host address from Website A, make a script that will connect the Website B to Website A, then create a script that will insert the info from the form into the database...
I'm an old programmer, I'd sketch this for you, but I'm kind of rusty. =)
Automatically setting link's TARGET to _blank if it doesn't point to my site
in PHP Coding Help
Posted
there definitely is possible with php because I used this method before on my old websites, although! Its much easier with javascript!
(also I take no credit for this found this online)
just place anywhere in header section of file, and change localhost to youwebsite.com