39,393 Topics
![]() | |
Hi , IF Client disabled the cookies..my question is .. Will session works in PHP..and if yes how it will work ? and if no what other method to maintain the state of the user. Thnaks in advance, mangesh. | |
[B]index.php[/B] [CODE] <?php /*header*/ header("Content-Type: image/png"); /*We'll set this variable later.*/ $new_string; /*register the session variable. */ session_register('new_string'); /*You will need these two lines below.*/ echo "<html><head><title>Verification</title></head>"; echo "<body>"; /* set up image, the first number is the width and the second is the height*/ $im = imageCreate(200, 40); /*creates … | |
Ok...I have decided to learn PHP and I could use some help from you guys. Though I have searched the Internet for free tutorials but could not tell which one was to choose. Could the PHP gurus here direct me to some cool PHP tutorials on the net? Help will … | |
Hi folks. I Have a question : I'm interested how you generate query string to search DB with more than 1 form with LIKE. For example : We have $_POST['name'], $_POST['title'], $_POST['phone'], $_POST['email']. How do you generate sql query to search with two criteria ( name and phone ) ? … | |
Hi Everyone. Still have had no joy on my last post but here is another. I am uploading an image to a blob field in MySql DB. Again, on my local machine its fine...however, on the server it does not get added to the field. All other information is added....eg … | |
hi i have write the php language code. The login form creation. The validation part is ok.. but data is not pass to one page to another page. I have used `$_REQUEST` and `$_Post` method but not working.. any body replay me.. the following codes.. THe First file is login.php. … | |
I am trying to get this function to work and having a few problems. [CODE] if(function_exists("mysql_real_escape_string")) { $value = mysql_real_escape_string( $value ); } [/CODE] and i get an error: [B]Warning[/B]: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in w:\[B]pathname[/B] on line [B]11 [/B] Does anyone know how … | |
i have been trying to add javascipt in my php script to implement dynamic form filling but it seems not to work. the javascript code works well without the php script what could br wrong? [code=javascript] var alive1 = new Array("Yes","No"); var alive2 = new Array(""); var loss = new … | |
Hi, is it possible to set up a PHP development environment on a home PC. I assume you still need web server software, however, i only want it to practice my PHP coding and not open up my system to the Internet. I hope that makes sense. Anyway if someone … | |
[quote]PHP 4 end of life announcement [13-Jul-2007] Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will … | |
hey i have this problem giving me a painful headache and sleeplessness ive got these .prn files which should converted into DB and these files contain numbers along with arabic characters the problem is the encoding of these characters is not readable anyone hav an idea how i could convert … | |
Hi can anyone help me with this ? Im trying to create a page that lets a user click a link and once that link has been clicked the page no longer displays that link for that user, i have all the databases set up to record clicks but i … | |
hi friends again vssp !!!!!!!!! I need to intagration the paypal application in my php application . first time charge of [B]$99.95 and [/B] Monthly recurring charge of [B]$9.95[/B] How to implement the paypal in myphp application . Please advise | |
I have done a small web site with php and mysql. like following i need to put the record set and break the <tr> but some how its not working. can you guys please help me. ------------------------------------ | Data 01 | Data 02 | Data 03 | -----------------------------------| | Data … | |
Why, oh why isn't this simple thing working? I just want to understand why the variable $file1 is always empty. Other input types work just fine. [code] <?php $file1 = $_POST['file1']; echo "file1:", $file1; ?> <form ENCTYPE="multipart/form-data" action="add.php" method="POST"> File<input type="file" name="file1" /> <input type="submit" value="Submit Information"> </form> [/code] Jill | |
Hi guys, i want to start a PHP based online reciprocal web directory...please suggest me some good open source php directory! I am already using Skalinks here <snip> i want some thing more professional where i can show featured category, sponsers, banners etc Cheers | |
Hi, I am creating a folder through php code. but the permissions for that folder is not setting. I identified the problem is apache is different usergroup,FTP is different user group. so i want to know how can i change user group of apache. or how can i add apache,php … | |
Hi! I'm new with PHP and wondering if anyone here knows how to configure it in winXP..Thanks! | |
Hello everyone, I got the warning below as I was using a 'register' page, Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() I would like to know how to setup a local mailserver, just for … | |
For instance I want to implode these strings and prevent bad print $a = "Apple in pesian( "; $b="سیب"; $c=")use as a medicine for all illnesses"; print implode( " ", array( $a, $b, $c ) ); It's bad print // use as a medicine for all illnesses( سیب )Apple in … | |
Hello, I was wondering if someone could point me in the right direction. Is their anyway in php that I can change the outlook of an xsl file and include variables from my php script. I have an xsl file, I changed the file extension to php and it worked … | |
Anyone know how to get HTML code from the URL in php? | |
[code=php] <?php if ($id == 1 && $lang == 1) { echo "hello"; } ?>[/code] hey guys i am working for my final year project. i have a problem. when i tried to run this url on my pc [url]http://localhost/filename?id=1&lang=1[/url] it wouldn't work.... but when i tried this on my … | |
Hello, please I need help with this problem. I am writing a web project using PHP. I have developed a wsdl for this project. Whenever I send a request from my cliet side, the server script handles it appropriately by calling the relevant function. However, the script returns null values. … | |
Suppose i upload a word file and see it html view. How it is possible in php? | |
How can I use variable from the outside of the class? For example: [code] <?php $outside = 'Hello'; class A { function printme() { print $outside; } } $cls = new A(); $cls->printme(); ?> [/code] How can I do it? please :D | |
I'm trying to learn php and I'm trying to build a simple form that stores data. However, I'm getting this error message when I submit my form: Parse error: parse error, unexpected T_STRING in /sites/yuma2/swaters210/home/public_html/music/music.php on line 7 you check out my form here: [url]http://www.stevenwaters.net/music/index.html[/url] [code] <? $artist=$_POST['artist']; $song=$_POST['song']; $album=$_POST['album']; … | |
[CODE] <?php if (!$_GET['p']) { include "header.php"; echo "<br/>"; include "home.php"; } if ($_GET['p'] && $_GET['p'] == "home" || $_GET['p'] == "pricing" || $_GET['p'] == "portfolio" || $_GET['p'] == "order" || $_GET['p'] == "contact") { include "header.php"; echo "<br/>"; include $_GET['p'].".php"; }else { include "error404.php"; } [/CODE] The above code … | |
I am new on PHP proramming. I want to use mail() function to send mail. In my Pc there is no mail server. I have confiure my php.ini file that is - SMTP = localhost, smtp_port = 25, sendmail_from = null, sendmail_path = null. But I can not send mail. … | |
i am having trouble with uploading, when i upload big size file like >2M it hang the browser and show blank screen and file does not get upload. upload_max_filesize is set 8M also added set_time_limit(0); in my script But same thing on local network works file, seems problem in more … |
The End.