-
Posts
1,025 -
Joined
-
Last visited
Never
Posts posted by Caesar
-
-
There error is coming from /home/sgcrys5/public_html/include/sql.inc.php on line 1. Is the code you posted above from sql.inc.php
True dat.
-
I'm guessing an extra/missing curly bracket. What line does the error say it's in?
P.S - It be easier to find if you indented properly.
-
Your PHP files are likely written sloppily or assuming certain settings are enabled. Just go through your code and use relative paths, make sure your code is not dependent on register_globals, and that it does not assume other settings are enabled (Maybe some conditional statements with a way to handle this so your pages simply don't error out and become unviewable).
-
Can you being up any PHP pages? What happens if you upload a PHP info page?
Throw the following into notepad and save it as "info.php" and upload it to your site & try to open it in your browser:
<?php phpinfo(); ?>
-
Use relative paths instead.
-
Without having to comb through your code, can you please paste the exact error yo see...or possibly a screen shot of what's happening? Thanks.
-
Use a while loop instead.
-
You can grab the extension and just add your random filename to it:
<?php $xtenshun = substr($str, strrpos($str, ".")); ?>
-
Like a redirect, you mean?
<?php if(!isset($_SERVER['HTTPS'] || strtolower($_SERVER['HTTPS']) != 'on') { header("location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); exit; } ?>
-
So the form does not require someone to be logged in or authenticated in order to submit?
That be your problem thar.
-
PHP on Windows sucks....because of Windows. And especially in CGI mode.
Also....
http://youdomain.com/?pid=2&search=12
Simplified example..
"index.php"
<?php function getContent() { $pageID = $_GET['pid']; switch($pageID) { case 2: Search($_GET['search']); break; default: mainContent(); } } function mainContent() { //Whatever dude. Load a template file or add your HTML here. } getContent(); ?>
Instead of using/linking to a million diferent PHP files...just use functions or even include files and add some kind of conditional statement that determines what content to load. Technically, you don't need to have the extension in the url. Apache mod_rewrite would be much nicer than this though.
-
You would need to simply format the link or form in their email so that it posts/sends them to the right page and the values are passed. Maybe even do it so that it's encrypted.
http://somesite.com/form.php?id=bq5t53tmsnq35qbubhq3t4babrugy98yhuij4ht8g4
You then decrypt the id's value (Or whatever get variable you use) in your form script/file and auto-fill your form accordingly.
-
<?php if(strtotime($ADate) < strtotime($oneweek)) //Then do the Dew ?>
-
So initially...your site/server send an email to someone. You want that email to contain a link that goes back to a script on your site where they see a form that has been filled with the appropriate values?
-
Compare them as timestamps. Don't compare them after they've been formatted.
-
Where would you be "extracting" from? I think the confusion is in how you are asking your question. Please try to be specific.
-
If your "voting system" does not require users to have cookies enabled, register or login...it will be extremely difficult to make it accurate. IP's can be spoofed & people can use proxies.
-
Look into using the rand() function. And you can randomize the image once a day, using cookies. Provided the user does not delete the cookie, the image will not be reloaded until the next day.
-
Yes...it's possible. Your question is far too broad/open-ended to provide a simple answer to.
-
PLease clarify what you mean by "change....to php". Do you mean reformat a value that was run through cdbl() in another non-PHP script, to something else? If so...then yes. But we would need an example of the value...and what you want it converted to.
-
You can print out (Or echo) any HTML you like.
<?php echo' <div id="online"> '.$users_online.' </div>'; ?>
-
`private_messages`
id (INT) | userid (INT) | author (INT) | time_stamp (INT) | message (TEXT) | ======================================================================================================== 1 2 5 1128793540 hey you...
Would be a simplified way of doing it.
-
If you have not purchased an SSL certificate you'll have to see about using a shared one from your host.
-
Not really. Since the session temp files don't get deleted when a user simply closes their browser. So not really any reliable way.
Parse error: syntax error, unexpected ';'
in PHP Coding Help
Posted
Windows sucks. They're all about ignoring standards :-P
(Doubt the indentation alone was the issue though. Could be some garbage/unseen blank characters were in the files due to the way they were saved/transfered on your Windows box. Again, Windows blows gonads.)