473,574 Members | 2,233 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.
1
1,369
thread by: prateek dave | last post Nov 28 '07 by: pbmods
How can send mail with attechment in php
1
1,257
thread by: mandarchalke29 | last post Nov 28 '07 by: pbmods
Dear sir, I have created a chat application using PHP,Javascript and MySQL which is embedded in my web site. I have created a link to go from that website to chat application in the same browser. I have used a window.open to open a new window for chat application which will show you which users are online. Everytime when i click a user in...
1
1,096
thread by: jasvarghese | last post Nov 28 '07 by: pbmods
Hi All, I am a newbie in Ajax. While i was working with login page, i am checking the user name and passwords and i am not able to redirect the page using the code: $rs1=mysql_query("my Query"); $row=mysql_num_rows($rs1); if($row>0)
3
1,148
thread by: wesley1970 | last post Nov 28 '07 by: pbmods
for example, we can make an array simply by the below method <?php $var1 = a; $var2 = b; $var3 = c; $variables = array($var1,$var2,$var3); ?>
0
1,091
thread by: txguy | last post Nov 28 '07 by: txguy
we have a checkbox selection table that enables a user to check the items they wish to purchase. the submit on this table processes the selections and complete an order form using php. the resultant total of all items and all price is then calculated using php to produce the following ... <!-- ORDER/ITEM DESCRIPTION --> 1 Lot of <span...
21
3,686
thread by: bruno_guedesav | last post Nov 28 '07 by: Jerry Stuckle
I've made a function to fetch all results as an array of result- arrays. Getting the result arrays is easy, via mysql_fetch_array, and function itself is quite simple, as follows: function db_query($db, $query) { $result = mysql_query($query, $db); $res_array = array(); if ($result) //it is a search
6
2,253
thread by: Evil Otto | last post Nov 28 '07 by: Sanders Kaufman
I've been trying (not all that successfully) to set up a dev environment here and would appreciate any wisdom you folks can provide. If any of you use OS X for development, could you tell me what your environment is like (IDE selection, server location, remote/local debugging, so forth)? What I've got at the moment is Zend Studio and a...
5
2,665
thread by: cocotheflyingnut | last post Nov 28 '07 by: cocotheflyingnut
I'm building a chart, and it's going through a for loop, which creates new text boxes. I want to be able to save the information put in each text box in some sort of variable array. Right now it's only letting me save the very last one in a variable I've named $memo. I thought that if I echoed $memo within the loop it would print out each text...
10
3,058
thread by: turnstyle | last post Nov 28 '07 by: Jerry Stuckle
Hi all, I'm trying to set up my first Vista/IIS7 box with PHP5 -- in IIS7 I mapped the current php5isapi.dll. I've noticed that if I simply open a PHP page (it works), when the IIS application pool later recycles (either timed or forced), I get an "IIS Worker Process has stopped working" alert, and a "Faulting application w3wp.exe" event...
0
1,024
thread by: ehcy | last post Nov 29 '07 by: ehcy
hi.. can you plz help me... i want to put an "==" in my opened text files but i don't know how.. i will show you the original output and my own program.. ----------------------------------------------------------------------------------------- = original output = Volume in drive C has no label. Volume Serial Number is ACF3-92D1 ...
1
1,228
thread by: nicholai | last post Nov 29 '07 by: pbmods
good morning! i want to make a table in my program, what will i do? this is my program <?php $file = "CHECK.TXT"; echo "<table style=\"border: 0px solid black;\"> \n"; $file_handle = fopen($file,"r"); $y = fgetss($file_handle,1024); $x= htmlentities(file_get_contents($file)). "<br/>";
0
1,931
thread by: mishrarajesh44 | last post Nov 29 '07 by: mishrarajesh44
hii all., i am doing a dynamic html page.i have retrived 7 columns of data in php from mysql database, actually i want to pass the data of one row(only one element of a row, which is under 'mobile' in my code is required in the next page) at a time to the next page by clicking submit. actually i have retrived these data in a table format, thats...
3
1,718
thread by: mishrarajesh44 | last post Nov 29 '07 by: mishrarajesh44
hiiii, i am making addressbook, which will include name,mobile,address, photo, and want to save in mysql databqse all data and only the name of image file. i want that by clicking the submit buttton the data will be added to mysql database and image will b uploaded simulataneously, i know the code for both image upload & dataadding in...
0
1,021
thread by: ehcy | last post Nov 29 '07 by: ehcy
anyone plz help me.. i have here a simple program and i want to create an table cell.. what can i do?.. i will show you all my php code.. <?php $fc = "Check.txt"; $handle = fopen($fc,"r"); $content = fgets($handle); $parts = explode('=',$line_of_text);
59
4,141
pradeepjain
thread by: pradeepjain | last post Nov 29 '07 by: pradeepjain
Hii this is pradeep here . i am a newbie to PHP .can u help me out. i hve a file called con.conf(configuration file) tht contains name:pradeep place:bangalore i need to read this file and display the contents in form type in browser . and then gve a submit button so as to edit and update the file . can u gve me a code for this process....
0
1,760
thread by: hassanali20 | last post Nov 29 '07 by: hassanali20
I've surfed this forum and found one thread which was talking about the same problem i've, but it didn't help in my situation. http://www.thescripts.com/forum/thread510563.html I could connect to MSSQL server using freetds 8.0 and able to run queries to MSSQL server, but the query doesn't fetch anything when it runs on a column having datatype...
0
1,030
thread by: aym | last post Nov 29 '07 by: aym
Hi everyone, I have about 20 domains on one host and I want to transfer my domains files to another host of course every domain name will be the same as it is, so how can I transfer my files from the first host to the other one using cpanel without downloading and uploading files?. It is hard job with all these files and databases included. note...
4
1,519
thread by: beary | last post Nov 29 '07 by: beary
I have a php file which looks like this: <?php $subjectshort='vetcm'; $comparray=array('c1','c2','e1'); ?> I need to change the $comparray line so it now looks like this: $comparray=array('c1','c2','e1','e2');
1
1,754
thread by: RuthC | last post Nov 29 '07 by: isnain31
Anybody help me how to use spaw editor with smarty. Thanks & Regards Ruth
3
1,340
thread by: tamimmakki | last post Nov 29 '07 by: MarkoKlacar
Hi guys, I am new to php. can you tell me how can we post a form to same page and display to posted data on the same page with form. Actully i need a form if i submit it i want the submitted data displaying on the same page and i want to submit a new data with the same behaviour. my second question is is there anyway if i can use a global...
1
1,434
thread by: olddocks | last post Nov 29 '07 by: Markus
Most PHP file upload scripts require writable 777 permissions (rwxrwzrwz) to be set for certain folders for uploading photos and videos. Setting 777 permission means that anybody can upload any malicious content to your server and could be vulnerable. I have outlined some of the easy methods to be implemented to safeguard the server from misuse. ...
0
950
Markus
thread by: Markus | last post Nov 29 '07 by: Markus
New thing that crossed my mind today - If i were to give user an option to add some text (e.g. their name) onto the image, would it be possible to watermark, as it were, the text onto the image? I've searched around but not found anything watertight - no pun intended :D Thanks
2
1,621
thread by: Big Moxy | last post Nov 29 '07 by: Big Moxy
I am unable to get IIS on Vista to pick-up the php extension directory. This is what I have coded in php.ini yet phpinfo() doesn't reflect it. I have stopped/started the web server several times. I haven't rebooted my machine yet and hope it's unnecessary. Does anyone have any suggestions? extension_dir = ".;c:\php5\ext"
2
4,542
thread by: lawpoop | last post Nov 29 '07 by: lawpoop
Hello all -- I'm having a problem getting images to appear in the body of an HTML email using PEAR's mail_mime class. Here's my code, what am I doing wrong? include("Mail.php"); include("./Mail/mime.php");
4
1,781
thread by: phpmel | last post Nov 29 '07 by: stepterr
Hi Guys, I have a form that has input fields. when the user presses submit a next page opens up to display whatever msgs need to be displayed. If the msg is an error and the go back by pressing the back arrow button on the browser menu, all the info that they entered previosly is lost. Can someone tell me a way to work around that. Or even...

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.