473,543 Members | 2,771 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.
3
7,594
thread by: Seagull Manager | last post Jul 16 '05 by: R. Rajesh Jeba Anbiah
Running Apache 1.3, PHP 4.3, and WinXP, configured acc. to instructions on apache manual and php manual (as far as I can see), but getting "internal server error" in browser... log says "Premature end of script headers" for my simple test scripts PHP runs fine from the command line, incidentally I tried changing the doc_root in php.ini...
3
1,821
thread by: Bartosz Wegrzyn | last post Jul 16 '05 by: Matthew Vickers
Please look at the code and if you can find my mistake. Please tell me why customerid is saved with wrong value the workorder table Instead of the correct value I get '0" When I try to display the $customerid value before the querry I have the correct value for example 1 but even that in the database I still have 0.
4
66,874
thread by: Keiron Waites | last post Jul 16 '05 by: Keiron Waites
I get the following error: Notice: Array to string conversion in C:\Documents and Settings\ShepMode\Desktop\Websites\ShareMonkey.net\Web\join.php on line 11 in this code: $input = array(array("First Name",$_POST),array("Surname"=>$_POST),array("Compan
7
2,425
thread by: J J | last post Jul 16 '05 by: James
Hi, I would like some help on the following problem please if anyone can help me. I have two datasets as follows: * Carers * Clients Each client needs X amount of hours to be looked after and each carer can afford Y amount of hours to give their services. So each Client is
0
2,854
thread by: James | last post Jul 16 '05 by: James
Hi, I have the following code: <PRE> <?php $username = "####t"; $password = "####"; $hostname = "####"; mysql_connect($hostname, $username, $password) or die("Unable to connect to
0
1,941
thread by: Giobibo | last post Jul 16 '05 by: Giobibo
I have in writte a simpy .htacces file with the only line: ErrorDocument 404 /my404.php thus if type in the address line of my browser a missing page like: notexistpage.html I get correctly my404.php as error page, but if I type in the address bar of the browser the page:
2
29,470
thread by: BluaP | last post Jul 16 '05 by: Shawn Wilson
given an url (through a form) like http://www.com.com/sdsfewa/asadasd/asdasdas www.nl.sd/sdfsf/sdfds.xml weblog.lastpak.nl/index.php?id=sdfsd http://testing.stupid.com i want to have only the domain (in this case www.com.com, www.nl.sd, weblog.lastpak.nl and testing.stupid.com),so stripping of the http://
0
1,673
thread by: Maurits Veldhuyzen van Zanten | last post Jul 16 '05 by: Maurits Veldhuyzen van Zanten
Hello, I have a problem here, i'm try'n to make a static picture with in it a random quote. so far i have found a script that can make a pictrure from a quote, but i want the quote oppon the picture here's the script so far...
0
1,723
thread by: Michal Zajaczkowski | last post Jul 16 '05 by: Michal Zajaczkowski
Hello I have installed php 4.3.3 and Zend Optimizer2.1.0b on debian woody. I added to my php.ini lines: zend_optimizer.optimization_level=7 zend_extension="/usr/local/Zend/lib/ZendOptimizer.so" (there is library for php 4.3.x) but phpinf() still don't display "with Zend Optimizer ..." info What is the problem? Anyone has a sugestion? ...
2
2,413
thread by: Georg Gerber | last post Jul 16 '05 by: Georg Gerber
Hallo, im Oktal, Dezimal bzw. Hexadezimal-System kann ich Werte wie folge zuweisen: zahl = 17; // Dezimal-System zahl = 0x11; // Hexadezimal-System zahl = 021; // Oktal-System Wie geht das im Dualsystem ? Gibt es da auch irgendein Kuerzel ?
3
2,257
thread by: The Plankmeister | last post Jul 16 '05 by: Tony Marston
Hi... I'm getting to grips with custom error handling, and am wondering if it is possible to somehow reset all the content already sent to the browser, and send some new stuff in its place. For example, if I'm looping through a database, and I've already written 10 records to the browser, and then an error occurs, is it possible to send a...
2
8,692
thread by: Andreas Emmert | last post Jul 16 '05 by: Andreas Emmert
Hi there, I'm trying to import a csv file into my MySQL database. Unfortunately the number format for the price column is formatted in German style, i.e. XX,XX (decimals separated by comma not by dot). When importing this file using LOAD DATA LOCAL INFILE the decimals are cut off. I'm using column type FLOAT for the price column in my...
1
2,208
thread by: Marcus | last post Jul 16 '05 by: Gordon Burditt
Hi all, I've been reading as much as I can on this matter but I still am not totally clear on what I need to do, so here goes... sorry if the question isn't totally PHP related, but my entire project is coded in PHP so I figured this would be as good a place as any to ask. If I have two PHP scripts, both protected by SSL, and the second...
1
2,162
thread by: James Jiao | last post Jul 16 '05 by: James Jiao
Hi all I am having a little trouble uploading files (html form with post) with php... I am trying to copy the file from its temporary upload directory to the destination directory, however, the server threw this msg at me... what does it mean? and how do I circumvent it?
0
1,876
thread by: Al Kolff | last post Jul 16 '05 by: Al Kolff
Don't know if this is new news, old news or no news. Every time I tried to email with my php/mysql combo I would receive a email back from the system administrator with about 5 of the addresses listed with a message like this: 550 not local host <hostname>, not a gateway Tried all the php fixes, ISP technical support, checked for port 25...
1
2,382
thread by: entoone | last post Jul 16 '05 by: Andy Hassall
I know how to use the order by, but wondered if there is an order of precedence in using it. Facts: hcounty is a county that someone puts in a home county in which they live. In the comments they are also allowed to put text, that might contain a county listing also. I want to have the results put the records that have hcounty matches...
3
3,549
thread by: Janek Lünstedt | last post Jul 16 '05 by: Andreas Paasch
Hallo, ich habe hier ein Intranet welches auch von ausserhalb verfügbar ist. Ich möchte jetzt auf der Startseite die User von intern (192.168.59.0) auf eine bestimmte Seite und die User von extern auf eine andere Seite leiten. Wie geht das? Vielen Dank im voraus für die Antworten.
1
2,216
thread by: The Plankmeister | last post Jul 16 '05 by: Gerhard Fiedler
Hi... I'm writing a website builder. There are two 'halves' of it, codewise: The admin pages and the public pages. I intend to use sessions to hold information about validated users (to modify page content you'll have to provide a valid user/pass) to control access to certain files. Or possibly functions.... I'm writing a class for each...
5
45,365
thread by: Ricki Susic | last post Jul 16 '05 by: Ricki Susic
Hi, Is there a function in php that makes it possible to limit the output of a text-string; meaning only print the first e.g. 20 characters of the string? Ricki
1
1,967
thread by: bruno storz | last post Jul 16 '05 by: bruno storz
Hallo! Ich möchte per PHP eine MySql Abfrage in eine XML Datei speichern. Wer hat schon Erfahrungen mit einer Klasse gemacht, die diese Speicherung übernimmt? Was muss ich besonders beachten? Gruss Bruno
2
5,279
thread by: Cergon | last post Jul 16 '05 by: Cergon
hi, i hope someone can help. Im pretty new to this php stuff and i have a slight problem. I have this script (shown below) which writes data to a text file which is then displayed on my front page. Trouble is after moving to an apache server with php on a windows platform the script no longer works. It worked fine on the unix platform. All it...
1
1,654
thread by: Ricki Susic | last post Jul 16 '05 by: Ricki Susic
Hi ( and I'm sorry in advance ), I have looked in php.net but I can't figure out how it's done. I want to show a list of the three latest inserted posts in a mysql-table. The list is meant to be an apertizer and the users have to click on it to see the whole output from the DB. How do I make the link to open that exact post? Here is what...
4
7,521
thread by: Ralph Freshour | last post Jul 16 '05 by: Matthew Vickers
I'm uploading a file to the server - I check the $_FIILES variable to check for exceeding a certain limit (250KB in this case) _ I notice that when I try to upload files of 500KB or 900KB holds the value and I can check it - however, if I try to upload a 2300KB file is 0 - does anyone know what might be causing this? Why doesn't that large...
0
1,935
thread by: The Plankmeister | last post Jul 16 '05 by: The Plankmeister
Hi (again) I'm purposely generating an SQL error to test my aforementioned custom error handling function, but I encounter a strange problem. The error string generated by my forced error is: SQL error: Too few parameters. Expected 1., SQL state 07001 in SQLExecDirect Which is exactly what I expect. However, even if in my function I...
3
14,745
thread by: Randell D. | last post Jul 16 '05 by: nylz
Folks, If I have a number that includes decimal points and I want to remove everything right of the decimal, how do I do it - I know I could explode using the point as a delimiter but that doesn't look legal. I've tried $t=1.532; $y=int($t);

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.