473,787 Members | 2,881 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
983
thread by: Terry | last post Sep 25 '05 by: Terry
I built my first test site using a cookie (just to let the user change css sheets) with a 1 hour life. It worked fine in IE, NS, FF, and Opera - if you changed pages on the site. If you changed sites IE would ignore the cookie. <blush>I looked at the html delivered to the browser - I had forgotten to use the \n on the array ouput.</blush> ...
2
1,370
thread by: Keith | last post Sep 25 '05 by: Toby Inkster
All: Can PHP 5 be successfully installed and used on Mandrake Linux 9.1? Keith
2
1,509
thread by: JamesB | last post Sep 25 '05 by: JamesB
I am half way through making a site you can only do certain stuff if logged in to. So far, you are logged in if there is a session variable with your username, but I got thinking that presumably someone who worked this out could make a cookie file with this info in and pretend to be another user. So... what's the recommended way? I thought...
3
4,211
thread by: Kevin | last post Sep 25 '05 by: Geoff Berrow
Hello, I am just wondering whether there are any good php blog software that do not need any database as background. I want to setup a blog for myself. I know usually, tools such as http://www.bblog.com/ etc. need MySQL as background to save the necessary information. However, I want to build a one user blog without any background
6
2,286
thread by: nwheavyw8 | last post Sep 25 '05 by: Kim André Akerĝ
I am currently trying to write a simple PHP script that will split an uploading file up into 500kb "chunks", then read and concatenate them back together when accessed for download. I can't seem to be able to find a way to split the file purely in PHP while it is in the middle of uploading using the move_uploaded_file function. I am trying...
4
1,435
thread by: JIM WHITAKER | last post Sep 25 '05 by: JIM WHITAKER
Are there any good PHP scripts or pre written programs that deal with a complex database? Let me explain: I'm in truck dispatch, and we've moved all tables to mysql and access them on a network via ms access. We will open another office in another city, and will want a "web" database. Now here's what I'm after: Currently one form has various...
7
1,838
thread by: CAH | last post Sep 24 '05 by: Gordon Burditt
I once wrote on usenet and got a very good answer . This one JN wrote: > >| Should one place all the text in one big table, or is i better to place > >| it in several tabels. Should one make 4 colums one for each language, > >| or 4 rows one for each language? > > I use: > CREATE TABLE `usr_languages` ( > `pageName` varchar(25) default...
2
1,430
thread by: jkmambo | last post Sep 24 '05 by: Kimmo Laine
Suppose I have two tables A and B Table A has fields A1, A2, A3, ... A9 Table B has fields B1, B2, B3, ... B9 I want to select all fields in A and only B3 in table B. I dont want to list individual fields for A because they are too many I simply want to use a *. How do I do this?
10
2,825
thread by: Joseph S. | last post Sep 24 '05 by: Joseph S.
Hi, How do I pass a string from one call to a php block to another call in the same page but from another form? Here's my full php code: I'm using two forms in the same page. A hidden field 'f' with values '1' and '2' are used to distinguish calls from one form from those from the
4
37,017
thread by: Stefan Mueller | last post Sep 24 '05 by: Kees Nuyt
I've just installed phpMyAdmin. If I have the line $cfg = 'http://localhost/php/phpmyadmin'; in my config.inc.php I can login to phpMyAdmin without any problems from my local machine. But it's not working from the Internet. To access it from the Internet I have modify the line $cfg = 'http://www.myserver.com/php/phpmyadmin';
2
2,865
thread by: changereality | last post Sep 24 '05 by: NC
In php how do I call an external script or program without having php waiting for the return? exec and system both seem to wait for the return, I don't want this.
3
3,109
thread by: O'Hara | last post Sep 24 '05 by: Geoff Berrow
Hi, Some characters entered in the text fields of a form get an escape character. What is the reason? How can I prevent/remove this? Here is an example: <form action=hello.php method=post> <input type=text value=firstname> </form> If the user enters:
2
1,249
thread by: Chris | last post Sep 24 '05 by: scarlet
Hi, We have a local webserver IIS 5.0 in our school. The option "anonymous" is not checked. There are ASP applications which works well. The system reads the login and sends the right page. Now there are also PHP 5.0 pages, but when a user tries to open one (for example "test.php" containing only <? echo "hi" ?> ), he receives an...
5
3,422
thread by: crjunk | last post Sep 24 '05 by: Tony Marston
I'm a newbie trying to learn PHP. I've worked with ASP, ASP.NET and WebSpeed in the past, but now I'd like to learn PHP. I've already gotten a Fedora web server up and running with Apache and MySQL. I'm looking for some examples - or even better a free project - to look over and see how other are using PHP to read/write records to and from...
6
1,582
thread by: _andrea.l | last post Sep 24 '05 by: Obvious
I'd like to write a function like: function f(){ ... bla ...} f_example(f); function f_example($function_to_execute) {...bla... $function_to_execute() ...bla....} AND how to pass the variable of the function :
1
1,205
thread by: Michael Preminger | last post Sep 24 '05 by: Sander
Hello! I am teaching Web programming to students many of which are not very techinically interested (but this is still a part of their curriculum) I am looking for some multimedia based presentation that can help me convey some ideas / topics. One example of such a topic would be the role of the web-server in presenting server based...
4
1,435
thread by: bigfella | last post Sep 24 '05 by: NC
Hello, In MYSQL would like to produce a field for 3,6,9 or 12 months just containing the dates of every 7 days from the current date. I think I need a mixture of PHP and MYSQL to achieve this. Looked all over and can't find a sausage. Darren
2
1,209
thread by: Keith | last post Sep 24 '05 by: Keith
All: Is there a way through PHP to open up a new window in PHP and run another program in it as you would in Javascript? Is there a way to call a Javascript function from within a PHP script? Keith
3
1,105
thread by: mlw | last post Sep 23 '05 by: IWP506
I have created an extension in PHP. It implements a new serializer for the session manager. Unfortunately, the session extension is initialized first, and fails to see my extension. Anyone have a suggestion?
5
3,025
thread by: news | last post Sep 23 '05 by: Jerry Stuckle
Well, I wrote my first PHP class today. Yeah! But to get it to work, in each function within the class I have to repeat the database connection lines, and that just seems redundant; there has to be a better way that I'm just not bright enough to think of. Any suggestions? (It's the first 3 lines of each of the two functions below. When I...
0
1,051
thread by: Reimar Bauer | last post Sep 23 '05 by: Reimar Bauer
Dear all did someone know how to recognize if someone has invoked a script from a plugin in a browser. cheers Reimar --
9
2,793
thread by: amerar | last post Sep 23 '05 by: Andy Hassall
Hi All, I'm trying to track down this error. I had a web site written for my company. There is an admin function where we can select photos to be uploaded to the server for display on the site. Anyhow, if I select more than 7 photos at a time I receive this error: Request Entity Too Large The requested resource
6
9,320
thread by: Syl | last post Sep 23 '05 by: Syl
I've been through the php.net docs, and this newsgroup - and all seems to be configured properly, but this statement is still not working: switch ($level) { case 1: $nextyear = mktime(0,0,0,date("Y")+1,date("m"),date("d")); $nextyear = strftime("%Y%m%d",$nextyear); break; < snip case >
4
18,671
thread by: Matt Schroeder | last post Sep 23 '05 by: enigma
Does anyone know how to count how many rows are in a mysql table? This is what I have, but it doesn't work right: <? $db = mysql_connect("localhost", "username", "password"); mysql_select_db("database",$db); $sql = "SELECT COUNT(*) FROM table"; $result = mysql_query($sql); echo "$result"; ?>
14
3,900
thread by: Dave Thomas | last post Sep 23 '05 by: Jim Methley
If I have a table set up like this: Name | VARCHAR Email | VARCHAR Age | TINYINT | NULL (Default: NULL) And I want the user to enter his or her name, email, and age - but AGE is optional. My insert would look something like:

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.