473,811 Members | 2,979 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
3,125
thread by: Robert Oschler | last post Jul 26 '05 by: Robert Oschler
I am working on a PHP 4 app that interacts with an external authorization server. The external server does "third-party" authorization of users. So I do the following: 1) Each of my PHP scripts has an include file (require_once) that checks to see if the current user has recently been authorized. 2) If not, the user is "handed off" to the...
0
995
thread by: Robert Oschler | last post Jul 26 '05 by: Robert Oschler
Currently I use mainly SourceForge and phpclasses.org for my PHP code libraries (and PEAR). Are there any other powerhouse open source PHP code library sites I should know about? Thanks.
3
3,960
thread by: B Squared | last post Jul 26 '05 by: Andy Hassall
I've having a problem getting PHP to work with Apache. I've just installed Apache and on a Fedora core3 system. The installs were pretty painless, just as expected. Then I pointed to a simple web site with a simple PHP script. But I only get a listing of the files in the directory that contains the website, it never executes the PHP script. ...
12
18,891
thread by: frizzle | last post Jul 26 '05 by: frizzle
Hi there, I was wondering what's the quickest way to put a (transp-PNG) over a picture? I have a code, but i guess it's sloppy. And it's slow. (Code below this message) Could anyone help me out on this?
4
2,711
thread by: guitarromantic | last post Jul 26 '05 by: guitarromantic
Hey everyone. Following advice found online, I figured out a basic way of splitting a long article into several pages, by exploding out from a <!--pagebreak--> code in my $content field. http://www.scenepointblank.com/matt/dev/features/index.php?id=1&page=1 Sample above. The next/previous links were built with simple values:
2
2,807
thread by: Sugapablo | last post Jul 26 '05 by: Carl
From the manual, it seems negative timestamps should work on Linux, just not Windows. But anything I try before 1970, (i.e. a negative timestamp) is giving me 12/31/1969. Is this right? --
9
2,211
thread by: Ben Allen | last post Jul 26 '05 by: Ben Allen
Hi, I want to create a password protected page to administer my site from (the news is read from a mySQL database and I have created a PHP form to as a GUI to do this). I thought of password-protecting it by creating a page with the login details (which are the same as those needed for the mySQL database, passing these as variable to the...
9
20,642
thread by: Bush is a Fascist | last post Jul 26 '05 by: Tim Van Wassenhove
Help! PHP is crashing when I go something very simple and straightforward. I downloaded PHP 5.0.4 and compiled it with MySQL support. I checked that my database was up and running and that the table I wanted to access was accessible from the mysql prompt. I then ran the following PHP file, first through my webserver and then at the...
6
3,550
thread by: fgarciarico | last post Jul 26 '05 by: JDS
I´m developping an application that needs to show some videos, but in a protected envinroment. Any user must be authenticated to see the videos. But for example, if anyone know the path of the videos, can access directly to this site and download it without authentication. If I write in the location bar the url of a video, I can download...
2
1,375
thread by: Michal Przytulski | last post Jul 26 '05 by: Michal Przytulski
Hi, I'm looking for a php application server witch can create standalone application on linux OS, somthing like java servlet or python twistd. This shoud be a complete framework with support for OOP in PHP 5. Now i found two solutions: http://nanoserv.si.kz/ and http://phplet.sourceforge.net/index.php but first solution is only server, and...
7
1,913
thread by: Ben | last post Jul 26 '05 by: luke
Hi, I do use JPGraph for ploting some data. I compute the data and generate to sets of DATA. $X and $Y. I have also written a plot.php file where run my plot.
2
1,704
thread by: Konrad Tuszkowski | last post Jul 26 '05 by: luke
hello i have a form with 5 fields. and my problem is that if user put 2 or more same variables my script finds in db only 1 and i need to search all variables in db even if they r same. <http> <body> <?php $A=$_POST; $u=$_POST;
3
1,653
thread by: Juputus | last post Jul 25 '05 by: JDS
Hi! How to create a homepage, in which you can send a message, the website shows on another webpage the message, so you can read it. I mean, how to create so a system, which you need? (databank...) I only know, that you must use PHP for creating it. Ciao and thx for answers! :-)
7
3,214
thread by: Magnus Warker | last post Jul 25 '05 by: Steve
Hi, I want to traverse an (associative) array, starting from its current position, until a certain element is reached. Then, in certain cases, I want to be able to reset the current position of the array to the one that we had before touching the array. I. e., i need something like funcctions getpos and setpos: ----------
1
1,505
thread by: Robert Oschler | last post Jul 25 '05 by: Wayne
I read somewhere that showing the full path during an error dump is a "bad thing": /dir1/dir2/somedir/script_that_died.php Like during a parse error or a warning from the interpreter. How can I tell the PHP interpreter to show only the script filename and if possible, one or two directories above? Thanks.
1
1,786
thread by: Kyndig | last post Jul 25 '05 by: Tim Van Wassenhove
Hi group, I am working on retrieving/storing information in a MySQL database that requires the rows of the db scheme to be expandable. As an example of what I am trying to do: You want to store info on a HOUSE ROOMS are in a house WINDOWS can be in a room or not DOORS can be there that lead to other rooms
0
1,153
thread by: Benoît | last post Jul 25 '05 by: Benoît
Hi, I try to detect the encoding type of a string $myString which comes from a html file. $myString = file_get_contents($myFileName); Firstly : I tried to get the charset in <meta charset="iso-8859-1">. But I've the following problem. Internet Explorer write ISO-8859-1 even if we have save it in Unicode format (UTF-16).
2
15,375
thread by: pfrank26 | last post Jul 25 '05 by: Tony Marston
Hi all, I've written a large system for PHP4 that declares class variables using the 'var' keyword. I'm now upgrading to PHP5, and it seems I have to change 'var' to private / public / protected, which don't work in PHP4. Is there anyway to make my system compatible with both versions? Cheers, Paul.
0
1,093
thread by: Arne Claus | last post Jul 25 '05 by: Arne Claus
Hi What possibilities does php provide to validate an xml-file using it's (in-file-referenced) dtd? I found the dom xml functions doing this, but read here that they are deprecated (in php5?) and have to be loaded as a module (aka. not included in standard installations). The problem is, that I need a way to validate xml files on standard...
0
1,182
thread by: Norbert | last post Jul 25 '05 by: Norbert
Hello, everyone! As a workaround for a problem with my provider I'm looking for free webspace were I can use the CURL module. Has anyone a hint for me? Norbert
8
1,330
thread by: windandwaves | last post Jul 25 '05 by: windandwaves
Hi Folk I have a long script that sends a bunch of emails (between 5 and 20). At the end of the script, it creates a Internal Server Error 500 - sometimes only. The more emails I send , the more likely it seems that I get the error. The whole script runs though - it seems (error occurs somewhere near or at the end). I imagine it...
6
2,451
thread by: bettina | last post Jul 24 '05 by: Peter van Schie
I downloaded and installed apache_2.0.54-win32-x86-no_ssl.msi By running bin\Apache -k install I receive th following message: <OS 10048>Normalerweise darf jede Socketadresse <Protokoll, Netzwerkadresse oder Anschluss> nur jeweils einmal verwendet werden. : make_sock could not bind to no listening sockets available, shutting down Unable to...
1
3,008
thread by: sylvian stone | last post Jul 24 '05 by: Gordon Burditt
Hi, I've used standard date functions in the past, but need to create something a little different, as I am working on an investment calculator. What I need to do is validate two dates, and check for a complete years. And a complete year is from day 1 until the proceeding day the following year. A couple of examples:
3
1,589
thread by: opt_inf_env | last post Jul 24 '05 by: R.Lange
Hello, In some examples of a PHP implementation I saw the following: if ( isset(x) and x==12) I do not understand what for before to check whether some variable has some value one need to check whether this variable is set. If the second condition is true than the first one is also true, isn't?
4
1,320
thread by: Shelly | last post Jul 24 '05 by: Shelly
(Also posted in dreamweaver forum) I have two *.jpg files. They both display perfectly on my local system. I have a check on the type of file in my upload where I check the first five characters for "image". One uploads and the other does not. One passes the "image" test and the other has an empty string there, so it fails the upload.

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.