473,610 Members | 2,036 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,169
thread by: Defaultman | last post Sep 29 '05 by: Defaultman
Hi, I have 2 issues concerning regex: 1) change a string of: number\number\number to number/number/number for example: 2\0 to 2/0 3\1\2 to 3/1/2
0
1,125
thread by: f3l_ | last post Sep 29 '05 by: f3l_
does anyone one know any opentoro like project for php? (or perl?) http://opentoro.sourceforge.net/ id really like to be able to do this kind of stuff, and all of my web searchs (about it) have been sadly useless.
3
2,032
thread by: Han Koster | last post Sep 29 '05 by: Obvious
I use the following statements: $var = ""; $var = $_POST('varname'); In php 4, when 'varname' was not defined, $var remained an empty string; In php 5, I suddenly get errors. I solved these by including the function array_key_exist to check the occurence of 'varname'
1
9,099
thread by: muelli75 | last post Sep 29 '05 by: Kirsten
Hi! Im getting insane by solving a problem .... I try to define a function which uses a code-snippet from another file. My base are the codes from the great book "WebDataBase-Book by H. Williams & D. Lane". So I try to use
4
1,372
thread by: Bob Bedford | last post Sep 29 '05 by: Kim André Akerø
I've to save in an array of array some values. Problem: I don't know the size of the array before filling it. I'd like something like $bigarray = array(): then runnig the code I must create dinamically (I don't know how many) few arrays in the bigarray;
3
476
thread by: jmlin84 | last post Sep 29 '05 by: Jimmy Reds
I'm using the code: if(move_uploaded_file($_FILES, $target_path)) { echo "The file ". basename( $_FILES). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; }
0
1,262
thread by: Zou_Benjamin | last post Sep 29 '05 by: Zou_Benjamin
would anyone helps me about the following error java: Class A { ... } Class B
4
1,718
thread by: amorphous999 | last post Sep 29 '05 by: James
I will be creating a small web site using php/apache/SQL Server running on a Win2000 server. It sounds as if there a number of alternatives for accessing SQL Server: mssql* functions, ADOdb object, using a ADO COM object, ODBC calls, etc. Has anybody out there evaluated the alternatives for speed, error handling, quality of documentation,...
4
1,436
thread by: windandwaves | last post Sep 28 '05 by: Andy Hassall
Hi Folk I am making a website that is going to get lots of hits in one go (they will be doing lots of advertising). I am a bit scared the whole thing will fall over because it will get too many hits at one time. My questions are: a. has anyone got any experience with this? b. what is a lot? c. are there any techniques to reduce the...
1
2,103
thread by: Luciano Vittoretti | last post Sep 28 '05 by: Manuel Lemos
Hi everyone, I need some PHP script to make a documentation of database (like phpdocumentator, www.phpdoc.org ), moreover I need that document act like a database administrator, in other words, I need something that permits by an interface to do ALTER TABLEs commands. If someone know something like that get in touch. Thanks,
6
1,918
thread by: ralphNOSPAM | last post Sep 28 '05 by: Tom Scales
When I execute this script, nothing displays on my browser. I'm trying to verify my image is being reduced by 50% before I try to write it to a file: // The file $filename = "/home/public_html/radar2.jpg"; $percent = 0.5; // Content type header('Content-type: image/jpeg'); // Get new dimensions
2
1,659
thread by: Krimgelas | last post Sep 28 '05 by: Dikkie Dik
Hello, I have been programming in PHP for a while, but always the classic function oriented approach. I would like to learn how to program in PHP with an object oriented approach, but so far have found little resources. I would prefer to find a paperback book that explains this approach in a clear way, without it being too simple or too...
3
3,263
thread by: Hanjo Grüßner | last post Sep 28 '05 by: Hanjo Grüßner
Hello, I want to transfer a file from a http-server to another. Well, that goes fine like this: $upload = ftp_put($conn_id, "$destination_file", "$source_file", FTP_BINARY); But I want - before the transfer - to know wether the $source_file exists. More, I want to know and keep its original filetime.
8
2,211
thread by: rushik | last post Sep 28 '05 by: rushik
Dear all, We are using cookie base access management in our business intranet portal. We are setting user level cookies at the time of successfull login in the system, and after login we are checking the cookie 'user id' and 'page id'; if user has permission of the particular page he/she is allowed, otherwise throw the access denied...
5
2,060
thread by: ssp | last post Sep 28 '05 by: Gary L. Burnore
Dear all, I'm dealing with a very tricky problem and can't seem to find the answer with google. the problem is: i want to store huge data (binaries) inside a mysql databases blob - to later store those data to a file somewhere else (from where i can connect the database). problem comes into play, when I try to output a "progress" of the...
2
2,495
thread by: jaYPee | last post Sep 28 '05 by: Rincewind
anyone know how can I replace this code using only the div tag? I have tried everything but I can't do it. here's the code using table: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;
14
2,160
thread by: Chung Leong | last post Sep 28 '05 by: R. Rajesh Jeba Anbiah
Just noticed this link on the side while reading this group on Google: "PHP Programmers at $10/hr" So sad...
2
1,266
thread by: Rossz | last post Sep 28 '05 by: rossz
I did "pear upgrade-all" and upgraded a number of modules. I then immediately tried to use pear to install a new module and got this: bash: /usr/bin/pear: No such file or directory WTF! It looks like the upgrade-all caused pear to nuke itself. So how do I manually install pear? I can't exactly remove PHP and reinstall it as it's on a...
2
1,819
thread by: alex | last post Sep 28 '05 by: alex
Hi all, I'd like to find the equivalent of the getimagesize() function for remote swf files. Do you how to do this ? thanks in advance, -- alex
0
1,633
thread by: Yarco | last post Sep 28 '05 by: Yarco
I searched over the world, but find nothing. No one describe this question for more detail. I'm under win32. And i see the lastest download version of fastcgi is 1 years old. No body tell me the difference between SNAP and none fastcgi.dll Which instruction can be used in httpd.conf? And finally i get the turth of:
2
2,104
thread by: Con | last post Sep 28 '05 by: Sven Lauritzen
Hi, I'm in the process of converting some PERL to PHP. Thus, is it possible to leave the following line as is: if ($id =~ /vvvvv/g) { ... } If not, can someone provide PHP equivalent? BTW, I have checked the
4
1,839
thread by: pierre.bru | last post Sep 27 '05 by: pierre.bru
hi, fist the context: I have a web server which query a mySql database. but as the number of parralel queries increase, the server slows down too much. I got 2 ideas, one of which is to run N deamons which effectively execute requests. the PHP uses message queuing(1) to queue queries request to the daemons. but the answer may be quite...
1
6,939
thread by: Michael Kilpatrick | last post Sep 27 '05 by: Drazen Gemic
I'm writing a command-line PHP script that gets executed by a virtual printer (a redirected port using the Redmon tool). The PHP modifies the Postscript data before forwarding it to the real printer. In this case the real printer is an HP LaserJet 5100 with a JetDirect wireless server. My machine runs Windows XP. The printer, as well as...
2
1,215
thread by: Shettin Kittens | last post Sep 27 '05 by: Samuel
test - please ignore
3
9,117
thread by: GG | last post Sep 27 '05 by: GG
I don't know if this can be done. Can PHP be used to read/write to the serial port on a PC? Any replies related to Linux or Windows are welcome. Ultimately, I would like to be able to send a character string to the serial port when a button is clicked on a PHP driven website. Any thoughts anyone?

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.