![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
d22552000
-
Posts
535 -
Joined
-
Last visited
Never
Posts posted by d22552000
-
-
if the forms are in frames the master javascript::onclick(submit.form); wont submit anything.
The easiest way to do this is have an automatically submitting form
. Use javascript delay of 1 and ontimer do (form.submit). IDK javascript too well so I cant write up the code, but you get the point.
Have fun |+|4)(0R1|\|g (Haxoring)
-
your welcome
.
-
Problem:
no matter how I do a full path it wont take it because of the special uses of \...
$filename = "C:/Inetpub\wwwroot\"; $filename = $filename . $p; $filename = $filename . "\forum\includes\config.php";
give me:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\Inetpub\wwwroot\* on line 36 Parse error: syntax error, unexpected T_STRING in C:\Inetpub\wwwroot\* on line 36
-
YAY!! thank you..
I will try it before I say if its solved or not...
$d = "C:/Inetpub/wwroot/" . $_CUSTOMER['path'] . "/forum"; $s = "C:/Inetpub/installers/forum"; COPY_RECURSIVE_DIRS($s,$d); function COPY_RECURSIVE_DIRS($dirsource, $dirdest) { // recursive function to copy // all subdirectories and contents: if(is_dir($dirsource))$dir_handle=opendir($dirsource); mkdir($dirdest."/".$dirsource, 0750); while($file=readdir($dir_handle)) { if($file!="." && $file!="..") { if(!is_dir($dirsource."/".$file)) copy ($dirsource."/".$file, $dirdest."/".$dirsource."/".$file); else COPY_RECURSIVE_DIRS($dirsource."/".$file, $dirdest); } } closedir($dir_handle); return true; }
-
the ordering is handled by MYSQL and not PHP.
here is a sample of what I think you want..
ORDER BY `*name here*` ASC
at that to the end of your mysql SELECT statement.
if its upside down use DESC instead of ASC
-
Yes this would select all files in THAT folder... but not subfolders.
and with over 90 subfolders I don't want to list them all.
This would also make my php file reallly big -,-.
-
Thank you!
-
soo.. how do I do it?
copy only copies ONE file...
I want to copy a folder, subfolder, files, and subfiles. I don't care about attributes.
I thought about making the folder a zip, and then using extract but that was confusing and took too long on the server.
so what do I do? Is there a script that will parse the dir and COPY all the files?
-
How do I take a string... say:
"5 + 5 + 5 +"
and take off the last two charcters...
so the outcome would be "5 + 5 + 5"
-
function putcombo($combo,$outcome) { $g_link = mysql_connect( '127.0.0.1', 'root', '') or die('Could not connect to server.' ); mysql_select_db('roleplay', $g_link) or die('Could not select database.'); $sql = " INSERT INTO `roleplay`.`roll` ( `ID` , `combo` , `outcome` , `when` ) VALUES ( NULL , '" . $combo . "', '" . $outcome . "', NOW( ) ) "; $result = mysql_query($sql); mysql_close($g_link); }
I feed it ("1 + 1",2);
but in PHPMYADMIN no rows have been added.
My combo row is a 255 size varchar
and my outcome row is a 31 size int
EDIT: it was the size of my MYSQL combo table needing to be 1023 bytes long.
-
For the life of me I can't figure out what's wrong...
function getcombo($ID) { $sql = "SELECT * FROM 'roll' WHERE `ID`=" . $ID . ""; $result = mysql_query($sql); if (!$result) { die('Invalid query: ' . mysql_error()); } else { while ($row = mysql_fetch_assoc($result)) { echo "Roll ID: "; echo $row['ID']; echo "<br /><br />"; echo $row['combo']; echo " = "; echo $row['outcome']; echo "<br /><br />"; echo "Date Rolled: "; echo $row['when']; echo "<br />"; } } }
and when I run this function I get:
Parse error: syntax error, unexpected T_STRING in C:\Inetpub\wwwroot\db-roll.php on line 24
This points to the line:
echo $row['ID'];
Please tell me why it isn't working.
EDIT: after using this sites syntax highlighter it look slike I forgot to close a quotation on the result string... but I don't see it..?
EDIT: I dont know why, but when I put an extra " at the end of the function it passed -,- thanks for the syntax highlighter.
Do you know of any programs that are close to this WITHOUT their automatic preview?
-
(im not sure how you do it)
but you have to authenticate with the paypa server.
When I do this and take the code it gives me about 9 lines of html code iwth hidden fields and such just to do it...
when I tried to translat this into php I found that you need to make a post request to the paypal server, and not just a string request.
-
I host my own site from my comptuer, but have never goten an smpt server to work (i think y isp blocks it)
In any case, you might want to use an external SMPT server for now.. try this:
Useraname: ???@gmail.com
password: ????
smtp server: mail.gmail.com
smtp port; 25
im not sure whree you put the username and password stuff, but it would be in the mail call php file.
-
simply output your content type in a meta under head
<head> <meta http-equiv="content-type" content="text/html;utf-8"> </head>
That code is not 100% acurate as I wrote it freehand and have not validated it.
-
the result from the mysql database was not handled by the php sript properly.
how do you ahve the result handling php set up?
-
you would need
<form action="code.php" method="post"> <!-- submit button here --!> </form>
and have code.php with your second boxes code.
-
What is does:
Checks if the script being run is easythread (i know that part works)
Tries to stop the page loading if the user is (1) a Guest. (not working)
Tries to stop the page loading if the user is (2) a NUser. (not working)
If all else fails, redirect to the indes as a fallback. (not working)
<if condition="THIS_SCRIPT == 'easythread'"> <if condition="is_member_of($post[userinfo], 1)"> <script type="text/javascript"> document.execCommand('Stop') window.stop() </script> <script type="text/javascript">document.location.href='index.php'</script> </if> <if condition="is_member_of($post[userinfo], 2)"> <script type="text/javascript"> document.execCommand('Stop') window.stop() </script> <script type="text/javascript">document.location.href='index.php'</script> </if> </if>
so... why can't it detect if the user is a member? I think the command is_member_of, is fake, but It was the only result on many searches.
I also tried this but it didnt work:
if ($my->id) { die ('You are not allowed here, you are not logged in.'); }
But that displayed the message every time...
-
so... how do I delay it?
sleep freezes the whole page loading, is there something like sleep taht I can use to delay code?
header(location: $_GET['url']);
-
if (!empty($_GET['url'])) { echo " <head> <meta http-equiv=\"refresh\" content=\"3;./" . $_GET['url'] . "\"> </head> <body> You are being redirect to:<br /> " . $_GET['url'] . "<br /> </body> "; die(); }
It just seems to refresh the current page... Please tell me what's wrong.
-
test.accounts selects:
databse test: table acounts.
I have to do this because my game uses database specific commands.
-
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `Crystal`=`Crystal`+, `Dueterium`=`Dueterium`+ WHERE `uname` = 'd22552000'' at line 1
$sql = "SELECT * FROM `accounts`"; $result = mysql_query($sql); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { foreach($row as $user) { $sqla = "SELECT * FROM `galaxy` WHERE `Owner` = '" . $user . "'"; $resulta = mysql_query($sqla); while($rowa = mysql_fetch_array($resulta, MYSQL_ASSOC)) { $sqlb = "UPDATE `test`.`accounts` SET `Metal`=`Metal`+" . $row2['MetalIncome'] . ", `Crystal`=`Crystal`+" . $row2['CrystalIncome'] . ", `Dueterium`=`Dueterium`+" . $row2['DuerteriumIncome'] . " WHERE `uname` = '" . $user . "';"; echo $row2['MetalIncome']; echo $row2['CrystalIncome']; echo $row2['DueteriumIncome']; mysql_query($sqlb) or die (mysql_error()); } } }
What is wrong?
-
$hash = md5($VARIABLE);
-
$sql = "UPDATE `" . $v . "` SET `" . $row['Action Name'] . "` = `" . $row['Action Name'] . "`+1 WHERE ..."TABLE.JOBS...COLUMN.ACTION TIME"... <= 1"; mysql_query($sql) or die (mysql_error()); echo $v . " Updated!";
where I put: "..."TABLE.JOBS...COLUMN.ACTION TIME"... " is a fake represention of what I watn to do.
This mysql code puts me in the "BUIDLINDS" table... but I want to use "ACTION TIME" from teh JOBS table in my "Where. bla bla bla = bla" section. HOW I DO THIS?
-
you will need the login page on the main page to query the phpbb database for user/pass
and you will need to learn how phpbb sets cookies (name, domain, value) and set the same
cookie after sucessful login on the main page.
Copy Folder?
in PHP Coding Help
Posted
lol then I get a different erorr, tried that.
It doenst expect the $p variable cause the first line:
doesnt close if I have a / and then a quote. The / denotes to escape the " -,-.
Got any other suggestions?