473,544 Members | 1,944 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
2,615
thread by: fartsniff | last post Jul 16 '05 by: fartsniff
hello all, this is continued from a previous post. i am still stuck, and really could use some help. basically, via a form, search words are submitted, i.e. "apple". it then searches through the contents of the index_file and sees if a match is found. if you searched for "apple orange", then a match for index1.html (listed below) would be...
2
30,784
thread by: Randell D. | last post Jul 16 '05 by: Joshua Ghiloni
Folks, At the begining of my html I have a PHP insert which should be called when the user submits the form that the html contains... I found when the HTML is called fresh (ie not processing a form) that if(isset($_POST)) { print("<br>true"); }
0
2,115
thread by: David Walker | last post Jul 16 '05 by: David Walker
Hi I'm using a server which only has GD version 1.6.2, with jpeg support enabled. I'm trying to use it to make thumbnails of jpeg photos as they are uploaded from a webform, but moving from my development server (which has GD 2.x) to the real server I noticed the lower GD lib version, and that it doesn't support imagecreatetruecolor. ...
6
7,195
thread by: Chewy509 | last post Jul 16 '05 by: Agelmar
Hi Everyone, I'll just start, and say I am not a PHP developer (I'm a sysadmin, who has gotten lumped with a non-working website). But since I like to do this type of stuff, I though I might just learn WTF is going on? :) Basically, sessions are being created, but no info in being stored in the session, and if data is stored (about 1 in...
1
1,721
thread by: Alexander Ross | last post Jul 16 '05 by: Jochen Daum
I've made several sites using PHP but they generally didn't have any exciting layout to worry about. I've also made plenty of static sites using Dreamweaver and complicated layout tables. Now I'm making a PHP site with a complex layout tables and graphics going on, so I need some opinions on stratagy: How do you (and I realize this is...
2
27,638
thread by: Phillip Wu | last post Jul 16 '05 by: Tony Marston
Hi, I saw a previous post about sending arrays but did not quite understand the answers. The problem is that I would like to pass an entire array as a hidden input field from one php script to another. I've simplified the code where form1.php calls form2.php when "Go" is hit: form1.php
2
3,932
thread by: Ralph Freshour | last post Jul 16 '05 by: Jochen Daum
I want to write a listbox sized to 8 rows - I want to show summaries in this listbox and when an item is selected, below I want to show the details of the summary - I can trap a javascript event for the listbox but can I put PHP code into the javascript event? I need to grab the details out of a MySQL database using PHP - so basically I'm...
2
2,715
thread by: Matt Schroeder | last post Jul 16 '05 by: Jochen Daum
Can anyone tell me about passwords? What I plan to do is write a username and a password into a mySQL table. How do I encrpyt the password? And after it's written, how can I match a password submitted in a form to it, because the password in the form would be unencrypted? Any help is appreciated! Matt
1
1,918
thread by: RC | last post Jul 16 '05 by: Jochen Daum
Hi, somebody know how is possible to open a popup on clients browser that are visiting my page? I need to open a popup within a message into browser of xxx client that is on xxx page. Like a proactive invitation of many livechat Thanx Ciao
2
4,377
thread by: lawrence | last post Jul 16 '05 by: Phil Roberts
Can't seem to get the cookies I want sent. Refreshing a page resends all the cookies, yes? The HTML in this function should be sufficient, yes? function userCounterPage() { global $cookies; extract($config=getConfig()); $self = $self."?pageEventMiddle=userCounterPage&renderPageCancel=true";
1
2,013
thread by: lem | last post Jul 16 '05 by: Andy Hassall
When I use ora_xxx functions to connect to oracle 7 and fetch data from it, the English character is pretty good,but the Chinese character all turn to be '?'. what about this problem ? Is there any advices for this trouble ? Thanks very much!
3
3,559
thread by: JimC | last post Jul 16 '05 by: JimC
Here's an interesting problem - On one of my pages, I have a place where a user can download a ZIP file by clicking on the phrase "Click to download". I want to call a logging function that I use to show that the file was downloaded. The file being downloaded is called file1.zip. What I now do is the following: <a href=...
4
1,581
thread by: Jerz | last post Jul 16 '05 by: CC Zona
I have a php file which include() 's a file with variables, and a file with functions. so: <? include("../data/common.inc") ?> <? include("../data/functions.inc") ?> if in the php file i then call a function from the functions file, the function doesn't see what values the variables in common.inc are, although
4
5,751
thread by: Frank | last post Jul 16 '05 by: Tony Marston
Can I store this PHP code in another page, then refernece it on multiple pages using Require or Include ??? //results from sql query for ($i=0; $i<$number; $i++) { $ID = mysql_result($result,$i,"ID"); $CompanyName = mysql_result($result,$i,"1"); $ContactName = mysql_result($result,$i,"2"); $Phone = mysql_result($result,$i,"3");...
3
11,323
thread by: Josep | last post Jul 16 '05 by: TC Office Assisstant
Hi, I'd like to poll a database and get the table contents, as well as the field names from that table. I've been to php.net but this time I cannot find something helpful. I can get the data, and retrieve it into an array noproblem. I can get the data+fieldnames and put it into a list.
12
3,535
thread by: Xeon | last post Jul 16 '05 by: Terence
Hi, Is there anyway to set a custom error handler which is actually a method of a class? i.e. setting the method eh() of class foo as error handler in the snippet below. class foo { function eh() { do something } }
1
2,011
thread by: William Ashworth | last post Jul 16 '05 by: Shawn Wilson
I have this glossary that was setup and I want to modify a bit. Here's how... ############################## printf($getWordArray); echo "</b></dt><dd>"; printf($getWordArray); echo "</dd><br>"; } ##############################
0
3,082
thread by: Patrick | last post Jul 16 '05 by: Patrick
Hi there, i wanna use the imagemagick functions via the php-extension php_imagick.dll I am using WinXP, PHP 4.3.2, Apache 2.47 After installing and trying out several versions of imagemagick, i am now going on with 5.5.7Q16. Whatever Version i use, php tells me following error: The procedure-entry-point "DrawSetFontSize" was not found in...
2
2,345
thread by: Xizor | last post Jul 16 '05 by: Jason Cutting
Ok, I'm new to PHP and MySQL. I've been going through tutorials, reading the documentation, and looking through web sites. PHP to me seems great! With MySQL it seems even better. However, I'm an experienced C++ programmer. This has allowed me to see many potential areas where the security of a server can be compromised through loopholes in...
0
1,884
thread by: Xizor | last post Jul 16 '05 by: Xizor
Question: I know that when magic_quotes_gpc = On it will addslashes to post, get, and cookie data, but what about session data ($_SESSION)? Does it also at slashes to it? Does session data fall under the cookies category if you are using sessions with cookies? Thanks.
3
2,089
thread by: octopi | last post Jul 16 '05 by: André Nęss
Hello, I am writing a custom server(www), and I need to use php. Right now I have it set up to just envoke php on the command line if the requested document ends in .php. I assumed that all i would have to do is set the QUERY_STRING environment varible for php to be able to use 'GET' data. But it doesn't set anything. Does anyone know...
9
2,978
thread by: Xizor | last post Jul 16 '05 by: Tony Marston
Let's say I run a server. I have two people using the server. Bill and Joe. Bill is at address.com/bill and Joe is at address.com/joe. Let's say Joe and Bill are both using PHP with sessions on their web pages. Let's say they both create the session variable $_SESSION. Each uses yo for a different purpose. Now we have a user accessing...
0
3,010
thread by: lok | last post Jul 16 '05 by: lok
hi all, i have installed oracle9i client tools on RedHat7.3 (x86 machine) and i compiled php4.1.2 & apache1.3 successfully but when i execute php script in browser, error occured: "Fatal error: Call to undefined function: ocilogon()" i found no oci8.so in the whole system. i think this is the reason why the error occured
3
10,060
thread by: Agah Orhan Dikmen | last post Jul 16 '05 by: Metnetsky
Hi folks, I want to know if I can make my tomcat available for PHP scripts, so I can both run Servlet/JSP and PHP scripts in the same server ;) Thx all,
0
1,941
thread by: Paul Woodward | last post Jul 16 '05 by: Paul Woodward
I have a medium sized ecommerce website which I have written using PHP and MySQL and I have a number of include files with some of them being included by all pages of the site and a few only included as and when required. I was wondering if I could compile all my include files into one large include and then include them from all pages or is...

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.