473,775 Members | 2,360 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,423
thread by: ukfusion | last post Nov 26 '07 by: pbmods
Hi, i have recently installed PHP BB3.....however an idiot i used to work with constantly hacks into it......im no php expert and neither is he so it cant be anything too complicated.....if someone could have a look at this address for me and see if i have forgotten to do something which is compromising the security of the forum. i had to...
1
2,023
thread by: Xiu | last post Nov 26 '07 by: pbmods
Give me a hand please!! The purpose of this code is to get the totall price, but I don't know how to multiply $orderAmount ,$menuPrice inside for loop. and I also get problem to echo the result only once. for ($i=1; $i<=$numRowsMenuid;++$i){ $rowOrderInfo=mysql_fetch_assoc($resultOrderInfo); $orderAmount=$rowOrderInfo; $resultMenuInfo=...
1
3,244
thread by: pangdishnu | last post Nov 26 '07 by: pbmods
I have a web forum where the form outputs a string of text as shown in the attached image. I want there to be a space between the word "QUOTE" and the parenthesis which follows it. The image below shows and example of this. http://i216.photobucket.com/albums/cc204/sophiaportal/questions/quotetop01.gif I beleive the code which creates this...
2
4,363
thread by: helraizer1 | last post Nov 26 '07 by: coffear
Hi all, I've noticed on my friend's site www.sheepeep.com/index.php?p=1 that is easy to manipulate with XSS, I don't mean it in a malicious way at all, just to give an idea as to what people can do. As an example of such...
3
2,473
thread by: suzanne.boyle | last post Nov 26 '07 by: suzanne.boyle
Hi I have an html file with headings followed by one or more paragraphs like this <h2>blah blah 1</h2> <p>more blah blah blah</p> <h2>blah blah 2</h2> <p>more blah blah blah</p>
1
1,374
nathj
thread by: nathj | last post Nov 26 '07 by: pbmods
Hi Everyone, I am working on a project that has only two pages, a login page and a mainpage. The system I am building is a data handling system, it has now public face. The issue I am stuggling on is passing data around. I have a main input form for this and the first step takes some set up data. This is then passed through JavaScript to...
1
1,644
thread by: mancade | last post Nov 26 '07 by: pbmods
Hi, I'm trying to download a file from a http page that requires user authentication. The file can be downloaded manually by clicking on the link. I would like to do this automatically using a PHP script. Here's the code I am using: $srcFilePath = "http://username: password@www.mydomain.com//filename.txt "; $desFilePath =...
1
4,038
thread by: helraizer1 | last post Nov 26 '07 by: pbmods
Hi folks and folksesses, In the GD2 library there is a function called 'imagegrabscreen()' and 'imagegrabwindow()', which captures a screen dump of the current window, or another one specified by the code. The only problem is that it launches the function as soon as the page is loaded, which means the target page, which is being grabbed...
1
2,131
thread by: Sebarry | last post Nov 26 '07 by: pbmods
Hi, I'm trying to read the results of a database query into an XML document but it's only read so far and stopping. The XML document is as follows: <?xml version="1.0" encoding="utf-8"?> <night> <name>Poontang</name>
1
2,595
thread by: dheeraj4uuu | last post Nov 26 '07 by: pbmods
Hii I have an Smf forum, and i installed SEO4SMF to my forum and i made some modifications to my htaccess file.but after doing so everything works fine but i noticed that after going to some board in that board i a lot of topics so that there are some pages like ... pages when i clicked on the page 2 it just redirects me to the first...
1
2,827
thread by: DannyMc | last post Nov 26 '07 by: pbmods
Hi, I am writing a PHP script to get a ping reply from my LAN PC. So, my idea is like this, when i mouseover/mouse click to the "hostname" display on the web. There will be a hint box appear and show me the ping result. Below is the php function to perform exec: function getdetail($user1) { $auser=$user1; exec("ping $auser", $coutput);...
2
1,082
thread by: shreyas23 | last post Nov 26 '07 by: pbmods
hai, my problem is: i have to write query for this Miscellaneous problem..so if any one knows please help me.. my quest is........." i want to insert record into contact table as new record only if the record which is alredy exists in lead table and only if it is updated in lead table "...
3
7,399
thread by: likigoldenstar | last post Nov 26 '07 by: ak1dnar
Hi, I have some problem in developing program using PHP. I 'll explain my platforms: I use appserv-win32-2.5.9 as a app server. In the server, mysql client version is 5.0.37 Problems:
4
1,769
thread by: pradeep | last post Nov 26 '07 by: Erwin Moller
Dear all, I want to know the difference between mysql_fetch_array() and mysql_fetch_row(). I know that mysql_fetch_row() return data in numeric array while mysql_fetch_array() return data in numeric as well as in associative array. But my question is, why it returns in both format. Is it wastage of
2
1,817
thread by: VooDoo | last post Nov 26 '07 by: =?iso-8859-1?Q?Kim_Andr=E9_Aker=F8?=
Hi, i am trying to copy a completed field set from one table to another. I am using this SQL command: INSERT INTO doc_valid SELECT * from doc_temp where id=$id it works, but it also copy the index field id from my temp table to the valid table... the index are autoincrement primary key, and it should take the next index value....
8
2,079
thread by: kanwal | last post Nov 26 '07 by: Jerry Stuckle
Hi, I have millions of records in my xxxxx table in mysql. And I have a column of time in which I have stored the timestamp using php time() function. Now I wanna write an SQL query to fetch the records either for year (2006) or for month and year (Jan 2006) Currently I had implement this logic:
1
1,140
thread by: Hamayun Khan | last post Nov 26 '07 by: mwasif
Salam I have and english site developed in php. Can i convert the whole site to greek language.
10
16,573
thread by: Jesse Burns aka jburns131 | last post Nov 26 '07 by: Norman Peelman
Here's my code: $today = getdate(); $to = someone@somewhere.com; $subject = "New Application: ".$userdata." - ".$today."/".$today."/".$today; $message_header = "New Application: ".$userdata;
1
1,108
thread by: linuxmalaysia | last post Nov 26 '07 by: rf
Hai, CmsForNerd is my project for learning PHP, HTML and CSS. Would be nice outside world can test it for any bugs. http://cmsfornerd.harisfazillah.info/programmers.php Thank you.
0
1,371
thread by: ajauctionpro | last post Nov 26 '07 by: ajauctionpro
AJ Auction software is the latest and most advanced Auction Script to set up an online auction site with excellent navigation features. They help you build your own online Auction. Auction Script can be easily customized to accustom your needs with a potential to generate heavy revenues. http://www.ajauctionpro.com/about_ajauction_pro.php
0
1,811
thread by: nituja | last post Nov 26 '07 by: nituja
Hi I want to send mail thru the program but I am getting above error. What I want to do is to send mails thru the program and recieve in my inbox ..... I dnt know how to proceed what SMTP configuration I hv to do , the only details I hv is mail server ip Thanks, Nitu
4
1,152
thread by: Bint | last post Nov 26 '07 by: taps128
Hello, this might be a newbie question. I am uploading files to my http script, using $_FILES . That's how I get binary data into my script. How do I return it? Echo only returns text data, right? Is there any way to pass binary data back from a script? Thanks B
12
3,188
thread by: FFMG | last post Nov 26 '07 by: FFMG
Hi, Please help me settle a geek argument :). I believe that php caches included code whenever possible. So given the 2 files bellow. // file.php ------------------------------------- <?php
7
1,422
thread by: Jim Michaels | last post Nov 26 '07 by: Jerry Stuckle
As first I was getting "PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0" errors in my server log. so I gave the file permissions. now the browser sits there forever waiting for the server to respond. I even tried bouncing the server. no joy. the file is 700 lines long, so I decided not to post it...
5
1,145
Lazandra
thread by: Lazandra | last post Nov 26 '07 by: realin
Hi, I have done a random script which works perfectly fine. The problem that i'm having with is the picture. Below is the script include("connect.php"); mySQL_Select_DB("db220854136"); //..to DB $potms = MySQL_Query("SELECT * FROM listings"); //now we get all from our table and store it

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.