262 Posted Topics
Re: Looking at the site from where the code comes from : http://www.verot.net/php_class_upload_docs.htm You could use: $handle->image_watermark_x = 5; //change to fit your needs $handle->image_watermark_y = 5; //change to fit your needs Instead of >$handle->image_watermark_position = 'BR'; Which is a fixed predetermined location. | |
Re: Clue is in the error. `split()` is deprecated | |
Re: JayJ, have you tried using `return` on the variable you want to pass out? | |
Re: You need to include `session_start()` at the top of **loginproc.php** | |
hi all, I have a scrap working but it also brings the restred trade mark. I have permission from the company to do this. How do i strip these out? // get simple_html_dom from http://simplehtmldom.sourceforge.net/ include_once('simple_html_dom.php'); // @todo change $url for form input $url = ""; $html = file_get_html($url); // … | |
Re: @furianera; Could you post your code? I am in need of a scrape that deals with multiple tags | |
Re: You dont actually seem to be using any of the POST data. Or have you not put all your code? | |
Re: **@andyy121** >@LastMitch aahhahhahahahaha you are such a big fail the problem wasnt in SELECT ect ect >Good Luck, I don't know what else to say.THIS IS FOR YOUUUUUUUUUUUUUUUU And that is how you treat people who try and help. Mate you are a sad person. Shooting people down that try … ![]() | |
Re: andyy121: `mysql_real_escape_string` will require a database connection. I would suggest you approach from a different angle if (isset($_POST['keyword'])){ $keywords = strip_tags(trim($_POST['keywords'])); echo $keywords; // remove the '' } else { echo "Keywords is empty"; } | |
Re: Error? Reason for posting? Although the $sql looks like it wont work is that correct? ![]() | |
Re: http://www.daniweb.com/web-development/php/threads/433073/-failed-to-open-stream | |
Re: Is your call correct? Is funck.inc.php in the same folder as the script calling it? | |
Re: Yes, well done. Although that will only work if you have short tags enabled other wise you have to use `<?php ?>` ![]() | |
Re: As a strating point $dbQuery = "Select MainDB.SeatingCap, MainDB.ID, MainDB.Building, MainDB.Room, MainDB.ID, "; $dbQuery .= "BuildingDB.BuildingName, BuildingDB.BuildingAbv, MainDB.Wheelchair, "; $dbQuery .= "MainDB.Lighting, MainDB.AdditionalInfo, MainDB.Contact, "; $dbQuery .= "LightingControlsDB.LightingControlsID, LightingControlsDB.LightingType, MainDB.Windows, WindowDB.WindowID, "; $dbQuery .= "WindowDB.WindowTreatment, MainDB.FP"; $dbQuery .= " from MainDB "; $dbQuery .= "Left JOIN BuildingDB on MainDB.Building = … | |
Re: How are you holoding the $_SESSION data? Could you find a uniformed naming for it? | |
Re: how is you db table set? can you provide your table structure? ![]() | |
Re: I am still finding my way with OOP, but it looks like a base login validater class/function that creates a database connection and validates against the form input, although this is only a fraction of the class. | |
Hi all, I am in need of assistance. I am trying to configure PEAR with XAMPP 1.8.0 on Win 7 64Bit. I download the go-pear.phar (http://pear.php.net/manual/en/installation.getting.php) and ran the instructions. Updated my env path. All looked ok. Tried to run `pear help` and i get nothing, no error, not a … | |
Re: Marty i run Win 7, but opted for XAMPP over IIS, less confirguration for intial setup ![]() | |
Re: Are you getting an error? Have you tried it without the mysql connection? | |
Re: I thought `session_start()` had to be the first line before any output? **Note: To use cookie-based sessions, session_start() must be called before outputing anything to the browser. ** [PHP.net](http://php.net/manual/en/function.session-start.php) ![]() | |
Re: i have started using Netbeans. Very nice and easy to use. Best of all **its free!!** I have also used Dreamweaver CS5.5 and 6 | |
Re: It certainly is possible. You would put your host details instead of LOCALHOST. Unless you are setting up a secure connection i would export your db from the host, and import it locally. That way you remove any risk | |
Re: >they have different precedence. True. `&&` is before `and` - `||` is before `or` :) | |
Ok, following from my previous thread (now resolved) i want to convert and use namespace. **headScript.php**: <?php class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=roundth4_rtb2", 'root', ''); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- " . $e->getMessage(); die(); } } public … | |
Re: > i changed that to "false" and now when i try to login using "root" and "1234" i get the error Change it back | |
Re: If yoyu are starting, i would suggest not jumping feet first in to an "advanced website". For tutorials, google is your friend:[Click Here](http://bit.ly/she24U) | |
Re: i would suggest sanitising the data before doing anything, be it before the class, or passing the data to a function with in the class | |
Hi all, Hoping you can assist. I am probably starring at the darn thing but i cannot see the wood through the trees :) class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=xxx", 'xxx', 'xxx'); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- … | |
| |
Hey Mods. I have changed my avatar 2~3 days ago. But my old one is still posting when i do things. Why? | |
Re: This should help: >RewriteEngine On >RewriteRule ^([^/]*)$ /pages/fetchpage.php?id=$1 [L] | |
Re: > i am totaly confused. Which part are you confised about? | |
![]() | Re: @**LastMitch** If you take the code you have so far: <form action="photoimage.php" method="post"> Photo: <input type="" name"" valve=" /> <br /> Caption: <input type="" name"" valve="" /> <br /> </form> You would name the fields, i try to keep them as obvious as possibly. <form action="photoimage.php" method="post"> Photo: <input name"photo" … ![]() |
Re: +1 for XAMPP very easy to use. I have used EasyPHP in the past, but personal preference i choose XAMPP | |
Re: The ITW file type is primarily associated with 'Icetips Wizard Editor'. (partially encrypted ini file) Looks like you need a HEXIDECIMAL viewer | |
Re: please supply `logout.php` this is indicating you have an undefined function, without the code it is hard to help | |
Re: I do not beleive you can use mysql_real_escape_string within a SQL statement. This should be done via to the `INSERT` statement | |
Re: I would suggest not using `*` but actually refering to the table columns. This is concidered a security risk. Also note that mysql is not longer maintained, you woul dneed to start looking at MySQLi or PDO. If you are just starting I wuld suggest doing this sooner than later … | |
![]() | Re: > What's a portable software? and Is It even legal? It is legal and illegal. This one [Click Here](http://portableapps.com/), is a collection of legal compact Apps available. There are others, and i have in the past come across portable and cracked apps such as Dreamweaver, Flash etc. If it is … |
![]() | Re: Can you explain? How is it not working? Are you getting an error? Is anything showing in your log files? ![]() |
Re: I would suggest speaking to your web host company. They should have a support ticket system. Sounds like a CPanel config glitch. | |
Re: You will need to create a site under SITE> New Site. Then under this you will "Servers" set your connection to FTP, put in your login details on how you access the domain, switch over to Advanced, set the type of server (PHP/MySQL). Once saved make sure the tick box … | |
Re: This is a copy of the drop down i have used on this site: [Click Here](http://www.helenshappyhome.co.uk/gallery.php) <form id="form" method="POST" action="<?php $_SERVER['PHP_SELF']; ?>"> <select id="sel" name="category"> <option value="Select">Please select a gallery..</option> <?php $cxn = mysqli_connect($host,$user,$pword,$db) or die ("Connection failed"); $query = "SELECT category_id,category_name from gallery_category"; $result = mysqli_query($cxn,$query) or die ("Query … | |
| |
![]() | Re: I have used PEAR before, but i though it was being replaced by another version. I cannot remember the name of the darn thing. think it was phasr or something like that ![]() |
Re: Does your `'ipnlistener.php'` have an unclosed `}`? |
The End.