473,787 Members | 2,924 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.
2
1,372
thread by: comp.lang.php | last post Aug 15 '05 by: comp.lang.php
function &getResponse() { /*---------------------------------------------------------------------------------------------- New 7/29/2005: Windows can use STDIN, however, the 'con' input data stream, i.e. 'console', is built into DOS functionality and produces a better data input stream result. Use that for Windows. If this stream is not...
3
1,801
thread by: Kevin | last post Aug 15 '05 by: Markus
Does anyone have a suggestion for parsing large files line by line without loading the entire file into memory first? I don't want to use file() because the files I'm working with may be multi-gigabyte so loading them into arrays would be pretty memory intensive. In Perl, I can do: "while($line=<HANDLE>){do something with $line}". Is...
5
10,695
thread by: Willem-Jan | last post Aug 15 '05 by: Willem-Jan
Hi all, As a test to understand how to create and save a file on my server i created the next code: --- <html> <head> </head> <body>
4
1,467
thread by: Vic Spainhower | last post Aug 15 '05 by: Vic Spainhower
Hello, I am trying to setup a file upload using the example from the PHP manual. However, I am getting an Undefined index on userfile in the 2 places where it is referenced. Can someone please tell me what this error means and why it is happening? Thank you, Vic
0
1,683
thread by: Yvonne | last post Aug 15 '05 by: Yvonne
Hi! I have a problem and wonder if anyone can help me with that. I am trying to make a community in php/mysql to work but it don't. I hope you can help me even if the community is in swedish. Php an mysql is up and running and it works. Here is the comminity: http://kamrate.se/iwcommunity/default.php
2
1,156
thread by: kane_bond | last post Aug 15 '05 by: kane_bond
Hi, Im not all that great with PHP, but this should be a simple one I want to inster a URL paramater into the default value of a field of a form eg. /test.php?MYVALUE=hello
4
6,931
thread by: Scott Teglasi | last post Aug 15 '05 by: Jan
Hi all, I've been wrestling around with finding a way of password-protecting existing PDF documents with custom passwords, all on-the-fly, using PHP. I've found some commercial implementations of doing this, but was looking for something without a price tag attached to it. :) I came across the FPDF library, but that only creates PDFs,...
2
1,117
thread by: John | last post Aug 15 '05 by: Tim Roberts
Hello. I have been looking on a job site that is quite limited in the search options it allows. It seems to be an asp site as it has a .aspx extension. If I wanted to search for a salary between a certain range how do I do it? At the moment it only allows you to select a salary that is at least a certain amount.
0
1,215
thread by: Simon Taylor | last post Aug 15 '05 by: Simon Taylor
OSDC (Open Source Developers' Conference) is a grass-roots/low cost conference in the style of a YAPC or PyCon. It's organised for developers, by developers, and we're looking for papers on open source languages, technologies and tools. The conference will be held in Melbourne (Monash University's Caulfield Campus) from the 5th til the 7th...
3
1,515
thread by: pyda001 | last post Aug 15 '05 by: pyda001
Hi! We are working on a webshop issue and are facing the following problem. Chances are that this has been solved before and thus we don't need to reinvent the wheel. Our website is supposed to work as a common site for several other websites. Members have the opportunity to place orders on our site although we don't actually sell...
3
1,315
thread by: lwoods | last post Aug 15 '05 by: JDS
I have been using mysql for a little while, but I ran across some code that had this format: $connection=@mysql_connect(blah, blah....) I have always used: $connection=mysql_connect(blah, blah...) What is the significance of the '@' ....and why?
2
1,319
thread by: PagCal | last post Aug 14 '05 by: Andy Hassall
How do I get a status code returned from a shell script? The following doesn't seem to work: #!/bin/php <?php exit 5; ?>
2
1,169
thread by: Jørn Dahl-Stamnes | last post Aug 14 '05 by: Jørn Dahl-Stamnes
Hello, I'm trying to write an expression that will match lines like this: This is a line with text This is also a a line but not lines like: This shall not match
1
1,384
thread by: Ellen12 | last post Aug 14 '05 by: ZeldorBlat
Ok, the objective of this project is to provide an ARTICLE upload mechanism for PostNuke that will enable us to upload up to 20-40 articles at a time, assign the articles into appropriate topics and also allow us to specify whether the article should be automatically approved or not. We use PostNuke 0.750. The upload process would happen...
2
2,003
thread by: Bruce A. Julseth | last post Aug 14 '05 by: Bruce A. Julseth
When I run a Front Page developed page on my Apache server, the page loads okay. But when I click the "Submit" Button, I get the following error message: FrontPage Run-Time Component Page You have submitted a form or followed a link to a page that requires a web server and the FrontPage Server Extensions to function properly. This form...
3
1,457
thread by: Shelly | last post Aug 14 '05 by: Noel
I have been coding for almost 40 years, but only two months with php. I found www.php.net and it has a lot. I downloaded ZipCodeRange and it called for stuff, including DB.php. I was directed to look at pear.php.net. I did that, and started reading the manual. What I cannot seem to find is how to SIMPLY use this stuff. a - I don't know...
1
2,122
thread by: Martin Burger | last post Aug 14 '05 by: Martin Burger
Hello, I configured PHP 4.3.11 './configure' '--prefix=~/php-4.3.11' '--enable-memory-limit' '--enable-force-cgi-redirect' '--enable-track-vars' '--with-pcre-regex' '--with-mysql=shared' '--without-mm' '--enable-fastcgi' and executed "make; make install".
1
3,143
thread by: excession | last post Aug 14 '05 by: Chris Hope
I've got a script which uploads a few files to a remote server. The problem is the ftp_put command hands and the script eventually times out. What is even more strange is sometime it works fine. When it's not working i've check the connectiion and done a manual upload with a proprietry ftp program and all is fine. Any ideas?...
2
1,602
thread by: Jeffrey D Moncrieff | last post Aug 14 '05 by: Stefan Rybacki
I am trying to create a data base for colleting date for my research project. I have run in to a couple of problems and I need it fast ASAP I need it to be able to add data and edit them and view the data form a public site. I have not use mysql and php since 2003 I have created the date base with 2 tables 1 for a Jump Menu and on for the...
0
1,345
thread by: Mike Walsh | last post Aug 14 '05 by: Mike Walsh
I have an application which uses imap_headerinfo() to query an NNTP server and display some information as part of a web application. I am seeing a difference between 4.3.11 and 4.4.0 when the e-mail address in the article contains a spam block. I get the following notice: Notice: (null)(): Unterminated mailbox: name@.MISSING-HOST-NAME....
4
1,553
thread by: juglesh | last post Aug 14 '05 by: juglesh
please comment on the following methods of preventing cross site scripting and/or other nastiness: 1: $pages = array('home','contact','about','links' ); // could also build this array with readdir('MySafeDir') ?? if( in_array($_GET, $pages) ) { include $_GET.".php";} else {die("Nice Try."); }
2
1,237
thread by: Michael G | last post Aug 13 '05 by: Michael G
A habit of mine is to include all files at the head of the file requiring them. Is the following bad practice? It works just fine but...??? thanks, mike class ActionFactory { function createAction($className) {
1
1,337
thread by: Frieder Schlönz | last post Aug 13 '05 by: Janwillem Borleffs
Hi there, does anybody know a good TYPO3 newsgroup, web boards or easy tutorials? Many thanks for your help! Frieder
3
1,365
thread by: Des | last post Aug 13 '05 by: Des
I have a web email contact us that if the cancel button is presed it redirects to the home page. using header('Location: index.php'); I have a session variable on every page which sets the a session variable. What I want to do is header('Location: $return); where $return is a copy of the variable the page that has the problem is...
1
1,238
thread by: Micheal Corleone | last post Aug 13 '05 by: Kimmo Laine
Hey guys. Anybody has an idea how to write data from mysql source into a textfile? Thanks for help. ------------------------------- Fav pages: PSP Spiele: http://www.psp-spiele.net

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.