473,544 Members | 2,340 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.
 
4
23,978
thread by: Ralph Freshour | last post Jul 16 '05 by: Matthias Esken
I've been looking thru my PHP functions and can't find what I need - is there a function that will tell me what .php file is currently executing? Thanks...
3
2,160
thread by: Adams-Blake Co. | last post Jul 16 '05 by: Matthias Esken
I know that having register_globals=ON is a security risk and we have it OFF. We want to use the GeekLog content manager and it only works with ON. Can someone give us some coding tips on how to mitigate any possible security problems if we turn it on? I know it has to do with a querystring that is same as a variable name being sent in the...
0
1,718
thread by: Jason Sobell | last post Jul 16 '05 by: Jason Sobell
Hi, I'm trying to return the inner XML from a DOM element, but I can't find any methods that allow this. For example, if I have a string: <TEXT>Here is a string with <B>bold</B> text in it</TEXT> then I want to return the enclosed string _including_ the <B> tags: "Here is a string with <B>bold</B> text in it" Using get_content strips out...
2
2,455
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. ...
2
2,778
thread by: Sylvain Perreault | last post Jul 16 '05 by: Alex Farran
Hi! I have a problem... I did a PHP Script for a counter... and I want the counter to be displayed on an another PHP page... So, I can include it like that: <?
5
7,180
thread by: point | last post Jul 16 '05 by: Iky
Anyone knows of a good and easy program or script which generates doc file from a phpdoc style comments???? PhpEdit has something like that but I need a standalone one... respect....
4
18,887
thread by: Laurel Thomason | last post Jun 24 '06 by: igtoth
I'm lazily looking for a simple app that will let us match up teachers, classes, and instructors, preferably with a php/mysql infrastructure so that it's accessible via the web. If there is a single good repository of free scripts that would be useful as well. Laurel
0
1,748
thread by: Freddy | last post Jul 16 '05 by: Freddy
I am using the script as below, but there is a problem, in Netscape, and Mozilla Firebird, a .php is added to the filename when the user is prompted to save, it's ok in Internet Explorer and Opera though: $filename="/home/myUserName/filename.exe"; header("Content-Disposition: attachment; filename=filename.exe"); header("Content-Type:...
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); }
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
7,651
thread by: Keiron Waites | last post Jul 16 '05 by: David Mackenzie
Can you use PHP with Tomcat?
5
16,503
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...
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:- ...
0
719
thread by: Gerhard Buergmann | last post Jul 16 '05 by: Gerhard Buergmann
Sometimes my mail() function returns FALSE, but there is no error message. Error reporting is set to E_ALL. It seems to be a problem of the bcc: line. I use: $headers .= "Bcc: aaaa@aaa.aa,bbbb@bbb.bb,cccc@ccc.cc\n"; I currently have approx. 30 addresses in the line. Are there any limits?
0
1,490
thread by: FredBriand | last post Jul 16 '05 by: FredBriand
Hi, anyone knows where I could find a binary distribution of the ClibPDF extension for PHP 4.3.3 and windows XP? I don't have any C or CPP compiler on that pc. thanks for your help fred
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
2
2,805
thread by: The Plankmeister | last post Jul 16 '05 by: system crash
Hi... I'm trying my hardest to understand fully how sessions work and how best to use them. However, all I can find is information that doesn't tell me anything other than that sessions store information between pages, which I knew already. I want to know HOW sessions work! If anybody has any good links to material that explains sessions...
3
13,435
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;
1
2,227
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.
3
12,345
thread by: Paul | last post Jul 17 '05 by: Paul
Hi, I'm using TikiWiki and was using its file upload feature, trying to upload a 2MB file. I get this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1677706 bytes) in /var/html/www/tiki/lib/filegals/filegallib.php on line 30 Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
5
2,563
thread by: Sandman | last post Jul 16 '05 by: Dalibor Karlovic
Hello I have been trying to wrap my head arouns this, but I can't seem to get it to work the way I want it to. Could someone helpful please tell me how I get this: <function> <name>array_push</name> <examples> <example> <name>A way to do it</name>
5
68,804
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...
3
2,858
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...
3
5,940
thread by: Phil Powell | last post Jul 16 '05 by: Phil Powell
I'm not kidding, the only reason yesterday you didn't hear from me was because I wasn't coding, but today I am doing something quick, and yes, as always it failed.. right at the SQL statement: $sql = 'SELECT v.nnet_produkt_varegruppe_navn, ' . ' f.nnet_produkt_farge_navn, ' . ' s.nnet_produkt_storrelse_navn, ' . ' ...
2
6,963
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:

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.