PravinS
-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Posts posted by PravinS
-
-
According to you requirement don't use FTP upload script, you can use simple PHP uploading functions like copy, move_uploaded_file etc. to upload files.
-
What exactly your requirement?
If you want to upload/download multiple files from your local machine to server or server to local machine, you can use any FTP client like FILE ZILA, CUTEFTP etc.
-
Please check this lines
$connection_id = ftp_connect($ftp_server); $login_result = ftp_login($connection__id, $username, $password);
variable name $connection_id in second line has tow under scores(__)
also update this lines as
if ((!$connection_id) || (!$login_result)){ die ("No FTP-Conection established!<br>Connection with FTP-Server as user ".$username." not possible!");
-
As "AS" is reserved word in MySQL, so may not be updating the record and also not giving any error as sql syntax is correct.
Try using this query
mysql_query("UPDATE registrations SET `AS` = '9' WHERE `ID` = '123' ");
-
Use like this
<script language="javascript" type="text/javascript"> var id = '<?php echo $id; ?>'; </script>
-
This will help you
<?php //For A - Z (Capital letters) for($c=65;$c<=90;$c++) { echo '<a href="page.php?letter='.chr($c).'">'.chr($c).'</a>'; } //For a - z (Small letters) for($c=97;$c<=122;$c++) { echo '<a href="page.php?letter='.chr($c).'">'.chr($c).'</a>'; } ?>
-
-
-
Enable error_reporting(E_ALL) for PHP errors and let see what happens.
-
Try this
$array_search = array('<td>','</td>','<tr>','</tr>'); $array_replace = array('','','',''); $str = str_replace($array_search,$array_replace,$str);
-
-
As this code is not in form, so "this.form" will not work, instead of it assign "id" attribute to radio button and use javascript "document.getElementById" function to check the radio button.
-
Remove "%" from LIKE statement, search only pageid like e.g. "LIKE '$pageid'" in WHERE clause of SELECT query
-
Use
"$stmt->affected_rows" or "$stmt->num_rows"
instead of
"$mysqli->affected_rows"
-
remove "$" from $phone, it should be like "$this->phone" not like "$this->$phone"
-
you need to check user login status on every page and if it is inactive just destroy the session of logged in user.
-
Set alt,title attribute for image tag
Like:
echo "<img src='".$showimage."' height='200px' width='133px' alt='SAMPLE TEXT'/>"; OR echo "<img src='".$showimage."' height='200px' width='133px' title='SAMPLE TEXT'/>";
or you can download some javascript tooltip script and apply it to image tag.
-
Try using PHP "array_intersect()" function.
-
Rather than creating you own CMS, use open source CMS like Joomla, Wordpress etc.
-
try..
<?php include('../header.php'); include('../menu.php'); ?>
-
try using array_push()
-
Try using PHP "array_merge_recursive" function
-
No need to use "CONVERT", just use "ORDER BY datetime". Also if possible change the field name "datetime" as it is reserved word
-
You are checking USERNAME and PASSWORD both in SELECT query. I think you should check only USERNAME in database.
FTP Upload Problems
in PHP Coding Help
Posted
So you can use FTP php script. Just create single FTP account and use your above code for uploading, but do take security measures.