473,811 Members | 3,182 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.
1
1,282
thread by: Michael Phipps | last post Aug 10 '05 by: Michael Phipps
Hi, I've decided it's time to take PHP5 for a spin, but all the hosts I use are still only on PHP4, so I need to keep PHP4 running and operational on my dev box. My dev environment is a Windows XP Pro Machine with Apache 1.3.33 and PHP 4.4.0 I'm sure many of you have PHP4 and PHP5 running on a Windows Box with Apache
2
1,469
thread by: Martin | last post Aug 10 '05 by: Martin
I have a page with a form on it in which I have a series of input fields like so (note the sub-scripted name): <input type='text' name='rating' value='1'> <input type='text' name='rating' value='2'> <input type='text' name='rating' value='3'> How do I retrieve the submitted values in a PHP script? For example, just trying to echo the...
2
2,485
thread by: steve | last post Aug 10 '05 by: Geoff Muldoon
I'm trying to create a PHP script to send mail to a list of addresses. I'm sending mail okay, because the messages arrive in an account that I can check, but messages to a known bad address aren't being bounced back to the sending address. Here's the line of code I'm using: $mailok = mail("me@goodaddress.com,me@badaddress.com","this is a...
1
1,379
thread by: Slav | last post Aug 9 '05 by: Andy Hassall
Hi, I trying to process an XML file using a XSL but am getting a Sablotron error ("...mismatched tag") when I entered an accented letter such as "é". I tried to play around with the encoding and am currently using UTF-8. When I process my XML file using XMLSpy the ouput is fine (the é letter is properly displayed), which leads me to...
11
2,125
thread by: reciprocity85 | last post Aug 9 '05 by: Chung Leong
Hello all. I have a question about what you all get paid, and what I should expect in my situation. I googled quite a bit, but not come up with any benchmarks definite enough that I would want to approach my employer with, so I figured I would check with you, since presumably at least some of you do this for money. I have been with a...
2
3,831
thread by: Jeff | last post Aug 9 '05 by: Jeff
I created a form page with HTTP Authentication that works with a MySQL backend. In addition to a username and password, there is a 3rd field tied to each entry. For example: username: 1111 password: 2222 firstname: John So, when the user enters the u and p, the name 'John' will show up as an input value in a form that will be submitted.
3
2,417
thread by: elyob | last post Aug 9 '05 by: elyob
Hi guys, I'm playing with snoopy and am stuck on doing two calls in the same script. The second call revisits a website after getting an existing link based on the results of the first call ... If I hard code the URL, then everything is fine. It's this line that goes wrong "$newsnoopy->fetchtext($newurl);" ... If I put...
7
1,457
thread by: Minnie | last post Aug 9 '05 by: Minnie
Hi everyone, I was trying to use a script called PHPrint, but I think the reason it's not working is because I have register globals off. This decision is not under my control, and I am not really much of a programmer, so I was wondering if someone would be willing to edit the PHPrint script for me. the script can be found here:
6
2,201
thread by: Andreas Thiele | last post Aug 9 '05 by: Andreas Thiele
Hi, I'm very new to php. In my current code I'd like to bind variables to the values of a simply (only indexed by numbers http://www.php-center.de/en-html-manual/language.types.array.html]) array. Of course I noticed the function extract(), but this works on string indices. So I had the following idea: <?PHP function abind($array,...
1
1,347
thread by: Ben | last post Aug 9 '05 by: bigal
Hello all, I have googled every thing that I can think of but I can't seem to find what I'm looking for. What I need is a daily log system for system administrators. It needs to be able to support multiple groups (ie Unix Admins, DBAs, etc). It would be used by system administrators and shift teams to log events, problems, status, etc. ...
4
1,465
thread by: g0c | last post Aug 9 '05 by: g0c
hi all, i cant find php.ini in upgraded php from 4.3.7 ?!?!? where the hell is it ? the prefix is new but there is no lib directory /usr/local/php-4.4.0/
2
1,451
thread by: Alvaro G Vicario | last post Aug 9 '05 by: Alvaro G Vicario
I've created my own function for error handling using set_error_handler(). My problem is that, when using copy() to copy files, I can't suppress system's error messages. So when I'm trying to copy a file that does not exist I get two error messages: mine and system's. I've tried the @ operator with no luck: @copy(...) Apart from adding...
1
1,915
thread by: guitarromantic | last post Aug 9 '05 by: Mike Willbanks
I'm re-writing a CMS system for my site and one of the features we were very pleased with in the old *Nuke system was the Autolinks module. Basically, the table for autolinks contained this sort of data: text: BBC url: http://www.bbc.co.uk Simple stuff; every time we entered the term BBC into our news posts, it would autolink it like...
3
2,045
thread by: Martin | last post Aug 8 '05 by: Tim Van Wassenhove
Can someone please explain to me how I can check (in my PHP script) whether a user input is a number or not? I thought it would be as simple as: if(is_nan($myinputfield)){ then do something } but that doesn't seem to work. The PHP docs say that the value being passed to the is_nan function is
1
2,345
thread by: Alpinekid | last post Aug 8 '05 by: Mike Willbanks
Hi, I'm trying to compile php5 for apache2. When I try to load the php module I get an undefined symbol: _zend_list_delete error in libphp5.so. When I use objdump and look inside libphp5.so I see all the zend* functions are undefined. What did I forget to do?
1
2,147
thread by: frey | last post Aug 8 '05 by: Mike Willbanks
the code is used for repost $HTTP_POST_VARS from a form to the insert page at the "preview" page <?php /* Re-Post all POST'ed variables */ reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (!is_array($HTTP_POST_VARS)) { echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
5
1,571
thread by: p2 | last post Aug 8 '05 by: Malcolm Dew-Jones
Hi, I know how to send a file as an attachment when the file is in my file system. Now I want to send data as attachment without saving it to the filesystem first. Under UNIX shell what I do is uuencode and dump the output at the end of the 'data' part of the message.
3
8,337
thread by: lwoods | last post Aug 8 '05 by: Wayne
Why isn't my "catch" catching? TIA, Larry Woods This script get's this output:: Warning: Division by zero in C:\Inetpub\wwwroot\PHP\tests.php on line 4 This will never be printed
3
7,134
thread by: Matt | last post Aug 8 '05 by: Justin Koivisto
I have an ASP.NET service that needs to be consumed on a PHP page. I can not count on the PHP server to have SOAP. I have read some info about a REST method, but I am not really sure if this can be applicable. Help please!!!! Matt
2
1,792
thread by: mr.kuhl | last post Aug 8 '05 by: black francis
I thought I would contribute a solution for once. We have a standard SUSE LAMP (Linux Apache Mysql PHP) server running some custom apps, of which one component is dumping reports out to excel. We are running this with https and all was good for a few months. IE6 and Firefox worked fine. One day around the end of July 2005, IE6 stops...
5
1,360
thread by: Maximus | last post Aug 8 '05 by: Maximus
Does anyone know how can i send PHP mail? for example, I want to send a HTML email inside it i want to include(somefile.htm);
5
2,450
thread by: lwoods | last post Aug 8 '05 by: Marcin Dobrucki
When I execute the following script I can connect using 'mysqli_connect' but I get a "DB Error: Not Found" when I display the $db->Message() after attempting the DB::Connect. And, "yes", the "restaurant" database does exist. Where should I start looking? PHP 5.0.4 / mySQL 4.1.13-nt / IIS / XP Pro
1
1,822
thread by: JAKE | last post Aug 8 '05 by: Alvaro G Vicario
Hi, I made a funstion that checks a mail account, retrieves and stores the attachments in a folder on my website. This works great for .doc files but not for .pdf files.
1
1,158
thread by: Aidan | last post Aug 8 '05 by: Aidan
Is complaining about 'lag spaikes' when using his P2P apps. Wants someone to give him a call back.
8
6,191
thread by: bettina | last post Aug 7 '05 by: Malcolm Dew-Jones
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted. For Example <form name="search_form" method="post" action="search.php"> ..... .... Code: <input type="text" name="code" onKeyPress="if (event.keyCode == 13)...

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.