473,811 Members | 3,687 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
1,260
thread by: alexander.stuckenholz | last post Jul 24 '05 by: alexander.stuckenholz
Hello. I have two questions regarding the PHPDocumentor package: 1] Is it possible to add the html-output of phpdocumentor to existing output of the program? I have some pear packages and i'm using phpdocumentor to create the documentation. But i don't want a separate documentation for each package but a bundled documentation. 2] How...
6
1,580
thread by: Marcus | last post Jul 24 '05 by: Andy Hassall
Hi all, Quick question... I am storing jpegs as blobs in a mysql table, which is fine on my live server because I am just uploading them using phpmyadmin (I am working with a small number of images that will rarely change and thus do not have a need for an upload script). My problem is I do all my testing on my local host where I do not...
4
9,204
thread by: opt_inf_env | last post Jul 24 '05 by: Jerry Stuckle
Hello, I know three ways to pass variables form one page to another. The first one is to declare and set session variable. In this case if one goes to another page (by clicking on hyperlink or pressing a button) value of a session variable will be automatically seen on the new page. The second way is to set hidden variables in the form and...
6
4,432
thread by: nntp | last post Jul 24 '05 by: Tad McClellan
I tried mod_perl. It is too troublesome. Many old scripts stopped running. Even those running eat memory like crazy. I wonder why mod_php does not have the problems in mod_perl, such as memory hog, varible initialization etc. Is there a way to use Perl scripts at the same speed of PHP without worrying about those clearing varibles etc in...
2
1,703
thread by: google | last post Jul 24 '05 by: GazK
I have a script which parses the BBC RSS feed once an hour, and drops any stories with certain keywords into a database. I would like to ban certain strings; at the moment the script will pick up the word "train" but also "training"; this is giving me a lot of false positives. Can anyone assist? I tried a couple of things but nothing that...
9
2,380
thread by: R. Rajesh Jeba Anbiah | last post Jul 24 '05 by: Janwillem Borleffs
Q: How should I handle file upload? A: File uploading requires HTML form of content type "multipart/form-data". The file content has to be POSTed/submitted via the form and once the file is uploaded, it will be available at the "upload_tmp_dir" (usually /tmp) directory. Then you may move that file to another directory using...
4
1,149
thread by: Randell D. | last post Jul 24 '05 by: John Dunlop
Folks, I could do some basic regular expressions (which I picked up from sed, in unix) but I'm afraid its been a while. I'm wondering if someone could help out. I basically want to check that a string variable contains only alphanumeric characters, in addition check for the underscore. No decimal point check is required, and it should be...
24
2,868
thread by: el_roachmeister | last post Jul 23 '05 by: Csaba Gabor
Is there a way to make a text link post to a form without passing all the parameters in the url? The urls tend to get very long and messy. I often wonder if there is a limit to how long they can get?
3
1,195
thread by: Jay Bird | last post Jul 23 '05 by: Jerry Stuckle
I installed PHP5, Apache2 and OpenSSL on my Debian woody server. Everything seems to have installed fine without any complaints. I can bring up my .php test page fine on the ssl https. But when I try to bring it http up on port 80 I get the download-a-document and what-do-you-want-to-open-it with dialogue box, as if there is no PHP on the...
16
2,741
thread by: cover | last post Jul 23 '05 by: Dave
I have a form with drop down menus to query for name, month, and year to capture activity accordingly by an individual for a given month and given year. But I'd like to also be able to query ALL individiduals for a given month and year OR an individual for the whole year for example. My question, is there any way to have blank (not filled...
4
1,252
thread by: IWP506 | last post Jul 23 '05 by: Janwillem Borleffs
Hey, here's some code: switch ($_GET) { case "1": include("./1_content.html"); break; case "2": include("./2_content.html"); break; default:
0
1,480
thread by: adamsbarker | last post Jul 23 '05 by: adamsbarker
i can't seem to get the "ssh2_exec" function working on Windows XP. the example in the manual (which is obviously linux biased) says: ssh2_exec($connection, '/usr/local/bin/php -i'); i have tried the windows equivalent: ssh2_exec($connection, 'c:\php\php.exe c:\some_file.php'); .... along with many other variations, but nothing seems...
1
1,528
thread by: Rhugga | last post Jul 23 '05 by: Sadara
I want to construct a URL as follows: <A href="/somewhere.php?epoch=38129301">Link</A> Is this possible w/o using forms? I am unable to use $epoch in somewhere.php Thx, CC
7
12,462
thread by: Monty | last post Jul 23 '05 by: Tim Van Wassenhove
I've written a simple e-newsletter app using the PHP mail() command. I want to be able to deal with bounce-backs if a member's email is no longer working or is using an old account. I'm using a Red Hat Linux server with Sendmail and Apache. I've seen mention of using Procmail or filtering mail to a certain account through a PHP script, but,...
1
1,399
thread by: webguynow | last post Jul 22 '05 by: webguynow
My Dynamic variables print out, same as strings but aren't the same. They are not correct when using them as DB.connection vars. I was using my own routine, that read in string values from a config file, that had entries like host=localhost etc, etc. After reading, I used explode with "=" as a separator,... then finally created some...
2
1,681
thread by: juglesh | last post Jul 22 '05 by: juglesh
howdy, I am using this code library thing: http://sourceforge.net/projects/php-csl/ http://www.php-csl.com/snippets/ and had an idea. I was thinking about keeping a bunch of functions in the root dir of my server, so I can re-use my code from any of my websites without having to copy each func or code into the current site that i’m...
1
3,257
thread by: steve | last post Jul 22 '05 by: Janwillem Borleffs
Hi, I have a set of passwords encrypted using perl’s crypt, from a perl forum being migrated to php. I like to bring them into php, and use them without changing them. How do I emulate perl’s crypt function. I found a pear module here: http://pear.php.net/package/Crypt_CBC/docs/0.3/Crypt/Crypt_CBC.html but it seems to only take one...
10
1,665
thread by: lkrubner | last post Jul 22 '05 by: JimL
I killed last night and a good chunk of today trying to figure out this one particular attempt to get a class and initialize it. My code is using a class method called getObject to include() a file and then initialize the class in that file (one class per file, each file has the same name as the class). This code has been working fine for 8...
0
1,128
thread by: lkrubner | last post Jul 22 '05 by: lkrubner
At the top of one class I declare a security object: var $securityObject = null; In the constructor, I initialize a bunch of member objects. Because I've had trouble with the security object, I also test to make sure it has been initialized: function IntfCommands() {
2
1,518
thread by: Florent Clairambault | last post Jul 22 '05 by: Florent Clairambault
Hello, I need a server to send an other some information, like to create an other database. I would like to send something like that : <?xml ?> <insert table="the_table"> <row> <row_id>4</row_id>
0
402
thread by: Riccardo Natali | last post Jul 22 '05 by: Riccardo Natali
For a PHP 4/5 programmer write to riccardo_DOT_natali_AT_poste_DOT_it Last work www.leonardo.it
2
18,583
thread by: Michael Strorm | last post Jul 22 '05 by: Michael Strorm
Hi, I'm using PHP 4.3.9 with Apache 2.0, and keep getting the error " PHP Fatal error: Call to undefined function: domxml_open_file() in /var/www/html/php/domtest.php on line 8" (from the Apache error log). Here's the page itself:-
5
1,535
thread by: otiteca | last post Jul 22 '05 by: NC
Hi, Is there anyway to share a variable between many web users ? I've got an array, updated by users's actions. i do want this same array be available to all web users in their sessions. This without putting the content of the array in DB or file. I can not use shmop or sysvsem
0
1,244
thread by: Chris | last post Jul 22 '05 by: Chris
We are looking for a highly experienced and extremely good PHP programmer to work on our PHP driven site. You will also need knowledge of XML and Mod Rewrite, CSS and javascript. We are UK based but are willing to try outsourcing. We can give you fulltime for at the very least a month or part-time (depending on hours and workrate). Our...
7
1,456
thread by: Konrad Viltersten | last post Jul 22 '05 by: JDS
I have a project that resulted eventually in a few tousands of HTML-files on the following form. file name: F1717.HTML ---------------------------- <html> .... <h1>Text to the F1717-object</h1> <img src = "../images/img1717.gif"> <embed src="../movies/f1717.mov">

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.