39,323 Topics
| |
How to search for a filename in Php?? Even if i put a substring of a file,it display the full file name?Is there a direct function in PHP? | |
hi all i cant see my erron in the code i have followed the tutorial but i cant see it i wont some help. here is my code. $to = 'andi_138el@hotmail.com'; $subject = 'Contact from submitted'; $body = $contact_name."\n".$contact_text; $headers = 'From: '.$contact_email; if (mail($to,$subject, $body, $headers)){ echo 'Thanks for … | |
I'm new to phpmailer and I tried to follow their example. I'm using php mail() function to send emails and I'm getting an error: "Invalid address: $toYou must provide at least one recipient email address. Mailer Error: You must provide at least one recipient email address." What email address is … | |
I am developing a script that takes an article, searches the article for a "keyword" and then randomly replaces that keyword with an anchor link. I have the script working as it should, however I need to be able to have an array of "replacements" for the function to loop … | |
So, I've been trying this multiple delete thing with a checkbox and I did look on the internet for some code snippets and up to now, I have this: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Intrious Website</title> <link rel="stylesheet" href="tablestyle.css" type="text/css" /> </head> <body> <?php include('includes/header.php'); ?> <div id="main"> <h1>Hardware Delete<h1> … | |
So, I installed the recaptcha into my site... and I don't know why it doesn't verify... You can submit the form with out worrying about the code you have to type in so that recaptcha verifies the form. So... I have a form that shows recaptcha, but it doesn't verify... … | |
How can I extract the main classname of a java file ? I am doing this in php! I will read the whole java program as a string! Please help! <any_type/public/private/static> class **MainClass** { //Could be anything over here! public static void main(String[] args) { System.out.println("Hello World!"); } } | |
Hello. I am trying to connect my MYSQL Database to my JpGraph but it is not working. Any help is appriciated. Here is my conde. <?php include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_bar.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_line.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/src/jpgraph_pie3d.php"); include ("c:/wamp/www/Charts/jpgraph-3.5.0b1/db.inc"); $host = "localhost"; $username = "root"; $password = ""; $database = "test"; … | |
PHP: Display Image from Database I'll Keep It Short Because I Need Help Immediately. Im Trying To Do Exactly What On This Tutorial But Don't Know Where To Start. I've Recently Posted Two Post About This But Have Yet To Find Anyone Completely Helpful! If Knows ANYTHINg About This, Fell … | |
i wont to know why we have to equal this variabel what is theri meaning $contact_name = $_POST['contact_name']; $contact_email = $_POST['contact_email']; $contact_text = $_POST['contact_text']; | |
need help finding whats wrong syntax error in line 265 <?php function pay_upline( $refered, $level, $oamount ) { global $Db1; global $username; global $settings; global $today_date; $return = 0; $sql = query( "SELECT user.membership, memberships.downline_earns FROM user JOIN memberships ON memberships.id=user.membership WHERE user.username='{$refered}' and type='1'" ); if ( 0 < … | |
Hi, I have a table and I need to write a SQL to limit the resulset set based on 2 conditions, by IP and out of that resultset, remove the rows which have nothing in 2 columns. So I have tried this but it's not producing the expected results: SELECT … | |
Please help me with this... I cannot insert pictures into the folder and it is not saving in the database But it creates album folder. Thanks $albumname = addslashes($_POST['albumname']); $target_path = "Gallery/images/".$albumname."/"; @$imagename = basename($_FILES['image']['name']); @$target_path = $target_path . $imagename; $file = $_FILES['image']['tmp_name']; //@$image = addslashes(file_get_contents($file)); $album_target = "Gallery/images/".$albumname; @$image_size … | |
So I just started learning MySQL. I am learning from [Tizag](http://www.tizag.com). They are using PHP files. Now I can see that the PHP files are slightly complex, I'm only 15. And they also recommended PHPMyAdmin. This GUI tool has many complicated options. So I quite don't know what to use. … | |
OK, hopefully this question makes sense... I have a select that I have been to randomly select a record within a table The Table was simply a list of member IDs 'mem_id' BUT Now I've added a couple more fields to the table, one of which allows the member to … | |
Hello everyone, I'm having trouble with Joomla non-existing category re-direct problem. I cannot seem to find the proper rewrite url line for .htaccess file for the following problem. I have my website http://www.dubrovnik.com I'd like to send user to my 404 Page whenever user request for non-existing link. I've managed … | |
Hi Im getting into a php mvc framework, available here ([url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html#8[/url]), but they only explain their code, and dont offer much other advice on the basics of working inside a framework... how would i go about posting a form? working outside of any framework i usually just post the form … | |
Go here: http://www.tizag.com/phpT/fileupload.php Under the heading "**php - file upload: uploader.php**" there are these sentences:- ----$_FILES['uploadedfile']['name'] - name contains the original path of the user uploaded file. ----$_FILES['uploadedfile']['tmp_name'] - tmp_name contains the path to the temporary file that resides on the server. The file should exist on the server in … | |
I have a database and want to display data in rows then create a link to show the whole data when selected. Kindly guide me how to get the right php script for creating the link to display the whole row from database. | |
// set timeout period in seconds $inactive = 1; // Testing. Change back to 600 when done // check to see if $_SESSION['timeout'] is set if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); header("Location: index.php"); } } $_SESSION['timeout'] = time(); The code above works fine. … | |
Hello, Im Jeffrey McCain! Im Trying To Build A Website And The Last Thing I Need To Know How To Do Is Display Imade From A Datbase! I Found A Tutorial >http://www.codeofaninja.com/2011/02/how-to-resize-and-print-image-file-from.html < But I Don't understand How To Implement It! I Will Glady Pay ANOYONE Who Can Show Me … | |
Hello, To Keep It Short! I'm Building Three Websites. And I Basically From What i Was Told Need To Put Images On In A Row Going Down The Page And The Images Need To Come From A Database Which Is Mysql And Im Guessing That PHP And Such. Also When … | |
Im tring to show image1.png if it exists, else show image2.png <?php $image1 = images/image1.png; $image2 = images/image2.png; if ( $image1 < true ) { echo "$image1"; } else { echo "$image2"; } ?> I am getting a Warning: Division by zero Thank you | |
Hi Folks, I've recently started using High Charts to chart dynamic data from my database. I was on last week with an issue in relation to my column charts not rendering. I managed to figure that out with the assistance of other forum users. I now have a new problem, … | |
I need to create a video gallery for a website, and would like to create it using the html5 video tag backed up by videojs. As I havent worked with video uploads before I have some doubts on how to approach it: What file size would you recommend as a … | |
Hi, we have a page where we have our host status like up/down and many others. I just wanted to write a php scripts which finds the host up/down and only displays this in homepage. How can we perform this task. | |
I have hosting and domain with https://www.znetlive.in (with Apache version 2.2.21) suppose www.abc.com I want to rewrite urls.(Which is not working in anyways) http://www.abc.com/index.php for this http://www.abc.com http://www.abc.com/about.php for this http://www.abc.com/about http://www.abc.com/portfolio.php for this http://www.abc.com/portfolio http://www.abc.com/contact.php for this http://www.abc.com/contact I have tried all possible ways but it is not working. … | |
Hi all, I cant get this at all. Ihave a form with a series of radio button, all which represent a category of animal. I have given each radio button a value which is the same as the mysql table it represents. For example: <input type="radio" name="delete" value="tortoises">Tortoises<br /> When … | |
can someone explain me wy the folowing query dosn''t work because i want to select only where the values are 1 , 2 , 3 , 4 and so ond and count these rows $link = mysql_connect("localhost", "bla", "bla"); mysql_select_db("db", $link); $result = mysql_query("SELECT * FROM narr_turnier_".$onlyconsonants." WHERE startnummer <> … | |
please i have a problem with my login page when i hosted my website it is showing me this error please help me here are the errors that it show:- 1. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/coezelib/public_html/checkstaffLogin.php:10) in /home/coezelib/public_html/checkstaffLogin.php on … |
The End.