473,772 Members | 3,786 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.
5
1,362
thread by: Alec | last post Aug 31 '05 by: JDS
Help.. Just learning php/mysql from a book and have put together a test page as below. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
6
1,568
thread by: Alec | last post Aug 31 '05 by: Alec
Newbie question. I have a database for displaying the names of bed and breakfasts searched for by the town they are in as below. <?php $result = @mysql_query ("SELECT name FROM site01_details WHERE town='$townsearch' AND code='sleep'"); while ($row = mysql_fetch_array($result))
4
8,731
thread by: jp.delatorre | last post Aug 31 '05 by: dem0o8
how to create script that modify xml file sample xml file: <root> <parent name="a" id="1"> <child name="a.a" id="1.1" /> <child name="a.b" id="1.2" /> <child name="a.c" id="1.3" /> </parent>
1
1,974
thread by: Colin McKinnon | last post Aug 31 '05 by: R. Rajesh Jeba Anbiah
Hi all, I'm wondering if anyone can recommend a PHP documentor which *works* phpXref-0.4.1 - can't cope with more than one class defn per file phpdoctor-2.0.0RC1 - can only document code from a single directory phpdoc1beta (http://www.phpdoc.de) - requires the source code to be rewritten to configure, only seems to cope with a...
2
1,251
thread by: Mark | last post Aug 31 '05 by: Mark
After submitting form data to a page called procform.php, I want to be able to see a list or array of all the inputs that were submitted from the form. I scoured the PHP books I own and did some google searches, but found nothing in this regard. I know I can use $myformvar in procform.php if I know the form had an input like this: <input...
5
1,978
thread by: Chris | last post Aug 31 '05 by: Chris
Bonjour, Plusieurs fichiers PHP d'un programme open source de compteur de visites viennent de se faire hacker sur mon serveur (hébergement mutualisé chez un fournisseur d'accès). Le hacker a déposé un code permettant visiblement de passer un script en argument tout en signant son passage (rory). Je voulais savoir quel était la meilleure...
0
1,295
thread by: jean marc | last post Aug 31 '05 by: jean marc
Hello I am trying to reduce a truecolor image to a palette one. imagetruecolortopalette() works just fine, except, that I would like to keep a few color unchanged. like a (255,0,0) red, a (255,255,255) white .... and so on. My truecolors images are somewhat greenish, with only a tiny bit of red or white, so when I use...
1
2,349
thread by: Epetruk | last post Aug 30 '05 by: WombatBoy
Hi, I'm having to modify a PHP script even though I have little knowledge of PHP itself. The script extracts specific strings from an html file, and I need to it extract some further information. Specifically, each file represents an article written by an author. The author's name is typically preceded by a 'By' or a 'by', then it goes on...
2
2,475
thread by: greatbooksclassics | last post Aug 30 '05 by: Captain Ranger McCoy
Open Source DRM? What does everyone think about it? Will Open Source DRM ever catch up to MS DRM? Will DRM ever be integrated into common LAMP applications? (LAMP=Linux/Apache/MYSQL/PHP/Perl/Python/Ruby) Here's Sun's latest initiative in Open Source DRM: DReaM: Royalty-Free, Open Source DRM
2
1,112
thread by: kevinm3574 | last post Aug 30 '05 by: kevinm3574
Got the following to pop a download dialogue: $p = explode('.', $file); $pc = count($p); //send headers if(($pc > 1) AND isset($mimetype])) { //display file inside browser header("Content-type: " . $mimetype] . "\n");
3
1,260
thread by: Bob Bedford | last post Aug 30 '05 by: Andy Hassall
I've no access to mysql NG, so I ask here. I've a strange behaviour with mysql. when I do a select from a simple table, then I get a result for a certain field when I then put a "union" and create a query that return no result, I get an other result for that field. All other fields seems ok. the field's type are different (one is a...
10
2,387
thread by: I_love_php | last post Aug 30 '05 by: Malcolm Dew-Jones
What is the best way to send one email to 9000 users without them getting it in Junk mail ? Please help me with ur ideas
3
2,447
thread by: Marcus | last post Aug 30 '05 by: Bert Melis
Hello all, I have written numerous functions that check all user entered data on my site via POST and GET. My question is this: once my data checks out as being valid, I sometimes store it in SESSION as I move between pages, and eventually use the values in SESSION to update my database. Do I need to re-check the values in SESSION to make...
7
35,904
thread by: Mindy Geac | last post Aug 30 '05 by: juglesh
Is it possible to delete special caracters from a string and multiple spaces? When the input is : "a&*bbb cc/c d!d" I want the result : "abbb ccc dd" thnx. MJ <?php
1
3,814
thread by: GluedToTheScreen | last post Aug 30 '05 by: Appletalk
I have a small PHP ecommerce site set up using Authorize.net's SIM (simple) interface. Working fine, but... I'd like to implement their AIM interface (so visitor's will never see the gateway's URL). I found a script that does this but requires cURL... and my hosting provider doesn't support it. Here is the snippet of the code that uses...
0
1,505
thread by: Ben Xia | last post Aug 30 '05 by: Ben Xia
Looks like this is a common issue: If you installed linux Fedora 3 with the default configuration and latest patches, you will have Apache/2.0.53 (Fedora) and PHP 4.3.11 in your box. Without any change you can use sendmail, that means you can use mail under Terminal, but probably you can not use mail() in php. The error message in...
2
1,159
thread by: eagger | last post Aug 30 '05 by: dd
Hi, I'm trying to get some more inside info on how exactly exceptions get handled inside PHP. Exception handling is not supported in C which is the language of the PHP engine (true/false?) so.... Any info would be appreciated Thanks..
2
3,092
thread by: Sandman | last post Aug 30 '05 by: Sandman
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing this by aggregating new content from all databases into a single indexed database and then saving a timestamp in the account database (for the...
0
1,246
thread by: B.r.K.o.N.j.A. | last post Aug 30 '05 by: B.r.K.o.N.j.A.
I'm looking for php5 + postgresql 7.3 or higher shared hosting, I also need any kind of versioning system installed. Hosting must be located in europe and must have telephone support. The key here is quality, uptime and support. Price is not very important. Do you have any suggestions? Google didn't reveal much. Can you point me to some...
1
1,399
thread by: supline | last post Aug 30 '05 by: Marcin Dobrucki
I have a function that creates a select list: function make_select_ns($name,$array,$persist){ $string = "<select name=\"$name\">"; $string .="<option selected>" . ucfirst($name) . "</option>\n"; if ($name == $array){array_shift($array);} //removes duplicate when table name equals 1st item in array foreach ($array AS $value) { if (($value...
1
1,192
thread by: lwoods | last post Aug 30 '05 by: Obvious
I ran the following code:
1
1,853
thread by: Sunny Shah | last post Aug 30 '05 by: ZeldorBlat
hello php programmers & friends, i want to limit the size of my folder. is there any code in php or other language to check the size n limit it or display warning msg. please guide me. regards, sunny
0
1,017
thread by: Ben Allen | last post Aug 30 '05 by: Ben Allen
Hi, This maybe off-topic as it is mainly SQL, but I thought I would ask here as I have had many helpful replies from here in the past and also the query is being run from a php script (although examples here are from where I was testing it in phpMyAdmin) I'm using a piece of software called 'phpcoin' along with the popular 'IPN' mod. I am...
5
2,886
thread by: ZMAN | last post Aug 30 '05 by: !body
Hello. Are there any examples you can point me to for coding PHP to talk to verisign. My install is not configured with any support for it. I'd rather not have to re-configure. Thanks in advance
5
3,823
thread by: The Geek | last post Aug 30 '05 by: R. Rajesh Jeba Anbiah
Does anyone know of any program that will execute PHP scripts on your local machine? I'm learning PHP and I don't like having to upload scripts to my ISPs web space before testing them. Any help will be appreciated. --- The Geek

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.