473,788 Members | 2,784 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.
2
6,992
thread by: upendrajpr | last post Dec 20 '07 by: Rob
Hello friends, I am using the function of how to get client IP from my website but it always give me the server ip not any client who send me the info.. function getIP() { $ip; if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP");
2
4,745
thread by: benoypaul | last post Dec 20 '07 by: Ranjan kumar Barik
Hi, I have created a site with admin pages. I wish to expire this php admin page , if it is idle in 10 minutes. Is there is any method to implement this using session variables in php? Thanks in advance Benoy
1
1,670
thread by: Silencet | last post Dec 20 '07 by: Ranjan kumar Barik
Hey everyone, I've been looking, but can't find away to, have a php script redirect to another url with POST data, like form, to it.
1
1,582
thread by: doc1355 | last post Dec 20 '07 by: stepterr
I have a feeling that this is an easy question. However I'm a newbee and don't have any idea how to do this. I have three tables that stores my users information. Each user has a unique ID that is same in all three tables and is the way that connects the data for the user. Table1 has userid and useremail Table2 has userid and status Table3...
35
3,105
thread by: crazy8 | last post Dec 20 '07 by: pbmods
Ok it seems there was some problems last time I posted (sorry about that guys) so Ill give it another shot. I am creating a form which is 3 pages long (step1.php, step2.php, and step3.php) then after all the forms are filled out I need to display all the data on a "final.php" page so the visitor can double check their input for errors and if any...
5
2,495
thread by: goodguyjam | last post Dec 19 '07 by: goodguyjam
Hi I'm trying to apply user authentication with HTTP on my site but i get the above error. Can anyone say whats wrong?? I cant figure it out. Here's my code below: <?php /* Program: Auth.php * Desc: Program that prompts for a user name and * password from the user using HTTP authentication. * The program then tests...
7
1,606
thread by: Rozzy | last post Dec 19 '07 by: Steve
Hi, I need some recommendations for uploading files to the server. Right now I have a php script that uses ftp to upload, download, and delete files, and everything works fine for small files. However, the original purpose for this script was to be able to upload large files (100 - 200 MB). The problem is that the request times out. Now I'm...
4
10,915
thread by: bizt | last post Dec 19 '07 by: C. (http://symcbean.blogspot.com/)
Hi, Im looking for a regular expression to check that a entered filename is valid. I have a cms Im building where the user can enter the name of a file, enter content and then click Save where the file is created on the server. I need a regular expression to validate the filename entered prior to this. I have looked on google where i found...
3
3,111
thread by: Gordon | last post Dec 19 '07 by: Steve
I am currently working on some code for my CMS that creates a site folder, then creates all the necessary child folders inside it. The method that creates folders needs to insert into 2 tables so it wraps the operation in a transaction. (psuedocode below) public function createItem ($parent) { $this -database -beginTransaction (); $this...
3
6,476
thread by: ctrap | last post Dec 19 '07 by: code green
Hi Everyone, Here's my situation: I'm making a website for an employment agency, there is a page where potential employees can visit and "pre-register". When the submit button is hit the information is supposed to be stored in a MySQL database. Number one, when I hit submit nothing happens. I have to manually execute the PHP script. When...
1
2,012
thread by: impostor | last post Dec 19 '07 by: code green
I have a query that works fine with single state selections but I need to be able to query based on multiple state selections in a multiple select list and populate the second textarea on the same page with the according emails. The states are chosen and the joined emails should be returned. The query I currently have is: "SELECT DISTINCT...
0
2,065
thread by: JoeT | last post Dec 19 '07 by: JoeT
Hi... OK...I'm having difficulty understanding a problem with installing Zend Studio 5.5 on an Intel Mac. Prior to the install, I had the zend /library installed, and was able to successfully run Zend_Db commands against a local mysql server (5.1) from the commandline (e.g. php testdb.php). This stuff ran just fine. The code is simply:
4
5,390
thread by: Chimanrao | last post Dec 19 '07 by: Steve
I am getting a connection refused error for the following piece of code $errno = 0; $errstr= "testt"; fsockopen("www.google.com", 80, $errno, $errstr, 300); echo $errno; echo $errstr; what could be the reason?
2
3,047
thread by: Richard | last post Dec 19 '07 by: Richard
Hello all, I am looking into issues with time-outs on a website. These appear to happen in a random way for some users. This is one example: Fatal error: Maximum execution time of 60 seconds exceeded in auth.php on line 5 auth.php contains:
1
1,623
thread by: bizt | last post Dec 19 '07 by: Rik Wasmus
Hi, I am trying to register session variables in the following way: $_SESSION = 'Burnsy'; When i set them and then output the following on the same script: echo $_SESSION
1
1,871
thread by: n3wb13 | last post Dec 19 '07 by: MarkoKlacar
<? header("Content-type: image/jpeg"); $im = @imagecreatefromjpeg("test.jpg"); $im1 = @imagecreatefromjpeg("test1.jpg"); if (!$im) $im = imagecreatetruecolor(150, 30); $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); imagestring($im, 1, 5, 5, "Error...
1
4,029
thread by: deshg | last post Dec 19 '07 by: MarkoKlacar
Hey everyone how are you all doing? I am trying to use the imagerotate GD function to place an image on top of another image at an angle. Obviously when it rotates an image it creates a rectangular image big enough to fit the angled image inside with the background colour of this defined in the third arg of imagerotate. The problem i'm having...
2
1,939
thread by: Amzul | last post Dec 19 '07 by: tromton
hello all i have a problam inserting french accent chars into my table i post similer qustion in mysql forum so far no reply, i have a list of words in franch (i dont even know what they mean) some of the words have xc3xa9 writen instead of é i am not sure in what charset xc3xa9 is, what i would like to know so i can resolve this...
1
1,081
thread by: allanr | last post Dec 18 '07 by: allanr
Hello everyone. I am loading a text file into a MySQL table on my local machine. I am using the code below. The process stops at approx 70,000 records and does not finish. But, there is no error - no "something went wrong" or error in the mysql log. If I run the file for 50,000 records then run the file again, the table will have the full...
1
1,066
thread by: RedEye88 | last post Dec 18 '07 by: Markus
I am kind of new to PHP and hosting, and have a small concern. Where I work, we have an existing server with very low traffic, but nearly everything served on the page is powered by PHP. I am looking to create some new tools on our server, but I am afraid that putting too many PHP scripts on one server might mess things up, or overload it. ...
1
1,296
thread by: vituko | last post Dec 18 '07 by: vituko
Hi, I have another problem migrating to php5. An important piece of my "web kernel" is a system of include / require throw exceptions : Instead of : require $x I do : trigger_error ('INC_'.$x...) Error_handler : ... $this = $errcontext ; //Error!!!!!
3
1,805
thread by: boris | last post Dec 18 '07 by: Umberto Salsi
Hi. If somebody can help out with this design question, thank you very much. Suppose I have a global constant, like an images directory. This constant will be referenced from multiple classes. How do I define this constant only once while using OOP? I could define the constant on one of the classes and then reference it with ClassName::const...
4
1,840
thread by: mukeshrasm | last post Dec 18 '07 by: brettl
<?php // create new document pdf_new(); $pdf = pdf_new(); pdf_open_file($pdf); pdf_begin_page($pdf, 500, 700); // define a font $font = pdf_findfont($pdf, "Courier", "host", 0);
0
2,008
thread by: www.douglassdavis.com | last post Dec 18 '07 by: www.douglassdavis.com
According to this page: http://support.microsoft.com/kb/269190 "There are two possible ways to modify the unicodePwd attribute. The first is similar to a normal "user change password" operation. In this case, the modify request must contain both a delete and an add operation. The delete operation must contain the current password with...
2
1,445
Ajm113
thread by: Ajm113 | last post Dec 18 '07 by: Ajm113
Ok, I have a page that writes the results that are shown and I would like to count them then return the number wich would be stored in a variable to the top of the page. So it can show how many results it retrived. Then showing at the bottom which would not help the user that much if their was a thousand results. Example of a code that does not...

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.