473,608 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Latest Bytes Forum

Support forums for various IT topics. Programming languages, databases, systems, applications and more. Subscribe to a community, participate, ask, share your expertise and network.
 
1
1,690
thread by: Yang Li Ke | last post Jul 16 '05 by: Tom Thackrey
Hi, Id like to add 20 minutes to this : $today = date("Y/m/d, H:i:s"); anyone can help ? thanx a lot :)
1
20,607
thread by: Stefan | last post Jul 16 '05 by: Stefan
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir = "c:/php/extensions/" But I am still getting the error that it can't find the php_mhash.dll though I can see that it is indeed in the folder.
1
7,692
thread by: yawnmoth | last post Jul 16 '05 by: MeerKat
i'm trying to write a php script that will password protect some random directory by creating a .htaccess file, and a password file to accompany the .htaccess file, and it isn't working... specifically, i can't enter the newly created directory with a username of test, and a password of test, which is what i am trying to do. also, i'm...
2
1,803
thread by: Bruce W...1 | last post Jul 16 '05 by: Ian Pawson
Can anyone recommend a free PHP IDE for Windows 2000? There seem to be a number of them.
3
5,742
thread by: Gerhard Buergmann | last post Jul 16 '05 by: Vijay
Sometimes my mail() function returns FALSE, but there is no error message. Error reporting is set to E_ALL. It seems to be a problem of the bcc: line. I use: $headers .= "Bcc: aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc\n"; I currently have approx. 30 addresses in the line. Are there any limits?
7
1,997
thread by: point | last post Jul 16 '05 by: point
I need some help with regulars... how can I check if $var contains only "----" (minus) no metter how many?? Thanx... point
5
2,565
thread by: Sandman | last post Jul 16 '05 by: Dalibor Karlovic
Hello I have been trying to wrap my head arouns this, but I can't seem to get it to work the way I want it to. Could someone helpful please tell me how I get this: <function> <name>array_push</name> <examples> <example> <name>A way to do it</name>
4
2,005
thread by: John Ramsden | last post Jul 16 '05 by: Martin Lucas-Smith
I maintain various specs and FAQs in manually edited HTML documents, and I'd very much like some simple way of automatic section numbering as in 2.1, 2.1.1, 2.1.2, 2.2 etc, with table of contents generation plugged into the start of the document so that each section can be accessed via a link (and also maybe automatic footnote numbering). ...
3
3,203
thread by: Rod | last post Jul 16 '05 by: Ian.H [dS]
Hi, I have a script that download any file to the user according to the parameters. I call the script like this: download.php?file=xxx/myfile.doc&file_short=myfile.doc My script is working fine except with N4.7 It opens the download box, but the name is download.php instead of myfile.doc
0
1,601
thread by: Martin | last post Jul 16 '05 by: Martin
Hi, Does anybody have experience with compiling php with java support on Mac OS X? I called './configure --with-java' and then 'sudo make install'. Problem is, compiling stops with an error message, because it can't find some files necessary for java. I know that you can call configure with the option
4
7,687
thread by: Ziggi | last post Jul 16 '05 by: Justin Koivisto
Hi. Is it possible to use PHP code within a javascript funtion? For example, is the following allowed... foo( <?php $_SERVER ?>); function foo { ... does something with string } Thanks in advance.
3
2,098
thread by: williamc | last post Jul 16 '05 by: Lothar Scholz
My first impulse was to turn it off. But maybe I'm wrong. Or is it one of those 6 of one half a dozen of the other things? From what I'm seeing on a search it might improve performance slightly but with some s/w there are security issues... (We have register_globals turned off). General working env. is mySql, but might switch to PostGres...
4
2,133
thread by: Cal Lidderdale | last post Jul 16 '05 by: Tom Thackrey
PHP doesn't have ENUM and I'm inputting the date 14-SEP-2003 and I want to "insert into atable values ('2003-09-14', .........==> mysql. Anybody have a neet trick? Tks Chuck
1
2,175
thread by: J | last post Jul 16 '05 by: Erwin Moller
Although a standalone .php page works just fine, if I embed php into an html page it doesn't work. Here's a part of what I'm trying: <body> <p>Hello World</p> <?php echo "<p>now is the time</p>"; ?> <p>Bye</p> </body> I've also tried:
4
3,345
thread by: Ralph Freshour | last post Jul 16 '05 by: Randell D.
I have some textfield that users will enter data into on my web site and then I'll use php and write it to mysql - for security purposes, is there a function or way to make sure that they only enter in alpha and numeric data? Thanks...
4
2,674
thread by: Markus Stadler | last post Jul 16 '05 by: Randell D.
How can i cut the rest of a string, when i only know that it is closed with a , ? Example: $string = "kyo wa doyoubi desu kara,xxxxxxxxx xx "; $new = cut_it_right($string); ==> $new == "kyo wa doyoubi desu kara,";
9
3,441
thread by: Martin | last post Jul 16 '05 by: Adam i Agnieszka Gasiorowski FNORD
I have a HTML parser that reads product pages from various retailers - and I want to optimize it somewhat: I download all HTML before I start the parsing - and to do that I want to: - Get rid of all HTML parts that I don't need, i.e. <head>, <title>, <javascript> etc. I'm considering using eregi_replace for this. Anyone have an example of...
1
1,756
thread by: David Schubert | last post Jul 16 '05 by: Andy Hassall
Hallo Leute, ich betreibe die Seite www.rechercheportal.de und möchte auf den ..html-Seiten PHP benutzen. Folgendes habe ich ausprobiert: 1. htaccess: habe nicht genügend Rechte, um einen neuen Typ für den Parser zu definieren 2. iframe: bin ich unsicher, ob das alle Browser unterstützen (Mozilla, Netscape..) 3. Umbenennen aller Dateien:...
2
2,227
thread by: Hong | last post Jul 16 '05 by: Andy Hassall
Hi, I am trying to create a switch but I do not know why I am geting an error message, can someone tell me what is wrong, Error Message; Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/natuk/public_html/php/order-server.php on line 2
4
3,584
thread by: Daniel | last post Jul 16 '05 by: MeerKat
Hi all, I wanted a way to (http) stream Real Audio files without the need to use ..ram files. In case there are others interested in this, the following is the solution that worked for me: <?php Header("Content-Type: audio/x-pn-realaudio"); echo "http://www.domain.com/audiofolder/track1.rm"; ?>
2
16,272
thread by: Håvard Olerud Eriksen | last post Jul 16 '05 by: Håvard Olerud Eriksen
I've been working on a webshop, and I've got most of the functionality up and running. One problem, however, that I don't seem to be able to solve is as follows. My shopping cart is stored in $_SESSION array. As I need to keep tabs on what items are ordered and their quantity I add elements like this: array_push($_SESSION,array($item =>...
7
14,060
thread by: Adam Bergman | last post Jul 16 '05 by: MeerKat
Okay, I am working on a credit card validation script, I have it working perfectly (saving the return information from the server to a variable and echoing it for now) other than this weird error on the fgets() line. I can't seem to figure out the problem, the code is below, any help is appreciated! <?php $host = "secure.authorize.net";...
3
7,453
thread by: lawrence | last post Jul 16 '05 by: lawrence
If I do something like : $result = mysql_query($query); $dbArray = dbResultIntoKeyArray($result); and this is the function: function dbResultIntoKeyArray($result) {
1
14,758
thread by: Randell D. | last post Jul 16 '05 by: MeerKat
Does mime_content_type() require anything to be pre-compiled? I'm using PHP4.3.3 with Apache 1.3.28 and the man/help page in the latest php.chm windoze file doesn't mention any pre-requisites... all help is appreciated, thanks -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad...
3
5,795
thread by: dabbler | last post Jul 16 '05 by: Michael Appelmans
I just installed php 4.3 on windows xp. It seems that new lines are ignored. The following code <?php for ($i=0; $i<10; $i++){ print "test"; } ?> outputs the word test ten times on the same line instead of on ten different lines.

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.