473,749 Members | 2,350 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.
11
2,342
thread by: Yarco | last post Sep 19 '05 by: Tomi Holger Engdahl
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
1
1,233
thread by: Rob Bresnik Mobile PC DR. | last post Sep 19 '05 by: Marcin Dobrucki
I am new to PHP and maybe someone could help...i am using an open source site to learn the language. <div id="maincol" > <div class="content"> <!-- OR files go here --> {content} </div> Obviously {content} contains the text on the body of the page...where is
0
1,195
thread by: aapo.virta | last post Sep 19 '05 by: aapo.virta
Hi, I'm looking for a script that could administer htaccess scripts for several folders. Our website has over a hundred folders which need protection, and it would just fabulous if there was a script that could make it all happen from the same front-end. The server is a Windows-server, running php5. I've searched hotscripts.com, but all...
5
1,887
thread by: John | last post Sep 19 '05 by: John
I have a problem with refresh. I have a contact form that sends an email when the submit button is pressed. I have a hidden variable and the code for emailing is only executed if the variable is set. The variable is cleared at the end of the code. All works as expected unless the REFRESH button is pressed by the user in which case the...
2
4,702
thread by: siliconmike | last post Sep 18 '05 by: siliconmike
apache error log: /var/log/httpd-error.log gets filled up with various notices such as: php notice: Use of undefined constant name - assumed 'name' in xxxxx on line 1, referer: yyyy the size of the file is 200 mb now..
5
1,986
thread by: news | last post Sep 18 '05 by: Bent Stigsen
Using php.net I got this far, and so far so good! But I can't fenagle it quite the way I need to. I'm creating an array (which I didn't know how to do before today, so a success for me *g*): $a = array(); $a = "Name"; $a = $name; $a = "Message";
0
1,350
thread by: M | last post Sep 18 '05 by: M
Hi Folks, Have loaded Debian linux, and Php5. 1. Don't know how you start and stop the server apachectl and httpd.apache don't seem to be present. 2. Added the elements to httpd.conf that I thought would need to go in there, as I would if I was doing a windows application, and that seemed to complete mess apache up.
1
5,185
thread by: Bill Godfrey | last post Sep 18 '05 by: Chris Hope
Hiya. I'm sure this question has come up on this group many times before, but I can't find any prior discussion. (Appologies if I missed it.) I have a PHP program looking a bit like this. Read a load of data over the network from node 1. Process the data. Read a load of data over the network from node 2. Process the data. ....
6
5,159
thread by: tencip | last post Sep 18 '05 by: Manuel Lemos
So, we're avoiding using sendmail for obvious security reasons on a highly secured FreeBSD box. However, we need to get mail out of that box to an SMTP relay server. So, we heard about ssmtp, which is a sendmail emulator. Well, this works great from the command line, can send emails to the relay server just fine. however, we haven't been...
9
9,605
thread by: petermichaux | last post Sep 18 '05 by: petermichaux
Hi, I am curious about how php deals with the following situation where I use an undefined index into an array. PHP seems to be behaving exactly how I want it to but I want to make sure that it is not a fluke. It seems like most programming languages would crash if you used an undefined index. Why does PHP work the way it does? My...
4
1,130
thread by: Vito | last post Sep 18 '05 by: Jerry Stuckle
Hello! Need some help troubleshooting this very infrequent problem. I have a php / mysql website - www.musiciansonly.net. I've had 3-4 website visitors tell me that they cannot see links on my search page. The strange thing is that most people are fine. I've asked about the browser that's being used, OS, etc.. and I know that I've...
14
1,234
thread by: www.douglassdavis.com | last post Sep 18 '05 by: www.douglassdavis.com
All three of the following classes give "compile-time" errors. It hinders me from doing what I want to do... And it seems there is no way around it. But, are each of these cases examples of how the language should behave? Are any of the examples a case of PHP being "incorrect?" class MyClass { static $x = 2;
4
1,664
thread by: rigga | last post Sep 18 '05 by: rigga
Hi, I am relatively new to php and am currently working on a site where I need to use a collapsing menu system. I have written the code to do this however I am completely at a loss to do one particular thing. To best explain what the problem is I will give you an overview of how the menu hangs together. The menu looks like this:
1
1,726
thread by: news | last post Sep 18 '05 by: John Dunlop
God, I have read every comment in php.net eregi and Google searched, and I have tried so many different attempts...this is the closest I've gotten to verify a variable contains only: alphanumerics, spaces, underscore, hyphen, period, apostrophe if(eregi("^+$", $value)) { return true; }
1
1,783
thread by: Adam Atlas | last post Sep 18 '05 by: John Dunlop
I seek a regular expression, pcre or ereg (it doesn't matter), which, given a quoted string (e.g. "foo" => foo) will return the contained text, but that will accommodate escaped quote characters within the string (e.g. "foo\"bar" => foo"bar). Thanks. ] Adam
2
1,218
thread by: Yannick Benoit | last post Sep 18 '05 by: John Dunlop
Hi! I use this to find all links in a page : *(href)*=*(+) but recently i found out that it only works if links are setup this way: <a href = "... I would like to know if someone can help me find the proper expression which would work with <a href = "... <a href= "... <a href="... and <a href ="...
4
7,845
thread by: Matthew Harvey | last post Sep 18 '05 by: Darkstar 3D
Hello, I am having a problem getting a custom soap header to work with PHP5. What I require is something like this: <SOAP-ENV:Header> <USER>myusername</USER> <PASSWORD>mypassword</PASSWORD> </SOAP-ENV:Header> What I get is : <SOAP-ENV:Header>
9
1,229
thread by: rjames.clarke | last post Sep 18 '05 by: Jerry Stuckle
Hi all, I am (have) wrote an intranet industrial app that requires the user to enter a number which is compared to a high and low limit. If the low or high limits have a 0 in front of the decmial the entered value must also. The actual comparison is done in javascript as pasted below. If a return true is given then the data is written...
2
3,153
thread by: James | last post Sep 18 '05 by: James
Hello everyone. I've been looking for examples on this: http://www.php.net/manual/en/functi...-appenddata.php but can't really find one. I've got a function that generates a return value in HTML, and need to append that to the body tag of my document. So I've captured the contents of the page with output buffering, and have loaded it into...
3
1,737
thread by: Andy | last post Sep 18 '05 by: Geoff Berrow
I need your help to check if my autoresponder will work in the following script. I am testing my PHP scripts on free server, which dosen't allow me to send email letters from my website. Please tell me if every thing is ok, if not please correct my mistake. Thank you for your help. This is: "contact_form.php"
3
1,603
thread by: news | last post Sep 17 '05 by: news
I'm trying to make sure a form has only one or two digits in either of two fields. I looked at php.net and http://www.regular-expressions.info/reference.html and this is what I put together, but while it successfully refuses any non-digit, it still lets any number of digits through. Any suggestions? if ((ereg("({1,2})",...
5
28,049
thread by: aa | last post Sep 17 '05 by: Jeb Hunter
I write to a text file, and when view the resulting file in Notepad, it shows "\t" as tabs correctly, but "\n" does not break the line. Instad it shows as a square. In Dreamweaver it shows OK. How do I fix Notepad?
2
3,211
thread by: bobkaku | last post Sep 17 '05 by: Oli Filth
I had a PHP script that used to successfully output to Excel 2000. I used the header statements header ('Content-type: application/vnd.ms-excel'); header ('Content-disposition: inline; filename=output.htm'); Last year I upgraded to Excel 2003, and now the output is just a table that shows up in the browser. Does anybody know what might...
8
1,589
thread by: pas805 | last post Sep 17 '05 by: pas805
I have a PHP page that I would like to run with cron but that's not the problem. My problem come when I run my script throw my browser the script runs properly but when I try to run the script using either php, lynx or wget the script starts but once the request is made the script stops running. EX.: I get a client from my database and send...
3
5,006
thread by: Junx | last post Sep 17 '05 by: Junx
Alright, I'm trying to compile PHP 5.1 with the following options: ../configure --with-openssl --with-zlib --with-bz2 --enable-bcmath --enable-calendar --enable-mbstring --with-mcrypt --with-mhash --with-mysqli --with-mysql --enable-embedded-mysqli --disable-pdo --with-pgsql --with-pspell So far I've been able to get all dependencies and...

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.