473,811 Members | 3,424 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.
5
5,539
thread by: Jon Maz | last post Nov 9 '05 by: news.freeserve.com
Hi All, I'm reasonably proficient with C#, and am starting with php5. I was happy to learn of the __get and __set methods, but am encountering a problem using them to set an object property of type "array". Below is a simple example of the problem I'm having with a sample object "Article", which has an array property "authors". As you...
65
5,480
thread by: Nikolas Hagelstein | last post Nov 8 '05 by: Nikolas Hagelstein
Hi, First of all: i spend a lot of time on thinking and researching about how to make developing webapplications with php a more structured/systematic thing. I even fancied to switch over to jsp since i heard all those stiltedness rumors about it's professionalism/stability etc. Anyway my current attitude is that fullfilling the...
2
1,775
thread by: news | last post Nov 8 '05 by: Chung Leong
We currently have our mySQL server on the same box as the Apache server. For security and load balancing, we're going to be moving the mySQL server to another box. We're already using a single included connection file in all of our PHP pages that has the server, username, password line that connects to the database. Aside from changing...
3
2,000
thread by: Chung Leong | last post Nov 8 '05 by: JDS
See http://www.theregister.co.uk/2005/11/07/linux_worm/
12
1,699
thread by: Mike | last post Nov 8 '05 by: windandwaves
Hello, I have been trying to get cookies to work. It seems I can get this cookie to be persistant in the browser but I want to write it to my Cookies Folder. I have tried many variations but when I look in the folder there is nothing there from my Domain. This is a simlified version but, I have tried many things. What am I missing? Yes I...
8
1,696
thread by: windandwaves | last post Nov 8 '05 by: windandwaves
Hi Folk I want to create something like AMAZON: those who liked page A also liked page B (I am going to apply the concept to a few different selections, but to keep it simple I will talk about page popularity here - like AMAZON talks about purchase patterns: those who bought A also bought B, C and D). In my mysql table, I record everytime...
5
2,431
thread by: george | last post Nov 8 '05 by: Krustov
Hi All I've used couple of GPL/free voting scripts (some of these are very good), but need to create/find one that allows users to add a new answer. For example: This is a voting question - which answer is the best? a) answer a b) answer b c) add your own answer, vote for it and allow next voter to see this answer as voting option.
0
1,230
thread by: John Murtari | last post Nov 8 '05 by: John Murtari
Folks, I'm using WP 1.5.2 on Apache 1.3.33 and tried it with both PHP 5.0.4 and php 5.1.0.rc.1 -- and getting seg faults (can't even complete setup) I complete the first step in Setup, and get the seg fault going to the second step. I would welcome any work arounds/solutions people might have. I checked our the wordpress site,
3
1,464
thread by: Ben Hallert | last post Nov 8 '05 by: Ben Hallert
Hi there! I've set up PHP 5.0.5.5 on an Windows 2003 system running IIS (yes yes, have I considered Apache? Unable, other factors at play). I wrote a simple test PHP that does nothing but phpinfo(), and it works great. The moment I activate mysql support, trying to execute the script results in a perpetual wait until timeout. I have...
4
1,924
thread by: Rainer Wiener | last post Nov 8 '05 by: NC
Hi, When I pass a variable e.g. action= I2OSg2/49FeviZi4PjUm+w== across the url and into a php program it is coming in to the program as I2OSg2/49FeviZi4PjUm w== instead of I2OSg2/49FeviZi4PjUm+w== i.e. the '+' symbol is now being interpreted as a space.
5
1,287
thread by: jfbarro | last post Nov 8 '05 by: jfbarro
Hi! I am a completly newbie to regexp and I would like to find a regular expression which execute the following search: "Show me all *Exception* since they are different from EOFException and SocketException"
6
1,784
thread by: Giggle Girl | last post Nov 8 '05 by: Raqueeb Hassan
Overall Background: I am in charge of migrating an already-made Content Mangement System from ASP to PHP. I do not know PHP -- yet! I am trying to foresee potential issues, and here is one. Image Specific Background: The ASP version of the CMS uses a 3rd party component to accept the uploading of images, and then to resize them so that...
0
1,148
thread by: Tamer Higazi | last post Nov 8 '05 by: Tamer Higazi
Hi! Has anybody of you ever built php5, apache 2 with the recent microsoft free tools (lib and sdk) on Windows XP?! Why... I see many modules running "phpinfo()" not available, which I'd love to compile with. For any answer, thanks. Tamer
29
3,046
thread by: rjames.clarke | last post Nov 8 '05 by: Chung Leong
I am developing an online application and the last thing I need to get a handle on is security. This app is very heavy with forms. Business critical data will be entered via forms and inserted in to a database (mysql). I've google "php security" and from what I've read, I should: 1) Filter all form data by stripping all non-alpha/numeric...
1
1,311
thread by: eclectic_01 | last post Nov 8 '05 by: Andy Hassall
Is it possible to scan the html or plain text of a frame? I would like to load a remote page into a frame, then 'scan' the html for specific content. Preferably, I would like to check for specific strings of text so that I can call my own functions depending on the content of the frame. Cheers.
4
5,103
thread by: Qun Cao | last post Nov 8 '05 by: Bill Karwin
Hi, I have a question about sql query, I want to access a random entry in table A. It should be a simple task, what I need is to first do "select count(*) from A" to get the total, then generate a random number N from the total count. The problem is, now I need to access entry no.N of table A, yet A doesn't have a counting field; so I...
14
1,794
thread by: windandwaves | last post Nov 7 '05 by: windandwaves
Hi Folk Forgive me for asking such a basic question... I have a site where I want to track the user from start till end... To do this, I have setup the following structure for each page, referring to startup.php, where the session is managed. Can anyone check that I am doing it right. I thought I was doing it right, but then the site...
3
1,884
thread by: Alexander | last post Nov 7 '05 by: Andy Hassall
Hi there, i am trying to run php(4.3.4) on iis6 (W2k3 Server). All works perfect except running external programs. The command system (or exec) starts and works (tried it, and the command is executed) but the server returns: CGI Error, CGI-application misbehaved.....
9
2,060
thread by: windandwaves | last post Nov 7 '05 by: windandwaves
Hi Folk My question is: echo all the time vs echo at the end - what is faster Let me explain I used to write pages like this: echo "<head> ";
2
1,698
thread by: Chris | last post Nov 7 '05 by: BKDotCom
Has anyone got a function (or class) that will take a string and encrypt it into printable characters, then a similar function that will decrypt it again, without the need to call external programs (eg: pgp, etc)? Ideally the number of characters in the encrypted strng should not be the same as the decrypted version either. Thanks, Chris
8
1,256
thread by: laredotornado | last post Nov 7 '05 by: feed_sheep
Hello, I have strings on my page of the form param1=abcd&agency_id=1234&param2=dex I want to write a PHP expression to take strings similar to the above, and output param1=abcd&agency_id=<?php echo $LTON; ?>&param2=dex
6
4,713
thread by: Dave Smithz | last post Nov 7 '05 by: HappyHourHotSpots.com
Hi there, A client of mine wants to start generating some reports from their PHP / MYSQL database. They were previously gathering data from the screen and cutting and pasting it into a Word document template. They now just want to generate it. My initial thoughts are to just format the information in a table and then they print it out....
1
1,124
thread by: Peter Jay Salzman | last post Nov 7 '05 by: Ken Robinson
Consider: $myHobbits = array( 'frodo', 'bilbo', 'merry', 'pippin' ); I'd like generate the string: "frodo, bilbo, merry, pippin" One way of doing this would be:
10
2,161
thread by: JDS | last post Nov 7 '05 by: JDS
Hi all. I don't know if this is possible, and if it is, whether it needs to be done within Apache configuration or PHP configuration, but here goes: I am migrating my web server to another machine. In fact, it is two machines -- one for the web server itself, and one as a data server for user home directories and MySQL. The users' home...
5
2,326
thread by: bigfella | last post Nov 7 '05 by: R. Rajesh Jeba Anbiah
Hello Folks, I would like a web page to have 2 menu lists The contents of the second menu list depending on the selection made in the first. The contents of the second would be populated from a database. I am fairly new to programming using PHP, Javascript and MySQL but I am

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.