473,544 Members | 1,946 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
16,870
thread by: omar999 | last post Sep 7 '13 by: Luuk
i have a form with several inputs and corresponding buttons. The input name attribute and button id are both the same. i.e <form method="post" action="update.html"> <input type="text" name="title"> <button id="title">Submit</button> <input type="text" name="metaKeywords"> <button id="metaKeywords">Submit</button>
13
16,869
thread by: silmana | last post Aug 30 '19 by: aqibk
hi again, i am done with the login form everything works fine so i just want to know how to make the welcomein.php private?? i am working on a community so you would know what i mean could some one give me a simpel script that i can develope to better. so pliz give me the script for that and the script for how to make a password encrypted in the...
5
16,867
thread by: mikefuss | last post Oct 5 '10 by: bnvnv
I'm having trouble getting my PHP code to upload videos. I have a page that uploads Images, which uploads to a table called Photos and everything works fine. I tried modifying that code to upload videos to a table called Videos, but I don't see the files in the folder that I assigned it to. There are no errors when I upload the file, and the...
2
16,838
thread by: ras | last post Jul 17 '05 by: Kafooey
Hi, I've the following piece of code use window.location to open a new window an pas them some paramenter. I'd like to open the new windows in a frame using a javascript. how can I do that. Pls. help. <input class="nxtbutton" type="button" id="NXT_FormLink" value="<?php echo $KT_language;?>"
5
16,828
thread by: joelbyrd | last post Apr 29 '06 by: khoa.tran
Didn't know exactly where to post this, but: How do I get line breaks in a textarea? I'm pulling text from a database, and this text definately has line breaks in it, because I replaced all the line breaks with <br /> tags ( using the php function nl2br() ), and <br /> tags showed up in the textarea.
45
16,816
thread by: Market Mutant | last post Jul 17 '05 by: Charlton Wilbur
I just wonder job selections, job openings and salary level of PHP programer or Perl programmer comparing to Java programmers. Is Java programmer's salary has a minimal of 60K in US? Are there many PHP jobs?
5
16,804
thread by: Daniel | last post Jul 17 '05 by: Daniel
Hi, From what I read from the PHP manual, chmod on a Windows platform should have no effect, and that seems totally normal (unless someone on sourceforge has a windows port of that!). I create a directory on my Windows box, and set chmod 777 on it (that should be full access for everyone if my memory serves me correctly), but when I...
10
16,800
thread by: kumuda v | last post Aug 30 '07 by: Atli
Hi all, How to convert a php variable into the javascript variable. I need this because i want to display the content of php variable in the textbox of html field. With regards
4
16,797
thread by: ben | last post Nov 1 '05 by: Ciaran
Hi all, I have a simple PHP page that takes values from a form and puts them in a database (MySQL). The code is in a file test.php, which I have typed in at the bottom of this post (please excuse any typos). This page is not a production page - I created it just to try and solve the £ sign problem I am having. When I put the pound sign...
7
16,794
thread by: jonathan.kleid | last post Jul 17 '05 by: jonathan.kleid
I'm trying to figure out how to enable chunked encoding with php over apache2 for a particular page. My php/apache combination definitely supports chunked encoding, because a page which calls only phpinfo() uses it. On the other hand, pages without phpinfo() don't get sent with chunked encoding (content-length is used instead). Does anyone...
7
16,794
thread by: kip1790 | last post Feb 13 '10 by: Atli
I created an existing sample that writes input text to a background image no problem. See here. I attempted to use a font using Imagettftext () following the steps outlined here, however I can't get the function to create the image using the font I specified. This is the code I added to the working page above: $font = 'arial.ttf';...
2
16,772
thread by: webmechanic | last post Jun 8 '06 by: lorento
I was able to insert images into mysql stored as binary data. How do I retrieve it. Please provide thorough explanation. Thanks.
6
16,753
thread by: Benjamin | last post Sep 29 '06 by: Benjamin
Hello, I'm running PHP 5.2.0 as a Apache 2.2 server module. When, I try to unlink I get this: "Warning: unlink(file.txt) : Permission denied..." What and how do I change this so it works? Thanks
6
16,720
thread by: sip3 | last post Jul 5 '19 by: nsr7
Hi all, i'm a new user of PHP, at the moment, i have queries regarding the "Resource id #4" everythings run perfectly but before the script showing the result, it shows the "Resource id #4" in front of the result, and i don't have any clue what happend with it. Could someone please help me with it.
2
16,715
thread by: deko | last post Jul 17 '05 by: deko
I need to populate a file with past unix time stamps over a period of time specified by the user. The time stamps should be evenly spaced, based on user-defined parameters. My question is: How do I add an element to an array, then increment it and loop so that each element builds on the previous element just added? Here's a first crack...
3
16,705
thread by: hsmsites | last post Sep 12 '06 by: hsmsites
Anyone know how I can remove this symbol from a string. I'm using vi and do not know how to refer to this symbol in my script. TIA
4
16,696
thread by: meltedown | last post Apr 3 '06 by: Kimmo Laine
I can't see what I'm doing wrong. I'm subtracting 60*60*24 from a unix time stamp and the result is 23 hours earlier, not 24. Start with a unix time stamp: $unixtime=1144018006; convert it to a date: $date=getdate($unixtime); date Array (
5
16,685
thread by: Robertcode | last post Oct 10 '06 by: .:[ ikciu ]:.
Hey all, I'm trying to create a custom stats script for my site, I'm new to php and I'm just wondering is there a way to tell what link someone clicked to leave my site? So if I've got links to section a, section b, section c, google, yahoo, msn and someone clicks on google I can record that. Thanks for your time.
6
16,676
thread by: warner | last post Jul 14 '22 by: Willjoe
Hi, I want to remove one element from array so i'm using unset function but it also remove that index number. I want to re-index after removing array. is there any solution?
4
16,668
thread by: Maurice | last post Jul 17 '05 by: gortonc
Hi there, I'm experiencing big memory problems on my webserver. First on an old RedHat 7.2 system, now on an other fresh installed Suse 8.2 system: Linux version 2.4.20-4GB (root@Pentium.suse.de) (gcc version 3.3 20030226 (prerelease) (SuSE Linux)) #1 Wed Aug 6 18:26:21 UTC 2003 Apache 1.3.27-41 PHP 4.3.1-52 MySQL 3.23.55-20
5
16,660
thread by: Mariano López | last post Jul 16 '05 by: Zurab Davitiani
I'm trying to make a multilanguage website. When the user enters the site, I want to detect the language and automatically make a redirection. How can I do this? And how should I organize my data base so the user can switch languages easily? Thanks.
8
16,653
thread by: Bruno Barros | last post Sep 30 '07 by: Michael Fesser
Hey there. I'm currently working on an intranet, and would like to know how I can get the windows usernames of the visitors. You can get their IP with $_SERVER; But what about their Windows Username? Is there any way of doing so? Through the Intranet?
7
16,642
thread by: phpnewbie26 | last post Jun 30 '09 by: phpnewbie26
I'm not sure what this error means and was wondering if anyone knew what the problem is and how it can be fixed. This error comes out multiple times but each time the number is different. Warning: fclose(): 15 is not a valid stream resource in /mnt/raid/www/intra/admin/ts2/test2.php on line 174 Warning: fclose(): 20 is not a valid stream...
6
16,631
thread by: AMcD | last post Jul 17 '05 by: Michael Fuhr
Hi! Here's a piece of code: <?php Header('Content-type: image/png');
2
16,630
thread by: ernie.bornheimer | last post Mar 18 '07 by: ernie.bornheimer
Hello My phpinfo page says: PHP Version 4.4.4-pl4-gentoo but on the PHP website, there's only documentation for versions 4.0, 4.1, and 5. Is there a version 4.4? What am I missing? Thank you! Ernie

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.