473,543 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Latest Bytes Forum

Support forums for various IT topics. Programming languages, databases, systems, applications and more. Subscribe to a community, participate, ask, share your expertise and network.
 
2
2,332
thread by: Keiron Waites | last post Jul 16 '05 by: Alex Farran
Hi, I include the following function: <?php function login($members_only) { if (isset($_COOKIE)) { $login = explode("|split|",$_COOKIE); $login = array("username"=>$login,"password"=>$login); }
1
7,651
thread by: Keiron Waites | last post Jul 16 '05 by: David Mackenzie
Can you use PHP with Tomcat?
6
6,557
thread by: Ruben van Engelenburg | last post Jul 16 '05 by: Michael W. Cocke
Hi all, I have a strange problem. I have a login procedure that uses a mysql database in which the users are stored. The login procedure is pretty straightforward. In every page I unclude my session.php. session.php: =============
1
1,738
thread by: John Danol | last post Jul 16 '05 by: Janwillem Borleffs
How can i check if subdomain exists? DNS or what? And how ? thx
3
13,434
thread by: The Plankmeister | last post Jul 16 '05 by: Alex Farran
Is it better coding practice to do this: $wibble = (bool)true; $wobble = (int)108; or just this: $wibble = true; $wobble = 108;
9
2,694
thread by: william c | last post Jul 16 '05 by: Michael W. Cocke
I don't really know PHP that well. I'm fixing a Perl program that accesses a db after getting form input from a PHP page. If the server-side validation fails I'd like to reload the form with all the user's info still filled in. I could embed the entire page in the Perl program but it seems like there must be a better way to go. Is there a...
1
2,226
thread by: vKp | last post Jul 16 '05 by: MegaZone
Is there a current copy of the PHP manual available with user comments? I can't seem to spot one on the doc page.
4
3,953
thread by: Richard White | last post Jul 16 '05 by: Richard White
I'm developing a web site, which I test first on my PC (http://localhost/...) and then upload to the web site on the internet when ok. I have a little bit of PHP code (in file download.php) which I use to force the Save dialogue when I want the user to download a PDF file. The hyperlink looks like:- ...
1
1,724
thread by: Robert | last post Jul 16 '05 by: Andy Hassall
Im trying to send a variable via GET to a php script like so: <a href="process.php?id=test & test">Link</a> Leaving spaces is no problem, but the & symbol (ampersand) cannot be displayed to the screen. I want it to show "test & test". Instead it displays just "test" without the rest following it. Can anyone tell me how to display the...
8
2,828
thread by: Michel | last post Jul 16 '05 by: Michel
What free programs, where to download and how to install and start programming a dynamic website that enables visitors to log in, lookup and write data in/from a serversite database. So how can I write and test it without internet on a win98se pentium? thanks
2
2,453
thread by: \(a\) | last post Jul 16 '05 by: \(a\)
I've got a cgi script that allows me to add the output of a php script to an html page using the following line of code. #insert : http://www.url.com/sript.php# What I'm wondering is if someone could write me a couple of lines of code for script.php that would randomly select one line of information from a text file called text.txt. ...
3
2,857
thread by: Stijn Goris | last post Jul 16 '05 by: Gary Petersen
hi all, Trying to get those cookies to work but they wont... Doing this. Have a page login.php wich tests the user and pass. If they are correct a cookie is set with one variable like this: setcookie ("cookieUser", $user); then the browser is sent with header("Location: spelersPage.php"); to another page. I there try to read the...
0
4,971
thread by: Jaffa | last post Jul 16 '05 by: Jaffa
hi all, i'm currently designing a search engine. I'd like certain keywords to have affiliated synonyms listed so that I can find out which keywords are symantically related to each other. Is there a thesaurus available that I can install on the server and query via php, or possibly a server on the net that takes web-queries and returns...
2
4,419
thread by: Stijn Goris | last post Jul 16 '05 by: Alex Farran
Hi all, I have a question regarding the header function. I send a browser to a certain page (eg first.php ) wich sends no output to the browser. This page sends the browser to another page (eg second.php) with the header("Location:") function. second.php doesn't either send any output to the browser. The browser is then send to another page...
1
1,858
thread by: Mark Hanford | last post Jul 16 '05 by: Kurt Milligan
The Why: I'm in the process of creating a Linux+Apache+PHP website with a public area and an admin area for configuration and updates. The What: One of the features of the admin area is image-upload, where the images are subsequently viewably by the general public. Currently I've created a dedicated "pictures" directory which...
3
6,483
thread by: RG | last post Jul 16 '05 by: Kurt Milligan
Hopefully someone here can help. I would like to perform multiple queries to a MySQL database and have all the results in 1 result set. Is this possible? TIA RG
4
4,725
thread by: Alexander Gilman Carver | last post Jul 16 '05 by: Alexander Gilman Carver
I have written a pair of scripts that are supposed to work together to display an index of files and then, upon the user choosing the files (with checkboxes on an HTML form submitted to itself), tar/gzip the file and send it to them. To this end the first script performs an exec() call and generates the archive (it's a random number but...
1
2,732
thread by: Oliver Spiesshofer | last post Jul 16 '05 by: Martin Wickman
Hi, how would I make a script that pics a random file from a tree? Is there something like this existing? I need one that can handle many files on a large tree. thanks Oliver
5
68,803
thread by: Randell D. | last post Jul 16 '05 by: Daniel Hansen
Folks, I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally choose ImageMagick because I've heard so much about it. I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3 that I compiled...
5
16,499
thread by: Daniel Hansen | last post Jul 16 '05 by: Daniel Hansen
I am getting a "Fatal error: Call to undefined function: imagecreatefromjpeg() in..." error in one of my scripts, and after doing a bit of searching on the 'net I found various messages relating to a failure to have the GD library installed. However, my phpinfo() reports (in the Apache GD section): GD Support enabled GD Version bundled...
1
2,832
thread by: Daniel Kończyk | last post Jul 16 '05 by: CC Zona
I can't fing a way, to match any characters except the phrase 'foo'. Using + matches any character except a, b or c, but I need to not match 'foo', because f is ok, o is ok, but foo - 3 letters at once not Any clue? Thanks -- Daniel Kończyk
2
6,962
thread by: Bob | last post Jul 16 '05 by: Eto Demerzel
Hi, I have a website in a Linux/Apache shared hosting environment and have been given access to the MySQL server running on the same machine. To access this database from PHP, I have to call mysql_connect(host, user, password) where the password is hardcoded into my PHP source file in clear text. I see two security problems with this:
1
4,797
thread by: Weston C | last post Jul 16 '05 by: Weston C
I'm new to the GD/Image functions with PHP, and I'm trying to use them to manipulate jpeg images that I've stored in a MySQL database (specifically, creating thumbnails). The thing I can't tell from reading the documentation is how to use these image functions to operate on image data -- it looks like you get a GD image resource in each case...
2
2,249
thread by: mark.richards | last post Jul 16 '05 by: mark.richards
At first I thought this error had to do with a timeout problem, but now I am almost certain it has direct bearing on the size of the data that I am posting. I am using a simple form: <?php $contents = "a bunch of text"; ?> <form enctype='multipart/form-data'
1
2,032
thread by: Scott Brown | last post Jul 16 '05 by: BKDotCom
Hello, I want to write a script that will display a table with a number of rows the user wants. Example, I go to a page and need 30 rows, I press submit and 30 rows are made. I was thinking of a FOR EACH statement, but those examples are for arrays. Any ideas? Scott n7seb@softhome. net

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.