473,775 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
3
2,290
thread by: vishnumahendra | last post Nov 25 '07 by: NC
Hi all, I am from Madurai,Tamil Nadu, India. I have started running Tux Web Server . I have tried few searches, but no answers. But I do not know how to run PHP on Tux Web Server. If you could provide me the configuration details , that would me more helpfull for me. Thanks to the free ware community, linux groups and Tux webserver....
4
1,468
eragon
thread by: eragon | last post Nov 25 '07 by: eragon
ok, the title was not proper syntax at all. heres what i did. for every user that registers for my site their information is stored in an array. their userame is the index. the data i want is the key. one example i share is this: <?php $eragon = "password" ; $eragon = "Eragon" ; $eragon = "Eisert" ; $eragon = "omitted@forum.rules" ;
2
1,721
thread by: jasone | last post Nov 25 '07 by: jasone
Hi! Hopefully this isnt to tricky for you guys, but im struggling with it. ive got a search form where a user can select criteria they want to search, i want it to search the database (so run the php script) once the button at the end of the form has been clicked! please send me in the right direction or provide me with the simplest way of...
5
1,628
thread by: smartic | last post Nov 25 '07 by: helraizer1
How can i know that if my site can be hacked or not ? like sql injection or javascript code
8
1,956
thread by: Rob Wilkerson | last post Nov 25 '07 by: Rob Wilkerson
Surprisingly (at least to me), there doesn't seem to be a built-in function to validate a date value (like, say, is_date()). Given that, is there a best practice for determining whether a value is a valid date/time? The values I need to test will likely be unix timestamp values and I need to be able to distinguish them as date/time values...
3
3,239
thread by: Peter Wang | last post Nov 25 '07 by: ZeldorBlat
Hi, all. I recently encountered a very annoying problem while using Zend Framework(ZF). We use ZF in our web application, and it works fine at the beginning, but later when concurrent requests goes high, we get very high cpu load. when i trace the httpd using strace, i find so much fstat64 syscalls, most of which failed, all these...
4
1,959
thread by: code937 | last post Nov 25 '07 by: Markus
Hey guys, Im making a stupidly simple CMS and i guess the best way to save data for each page is within an sql database. The only thing is, from past experience, when you echo data from a database it usually just echos the text (i.e. <font color="#FFFFFF">Hello</font> instead of echoing Hello in white. Anywho, if you think im going the wrong...
12
1,787
Markus
thread by: Markus | last post Nov 25 '07 by: Markus
Is there a way i could get http://somesite.com/viewer/someimage.jpg to be recognised as http://somesite.com/viewer/?id=someimage.jpg I know i could rewrite the url with .htaccess but i don't want to change the lettering in the url.
1
1,066
thread by: eihabisaac | last post Nov 25 '07 by: Markus
im using php and mysql and everything is ok until it drive me crazy and im not able to delete a record from the database i have a list box using a recordset from the database the display the item in it so i wrote this code when click on submit <?php $modeldel= $_POST; $result = mysql_query("DELETE FROM car_table where car_ID LIKE...
3
2,612
thread by: gbrendemuehl | last post Nov 25 '07 by: ak1dnar
I am adding some database driven functionality to my web site and will need a php script like to sample below to connect to the database. I have found some solutions for protecting the password by storing it in a file outside the web directory. But my web-hosting is a shared linux account @ Go Daddy and I don't appear to have access outside the...
3
1,712
thread by: Nitin Shrivastav | last post Nov 25 '07 by: ak1dnar
can anybody help me out to save a html page as a html page using php script.
0
1,034
thread by: Shelly | last post Nov 25 '07 by: Shelly
I received an email from someone at assembla.com inviting me to take part in a paid trial period for a job. I looked up the site and it appears to be one of groupings of developers. I am always careful about unsolicited "job offers", as I am a firm believer in the "no such thing as a free lunch" maxim. So, my question is, does anyone have...
1
2,952
thread by: gajahkursi | last post Nov 25 '07 by: assimlation
<?php // Connect database include("conf.php"); $child= $_POST; // Get all records in all columns from table and put it in $result. $result=mysql_query("SELECT * FROM parent WHERE child= '$child'") or die ("error making query");
1
1,173
thread by: maheshwarbirru | last post Nov 25 '07 by: assimlation
<?php // get posted data into local variables $EmailFrom = Trim(stripslashes($_POST)); $EmailTo = "abc@abclcom.com"; $Subject = "Website Feedback";
1
1,359
thread by: olddocks | last post Nov 25 '07 by: assimlation
what is the safe way to place include files in your site? normally i place all the include files under includes folder inside public_html is this the safe way to do it?
2
1,236
thread by: zameel | last post Nov 25 '07 by: assimlation
how can i retrieve 10 records from a mySQL database and display it in one single page in a preferred order
3
1,371
thread by: Jesse Burns aka jburns131 | last post Nov 25 '07 by: Rik Wasmus
I've got a coding problem here that I could use some help with. Here's my db class (the config.php only has db connection info): ******************************************************************** <?php // db_handler.inc
2
1,008
The1corrupted
thread by: The1corrupted | last post Nov 24 '07 by: coffear
Alright, on certain site, I've seen the messages that say "No spaces in the username/password" Or "Illegal characters: '/,\,&,%,$,#,@ (etc.)'" and I was wondering how that's done because as you can see, it has to search for many characters. (data is posted, then these messages appear)
1
2,703
thread by: smartic | last post Nov 24 '07 by: Markus
I'm making chat room in my site but i'm having problem with the recent messages from the user in the database, i need to know if the user online or offline how can i know that by PHP to clear the data after he signout or offline?
6
2,456
The1corrupted
thread by: The1corrupted | last post Nov 24 '07 by: ManWithNoName
I don't know if this is the right forum or not, but right now, my Javascript, that is embedded in PHP, is not working! It works everywhere else but not here. HELP!! <?php $soldnumber=$_POST; $cavnumber=$_POST; $artnumber=$_POST; if ($marray==1) { $tanknumber=$_POST;
3
6,442
thread by: Rob Wilkerson | last post Nov 24 '07 by: Rob Wilkerson
Hey all - I'm bumping into an issue with my installation of the MDB2 package that I'm hoping someone else has seen. I'm trying to execute a query, but get an "unknown error" exception that I can't seem to track down (exact message is "MDB2 Error: unknown error"). I have an ObjectDAO class (which I'm creating via a factory) that extends...
1
1,469
thread by: ManWithNoName | last post Nov 24 '07 by: ManWithNoName
Hi, guys! I have a quick question. If you have a zip file that looks something like this (when opened in WInZip/Rar) file.zip | |---- folder 1 |___|---- folder 1.1
9
6,961
thread by: Matthew | last post Nov 24 '07 by: Matthew
I'm using PHP version 4.4.3. The manual page for PHP's mail() function (URL below) says that for the message (IE. email body) "Each line should be separated with a LF (\n). Lines should not be larger than 70 characters." http://uk2.php.net/manual/en/function.mail.php To see what happened I just sent an email using mail() with one of its...
7
17,058
thread by: mishrarajesh44 | last post Nov 24 '07 by: Markus
hii all Truly telling i hav got this code from net & i am finding error while running the code below.. code:- <?php $idir = "photo/"; // Path To Images Directory $tdir = "photo/thumbs/"; // Path To Thumbnails Directory $twidth = "125"; // Maximum Width For Thumbnail Images
20
3,168
thread by: Jim Michaels | last post Nov 24 '07 by: =?ISO-8859-15?Q?Oliver_Gr=E4tz?=
I have a 638 line glob of PHP code & HTML that won't run. I get "PHP Parse error: syntax error, unexpected '}' in quiz\\quiz.php on line 594". I wrote a brace checker that checks perens, square brackets, and curly braces for mismatches & opens and it checks out perfect. so I don't know what it is about the curly brace error. it's false....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.