-
Posts
4,268 -
Joined
-
Last visited
Everything posted by BlueSkyIS
-
Creating temp file and transfering through ftp
BlueSkyIS replied to AtomicRax's topic in PHP Coding Help
i suggest that you copy the tmp file to a directory, perform alterations, upload that file via ftp, then unlink() the file. i think using temp file is the problem. -
it might help if you also echo the sql with the error: $s = "SELECT * FROM jobs WHERE id = ".$editid." "; $sql = mysql_query($s) or die ('Error: '.mysql_error () . " IN $s");
-
are there any errors? can you describe the problem you are having?
-
i don't do anything with xml, but you need to remove quotes from around the $_POST variables. one example. $student_node->appendChild($student->createElement('ime', $_POST['ime'])); the code should not even compile with those quotes in there. are you not getting syntax errors?
-
$file needs to be the full path of the file on the server.
-
you should check to see if $_SERVER['HTTP_REFERER'] is set before referencing it as an array: if (isset($_SERVER['HTTP_REFERER']) && in_array($_SERVER['HTTP_REFERER'], $referrals, FALSE)) { and this line is unnecessary and potentially causing problems: Header( "HTTP/1.1 301 Moved Permanently" ); // REMOVE THIS
-
public static function onCommandRadio() { don't know what this is supposed to be doing... event $event, // ??? datahelper $dh = null, // ??? $help = 'use !Radio to toggle stream info On/Off') // ???
-
correct: i would have to set one name= attribute for each dropdown. Like "birth_day""birth_year" "birth_month"?
-
Parse error: syntax error, unexpected T_ELSE
BlueSkyIS replied to ddonog115's topic in PHP Coding Help
I verify: With short tags turned off, I get the same parse error. updating <? to <?php fixes it for me. -
Parse error: syntax error, unexpected T_ELSE
BlueSkyIS replied to ddonog115's topic in PHP Coding Help
the only thing that i can think of that would make some php installations fail is the short tag, <? which should be <?php <? // WRONG } if($Prev_Page) <?php // CORRECT } if($Prev_Page) ... which tells me that my installation has short tags enabled. going to turn that off right now. -
the data should not have extra slashes to start, then you wouldn't have to remove them. i suggest that you update the code that inserts the data so that extra slashes are not added, then update the database to remove extra slashes that were already added.
-
Parse error: syntax error, unexpected T_ELSE
BlueSkyIS replied to ddonog115's topic in PHP Coding Help
parses without error for me, after i add a closing ?> at the end of the posted code. -
Flyover popup works correctly but posts undefined error message
BlueSkyIS replied to lisounder's topic in PHP Coding Help
you might try a javascript forum instead of a php forum. -
for convert, you must supply the full path to the image locations. /home/user1/http_docs/images/a.jpg
-
how are you adding items to $newsimg?
-
A problem with $_SESSION closing unexpectedly
BlueSkyIS replied to firehawk777's topic in PHP Coding Help
you can only call session_start() once per page, so it only needs to be at the top of the primary (actual) page and not at the top of any include() or require() pages. -
oh i see. so in your post you are using the html ® i misunderstood and thought you were using the actual symbol, which is what I did in my example. in other words: i did not change the symbol to it's HTML counterpart before placing it into the url.
-
not url-encoding seems to work for me. $pagename = "Test Device® CR Plus.htm"; touch ($pagename); echo "<a href='$pagename'>Test Device® CR Plus</a>";
-
remove trademark or register symbol from the url.
-
How to catch Session Variable undifened exeption
BlueSkyIS replied to Leftfield's topic in PHP Coding Help
you must use session_start() on any page that uses $_SESSION. you must NOT have any browser output before session_start(): no empty space, no HTML, no nothing going to the browser before session_start() -
that means you need to either 1. set a default for that field, or 2. include a value (even an empty string, '') when performing an insert. i would do number 1.
-
i use tables for forms because i am not so hot at css and find it tricky to get things to line up right in a form using css. lame excuse, but there it is.