473,545 Members | 2,057 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
26,012
thread by: Felix Rabinovich | last post Jul 17 '05 by: Robert Downes
is there a function in PHP to get a message popup on the web page? Couldn't find any (or missed it) in the docs; so I am now putting "echo <script> alert(whatever)</script>" whic feels really strange... there go to be a better solution... Thx Felix
3
26,007
thread by: Ken Loomis | last post Jan 20 '07 by: Kenneth Downs
Hello: How can I append a new key-value pair to an associative array? Thanks, Ken
11
26,003
thread by: Konrad Den Ende | last post Jul 17 '05 by: Alan Little
I'd like to take a look at PHP but the problem is that this far, i've used Java because it doesn't require anything else from the server it's downloaded from (if compiled as an Applet, of course). How is it with PHP? Will i have to nag on the administrators of the server where my website is to install anything? -- Kindly
2
26,002
thread by: Westcoast Sheri | last post Jul 17 '05 by: Gary L. Burnore
Any way to do a simple delete from array? In other words, what would be the *easiest* (and fastest php runtime) way to delete "banana" from the following array: $my_array = array( "apple", "banana", "grape", "lime"
1
25,965
thread by: Chuck Beck | last post Nov 27 '10 by: Curtis Mattoon
I am creating a database-driven Web page to display member information for an organization to which I belong. I want to allow members to edit/modify most of the information for their individual profiles. I have the basic MySQL database and PHP Members page created and working the way I want. What I want to do is add an option for each member...
4
25,913
thread by: Robert Zierhofer | last post Jul 17 '05 by: Andy Hassall
hi there, it seems as if i can´t convert the euro and pound sign to their html equivalents. i tried eregi_replace("€", "&euro;", $haystack); eregi_replace("£", "&pound;", $haystack); as well as
3
25,898
thread by: rojavenkat81 | last post Feb 18 '07 by: irfanmcsd
Hi All, Please help me regarding php program for convert video file to .flv file. I searched in many sites but i got only tool to convert video file to .flv file.But I want convert video file to .flv file by using PHP code. Thanks RojaVenkat
3
25,884
thread by: news | last post Sep 27 '06 by: Johnny
After installing phpMyAdmin on my Fedora Core 4 box, (Apache 2.0.54, PHP 5.0.4) we're getting this error: "The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results." The phpinfo() has no...
2
25,818
thread by: Steven | last post Jul 16 '05 by: Jason
Hi All, I am moving some php code from a Linux machine to a Windows 2000 machine with the code belowe I get the following error : Notice: Undefined offset: 1 in c:\inetpub\wwwroot\test.php on line 5 1) reset($kolom1); 2) while(list($cat,$lnk) = each($kolom1)){ 3) kop($cat);
2
25,804
thread by: JuliouZ | last post May 14 '07 by: Mladen Gogala
Warning: ocilogon() : OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /web/htdocs/test.php on line 6 Oracle Connect Error my file test.php : <?php PutEnv("ORACLE_SID=TEST"); PutEnv("ORACLE_HOME=/oracle/ora102");...
10
25,718
exoskeleton
thread by: exoskeleton | last post Feb 5 '09 by: JSusi
hi dear experts, hope you can help about checking the folder size,for example how many kilobytes is it already in PHP script...is it possible? please help..thank you
7
25,704
thread by: Vincent Delporte | last post Jan 4 '07 by: Vincent Delporte
Hello I'm interested in hearing reflections by seasoned web app developpers about the different ways to write PHP apps, and especially how they compare in terms of performance, whether it's the PHP part or connections to MySQL. As far as I know, there are different ways to write a PHP application: - CGI, ie. the usual way : some PHP code...
1
25,614
thread by: csj | last post Feb 21 '06 by: Michael Austin
I'm having a problem with my PHP script. When the user arrives on my page there is an item for sale for them to buy. The user already has 200 points stored in their database row. I want it work so that when the user clicks on the "buy" button(only then) an mysql query is executed to update there points. I thought of using an "if (isset...
10
25,611
thread by: Ben Xia | last post Oct 18 '05 by: JamesB
Is there some way can detect MAC address with PHP? any help will be appreciate. Ben
5
25,606
Thekid
thread by: Thekid | last post Mar 27 '09 by: Markus
Hi, I'm using xampplite and I'm trying to make a guestbook and a forms page where you can post to the guestbook with PHP & MySQL. I got the code from a website but it wasn't working so I tinkered with it a little and it's closer but not quite right. I made a database named 'guestbook' with a table named 'visitors'. In it are the following fields:...
26
25,576
thread by: webrod | last post May 19 '07 by: Ambush Commander
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any idea? Thanks you very much
2
25,566
thread by: Scott Castillo | last post Jul 17 '05 by: Scott Castillo
I can't seem to find the PHP error log file on a Windows system. Does anybody know where it is? Thanks for the help.
3
25,561
thread by: phpgeek79 | last post Nov 14 '07 by: phpgeek79
Hi, I created a scripts that will hold an array with a values came from database. My total rows have reached up to more than 50 thousands of records. So my array length have reached that size. The problem is when am trying to get the last value of this array, it returns me a null value or empty. Can somebody tell me if there is a maximum limit...
4
25,544
thread by: pablo | last post Jul 17 '05 by: pablo
Dear News Groupers, I'am trying to send a php array with a hidden input field from a form to another script. The array is NOT made directly by way of <input name="arrayname" />. The array is made by normal php code and then submitted between form-tags as echo "<input type='hidden' name=\"arrayname\" value=\"$arrayname\" />" ;
2
25,532
thread by: vizard | last post Apr 4 '08 by: vizard
Hi All, Im new to PHP. In the script I've written, i have the following line: if($coursesTaught->empId == $record- // do something } when the if condition executes, i get the foll message: Notice: Trying to get property of non-object in C:\Program Files\Apache Group \Apache2\htdocs\ENGR_COURSES\updateCoursesTaught.php on line 33
3
25,525
thread by: Mario Groleau | last post Jul 17 '05 by: 2metre
Hello, I is probably a trivial question, but I didn't find the answer. In a PHP 4 script, How to get the url of the page that called the script? Thank you very much in advance if you know the answer.
8
25,424
thread by: Jamie Meyers | last post Jul 17 '05 by: Jamie Meyers
Does anyone know how to import a .sql dump file into a mysql database using php. I know how to do it using commandline, mysql < test.sql, but I am writing an install script, and was wondering if it is possible to do it this way. If not, do you know of any parser that will do all the importing/table creation the .sql file defines? Any...
7
25,418
thread by: Dawsons | last post Feb 21 '06 by: Iván Sánchez Ortega
So i sit here thinking, and wondering... say for example i have a variable called $definition_london Say for exaple that has not set value... Is it possible to echoe thew ACTUAL variable name into a document, rather than the variables information? Thanks for yout time, look forward to all replies :)
2
25,365
thread by: Kees S. | last post Jul 17 '05 by: Kees S.
I have a for-loop to add items to an array, but when i use a for loop to print these items, iI only get the last item of the array. This is a simplified example of what i do, what is wrong with it: for ($i=0;$i<10;$i++) { $test=array($i=>$i); } for ($t=0;$t<10;$t++)
4
25,347
thread by: DQ | last post Mar 29 '06 by: DQ
I just signed up for a web hosting service. They have PHP, but can't tell me which modules (extensions) are installed. Is there a function, or some other easy way, to show all modules (extensions) that are installed? phpinfo() doesn't do this.

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.