473,543 Members | 2,001 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.
24
1,593
thread by: cplxphil | last post Aug 18 '08 by: Michael Fesser
Hi, Does anyone know if it's possible to post to a page without using a form? For example, if I want to pass a variable to another page without using a cookie, is there a way to pass it using post? Thank you, Phil
24
2,471
thread by: RJ_32 | last post Sep 2 '08 by: I V
When there is no rDNS record on an IP address, then it might take a while for the reverse lookup to timeout. I'm thinking of how on a tracert you can observe the delay. If so, then calling gethostbyaddr() can delay the serving of the web page, right? Because gethostbyaddr() is not forked into a separate process. So I suppose I'd need to...
24
2,619
thread by: psycho007 | last post Nov 8 '08 by: psycho007
I was wondering if somebody could help me. this is driving me crazy. I am trying to send an array from a mysql_fetch_assoc result from table total_orders to table orders_complete. I have the following code: <?php include("config.php");$sql = "SELECT item, cost FROM orders_total";$result = mysql_query($sql) or die(mysql_error()); while($row...
24
24,783
thread by: tokcy | last post May 11 '13 by: Dormilich
Hi everyone, I want to connect two different database server using php/mysql. Suppose i have some dat on www.xyz.com and i want to select that data on www.abc.com How do i integrate two different database server please some body tell me... Thanks in advance
25
2,649
thread by: Rob Tweed | last post Jul 17 '05 by: Justin Wyer
Two inter-related questions: If I'm in PHP page a.php, and I want to switch control to page b.php, the only mechanism I've come across is to use header('Location: someURL") ; This has two drawbacks - it seems inefficient to me - you essentially have to "bounce" a request/response off the browser to switch between PHP pages - leaving and...
25
2,941
thread by: Justin Koivisto | last post Jul 17 '05 by: Leythos
http://story.news.yahoo.com/news?tmpl=story&cid=74&e=8&u=/cmp/22103407 OK, for those of you that actually know me... $regexp='I told (you|them) to (disable ActiveX|(stop using (IE|IIS))) long ago.'; -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions,
25
6,443
thread by: Dynamo | last post Jul 17 '05 by: John Dunlop
Hi The following script was taken from John Coggeshall's (PHP consultant) in his article on Zends site at http://www.zend.com/zend/spotlight/ev12apr.php // Get the email address to validate $email = $_POST // Use John Coggeshalls script to validate the email address if(!eregi("^+(\.+)*@+(\.+)*(\.{2,3})$", $email) { echo "The e-mail was...
25
837
thread by: J.A. | last post Jul 17 '05 by: J.A.
Hi, I'm new with PHP I want to create a page to redirect links, for example: http://www.php.net/link.php?link_id=2005 ....and be redirect to a URL, from my databse (MySQL), like it follow: http://www.php.net/pro/beta/etc/etc/index.php I have this, but did not work, what can I do?
25
1,903
thread by: evanescent.lurker | last post Jul 17 '05 by: Geoff Berrow
Hi there, I was wondering is there a point in optimization in code style... I have used to put parenthesis around some php keywords, but they are not needed. For example, I always use: echo( "String..." ); but I could use echo "String...";
25
3,965
thread by: Dave Turner | last post Aug 20 '05 by: Chung Leong
I know that its impossible to completely prevent somebody from ripping a site (or cracking software) if that person has the skills and the time/patience, but there are tricks that can be employed in software which slow crackers down, from things like self-decrypting code to anti-debug tricks, and most people have a breaking point - if you can...
25
2,384
thread by: PRESENT321 | last post Sep 19 '05 by: Default User
I just wanted to get some advice. I've had a few years experience in web site design and server-side programming and am fairly confident in my skills. There is a local Credit Union wanting to add a few features to their site (bill pay, transfer money between banks) and I am interested in the job. However, I've never worked for a bank...
25
2,470
thread by: wd | last post Mar 1 '06 by: wd
I want my server to send a 404 header if a URL with a query string is requested. So if a browser or spider requests something like www. my_site .com?p=chair they would get a 404... But if they request www. my_site .com/chair.htm everything would be normal.
25
2,216
thread by: frizzle | last post Feb 12 '06 by: Jim Michaels
Hi there, I have a mySQL system with a news publishing part in it: Admins can create new items with text in it, and they have an option to create 'fulltexts', so you'd get "read more ..." on the front page, click it and read the fulltext. Is there a possibility for mySQL (query) to check if 'fulltext' is empty or not, and only return...
25
2,535
thread by: Colin McKinnon | last post May 15 '06 by: C.
Hi all, There's lots of DB abstraction layers out there, but a quick look around them hasn't turned up anything which seems to met my requirements. Before I go off and write one I thought I'd ask here if anyone knows of such a beast... I want some code where I present an array of data, and the corresponding primary key and let the code...
25
5,297
thread by: Wim Cossement | last post Sep 8 '06 by: Wim Cossement
Hello, I was wondering if there are a few good pages and/or examples on how to process form data correctly for putting it in a MySQL DB. Since I'm not used to using PHP a lot, I already found out that addslashes() can be used escape some characters, but I'm having some more problems with for instance ä, å and µ (since the text is...
25
3,296
thread by: crescent_au | last post Nov 2 '06 by: Jerry Stuckle
Hi all, I've written a login/logout code. It does what it's supposed to do but the problem is when I logout and press browser's back button (in Firefox), I get to the last login page. In IE, when I press back button, I get to the page that says "Page has Expired" but Firefox does not do this. I think it's something to do with sessions...
25
1,998
thread by: Marcel | last post Nov 13 '06 by: mannerboy
I have a person class adn i want to derive an object of that class on one page and pass that object to a next page but that does not work for me and i do not understand why. Here is de code: class.person.php ----------------------------------- class person {
25
1,975
thread by: Tom | last post Jan 5 '07 by: Mladen Gogala
I need to convert an integer to a unique code string consisting only of capital letters and numbers. I also need to be able to convert it back to an integer again. Example: 10 =DFG56JKG4 =10 How do I accomplish that? Googling has not helped.
25
2,410
thread by: Jonno | last post Apr 29 '07 by: Vince Morgan
Hi I am having a problem with session vars being propagated between pages on this site: http://www.meettheancestors.com/sessiontest/index.php If you enter any user id and password and click Log In (no actual validation is performed), and then move around the other pages and/or keep refreshing the pages it will eventually display something...
25
3,086
thread by: Jon Slaughter | last post Apr 30 '07 by: Jerry Stuckle
I have some code that loads up some php/html files and does a few things to them and ultimately returns an html file with some php code in it. I then pass that file onto the user by using echo. Of course then the file doesn't get seen by the user. Is there any command that essentially executes the code and then echo's it? something that...
25
2,295
thread by: blessblessbless | last post May 12 '07 by: -Lost
Hello friends, I am trying to find something that must exist. I am in Thailand right now and Internet is not very available in the place I'm staying. Is there a program that can emulate a server, apache, mysql without me having to set up a server on my laptop. I would imagine it to be like an archive where I just import the files I want...
25
2,520
thread by: Piotr Nowak | last post Aug 24 '07 by: Jerry Stuckle
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e. every 5 seconds, i just want to refresh it ONLY on server change just like desktop applications do. The problem is that refreshing evry n seconds has...
25
4,111
thread by: Gilles Ganault | last post Nov 15 '07 by: Steve
Hello I've been googling for a couple of hours, but still haven't found what I need: - really simple PHP-based image gallery software. Ideally, just a single file that I just drop into a directory filled with JPG files - uses eg. GD to generate thumbnails automagically, and saves them into a sub-directory for the next time (I don't want...
25
2,854
thread by: william.hooper | last post Nov 4 '07 by: william.hooper
here is my form: <html> <head></head> <body> <FORM ACTION="code.php" method="post"> <INPUT TYPE=SUBMIT NAME="arty.jpg" VALUE="Action"> </FORM>
25
2,371
thread by: chazzy69 | last post Jul 10 '08 by: chazzy69
is it possible to send information without having to use a php form i.e. say the information that you would put in the form is made as a sort of message that can be posted automatically without waiting for user input?? Note: this is not related to any other post by me Thanks in advance, any help is appreciated

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.