473,800 Members | 2,726 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.
0
1,075
thread by: adam.timberlake | last post Jan 16 '08 by: adam.timberlake
hello everybody i have been reading the article below in case you are wondering, but i have myself a question about how good the structure really is, and if there are any better ways to do this. article: http://www.talkphp.com/vbarticles.php?do=article&articleid=46 i do like how that site has done it but as i dont know alot about php,...
4
2,728
thread by: Gilles Ganault | last post Jan 16 '08 by: Gilles Ganault
Hello I'm stumped as to why PHP fails writing into a text file, with the script being called through Apache: ============== # pwd /usr/local/www/data/ ============== # ll
3
3,662
thread by: Jimmy | last post Jan 16 '08 by: Jerry Stuckle
Hi, I'd to upload a file to a folder : $upload_dir = "MyFolder/"; if (isset($_POST)) { if (!is_dir("$upload_dir")) { die ("The directory doesn't exist"); ....
2
1,650
gregerly
thread by: gregerly | last post Jan 16 '08 by: gregerly
Hello All, It's been a while since I posted, I went on vacation and have been swamped with projects. I am experiencing an issue that I wanted to run by the experts. I am writing a script that parses a large .csv file and inserts the records in a database. I read the .csv file into a string cleaning it of illegal characters line by line and...
4
4,546
thread by: Johnymap | last post Jan 16 '08 by: nathj
Hi everyone. The text file i am using has the following format: "2001_1.rtf" (1 January 2001) Ookame v Tombale (CCF No. 203 of 2001) BWHC 1 "2001_2.rtf" (1 January 2001) Kgaimena v Leoifo (MISCA F.572 of 2001) BWHC 2 "2002_1.rtf" (7 June 2002) Olebeng v The State (C A No. F104 of 2001) BWHC 1 "2003_1.rtf" (1 January 2003) Sebogodi v...
5
8,286
thread by: KDawg44 | last post Jan 16 '08 by: micah
Hi, I would like to have a function that takes a generic object and takes some action on this. Something like, function AMethod(Object obj) { DoSomeStufftotheObject; } then be able to pass various object types in. Is there a way to do
1
2,461
thread by: runway27 | last post Jan 16 '08 by: rpnew
i need to insert a hyperlink to an sql query. there is a field in the table called url which consists of the url of a page, i would like this information to be displayed as a hyperlink so that i can click on the link. following is the code = $sql = " SELECT Count(*) ....."; $rs_newEnquiries = mysql_query($sql, $connEnquiry); $echoStr =...
0
1,281
thread by: nothing1 | last post Jan 16 '08 by: nothing1
My script is below. And it worked perfectly until this morning when i got up and went of to try it it didnt work anymore. The code stayed the same so im sure its not that. I think it has something to do with limits on cache or a temporary folder or some other type of limit that my host might have put on without me knowing. The file goes through...
4
13,751
thread by: Unnamed | last post Jan 16 '08 by: Markus
Hi all Can anyone please tell me the best way to get the whether an uploaded file is a csv file and also to check if the uploaded file has more than 1 column. i have tried to get filetype but am unable to get it working and have no idea on how to count number of columns in csv file, any help would be appreciated. $filename =...
1
1,536
thread by: jmruas | last post Jan 16 '08 by: dlite922
I don't know how to use a normal PHP code to send email together with a crontab. Can someone help me, please? Thank you. Regards, José
1
1,080
thread by: raaman rai | last post Jan 16 '08 by: dlite922
Guys, i need 2 know how we can add news/announements in our index page (in PHP). I just wanna know how can we fetch the actual data stored in the database be fetched and formated according to our needs. wat i meant is that the announcements are uploaded by an admin in the database and letter fetched. But i dont understand how to format it...
4
2,815
thread by: shaiful | last post Jan 16 '08 by: shaiful
Hi all, I used mail function to send a mail. the code: <?php $to = "shaiful@vvv.com"; $subject = "New Online Prayer Request"; $message ="kk"; $txtReply = "ll"; $headers = "xxx";
10
26,074
thread by: Kurda Yon | last post Jan 16 '08 by: Jerry Stuckle
Hi, I set the register_globals off and try to get my code working under the new conditions. I stuck on the following problem: Warning: Unknown(): Your script possibly relies on a session side- effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless...
0
944
thread by: nonamehuang | last post Jan 16 '08 by: nonamehuang
The address is http://englearn.zhan.cn.yahoo.com And I need your advice. Well, maybe your help. You see. aha!
15
1,388
thread by: kamarajbca | last post Jan 16 '08 by: Steve
dear sir, Now I am doing the task that the index page contains the US states Map.When i am pressing on the particular state that state map will be open.I create the link to states using with Microsoft Frontpage.Now my problem is when i am clicking the county on the state map that particular county will be opened.There are 50 states in us...
2
1,185
thread by: raisinghkalwa | last post Jan 15 '08 by: dlite922
<?php if(isset($_POST)) { $fname=$_POST; $lname=$_POST; $age=$_POST; $address=$_POST; $salary=$_POST; $borrow=$_POST; echo "form submitted successfully";
10
3,018
thread by: Mason Barge | last post Jan 15 '08 by: Steve
I have a standard POST form consisting of two types of input: text input and textarea. The form downloads current settings from a mysql database. The user can update the information by modifying the text and clicking a standard "submit" button. MAIN PROBLEM: My problem is that the information transmitted to the formhandler apparently...
2
11,157
thread by: bcbrock | last post Jan 15 '08 by: Richard
I am trying to figure out how to query some data out of a dbase IV (.dbf) file sitting on a remote server from my MySQL/PHP/Web Server. Both servers are Windows Server 2003 SP2. My MySQL/PHP/Web server is running PHP 4.3.11, MySQL 4.0.24, and IIS. I have set a system DSN on the remote machine for the directory that contains the dbase...
9
2,165
thread by: Hanoi | last post Jan 15 '08 by: AnrDaemon
Hi, I would like to have a php file that log informations sent by an image request. For logging, I use fwrite to write on a file. If more requests are done on the same time, there could be a lost of data because the file is open by one process and not available for the other processes?
4
1,567
thread by: Paul Lautman | last post Jan 15 '08 by: AnrDaemon
I have a simple script that has been running as a cron job for about 2 years. Recently my hosting company moved to new servers and now the job does not run. They have said that "The server configuration is newer and your script will not run as it's a PHP file which contains some HTML." By this I think they mean that there is some HTML...
3
2,273
thread by: Mandragon03 | last post Jan 15 '08 by: Daniel Ennis
I am using php 5.2.5 via a wamp server on my machine. I have created a web interface to a mysql database using php. The web interface has a link to a php file which calls a dos batch file like this: $Text = shell_exec("c:\mydatabase\convertdb.bat $Language"); where $Language is set to "English" or "Chinese" etc etc ( I verified that it...
3
1,337
thread by: sarikasoni12 | last post Jan 15 '08 by: =?ISO-8859-1?Q?thib=B4?=
I m getting this error while uploading an image through form copy(http://localhost/madame/uploads/alt/medium/zoom.gif) : failed to open stream: HTTP wrapper does not support writeable connections. in C:\webserver\www\madame\classes\product.php on line 226 can any one please help me
13
5,119
thread by: trpost | last post Jan 15 '08 by: The Natural Philosopher
I am looking for a way to send data from one page to another as POST data without using forms or cURL. I have a php script that is passing a list of cases from on page to another when a link is clicked. This is working fine for the most part as a link, but sometimes the list gets very large and gets cut off. The reason it gets cut off...
1
12,063
thread by: Bart Van der Donck | last post Jan 15 '08 by: Manuel Lemos
Hello, In my application, I'm having a directory with a bunch of .eml files. It was my intention to read out with PHP this directory, make a list of it and show them as .eml links in the browser where the user could click on, which then opens into the default email client on the computer. It appears to be problematic to open .eml files...
2
2,751
thread by: Bruno Rafael Moreira de Barros | last post Jan 15 '08 by: Mason Barge
index.php --- inlcude 'application.php'; functions.php --- function test1() { trigger_error('My error'); return 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.