473,548 Members | 2,716 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.
 
1
6,397
thread by: nerf | last post Jul 16 '05 by: powerboy
How can I execute a javascript file(test.js) from within PHP. I'm running oscommerce and want to insert a menu created in javascript by Sothink DHTMLMenu. Thanks in advance
2
35,956
thread by: Ralph Freshour | last post Jul 16 '05 by: Ralph Freshour
Is there a function that will allow my web page to pause() waiting for a keypress and then continue rendering the page? I have a web page in PHP that displays some data that I need to see before it calls another ..php web page. Thanks...
4
15,958
thread by: Dariusz | last post Jul 17 '05 by: John Thingstad
I am a beginner in PHP and MySQL, and am working through a book and various online tutorials on PHP and MySQL and now stuck - installed everything on "localhost" and it all works fine. My question is as follows. I have a guestbook type code I'm trying to write, but when the results get printed to a webpage, it outputs completely nothing as...
2
3,077
thread by: Rustam Bogubaev | last post Jul 16 '05 by: Rustam Bogubaev
Hi, I have RedHat 9.0 and installed by default Apache+PHP. By default XSLT Sablotron support is not enabled, so how can I rebuild PHP with xslt support? I know that I can rebuild it from sources as described on http://www.protonicdesign.com/tutorial/sablot_and_php.php, but I want to do it without uninstalling and breaking present...
1
3,082
thread by: Steven Feil | last post Jul 16 '05 by: Gary Petersen
Is there a way to simulate "POST mode user input" while running PHP from the command line or in interactive mode? For example with python, you can simulate the effects of post mode with the following two lines export REQUEST_METHOD=POST echo -n 'x=y&z=t' | python myscript.py I have tried the following, but it does not work.
0
2,057
thread by: Pneumatus® | last post Jul 16 '05 by: Pneumatus®
I have tried to follow the instructions in the PHP manual but have been unable to get things working properly myself. The following script works fine for me: <?php /* Open the cipher */ $td = mcrypt_module_open ('rijndael-256', '', 'ofb', ''); /* Create the IV and determine the keysize length */ $iv = mcrypt_create_iv...
2
2,147
thread by: JDJones | last post Jul 16 '05 by: JDJones
A friend just changed servers with her web site. The new server uses PHP 4.3.2 as opposed to the old server that had one of the 4.0.x's (don't remember exactly which one). Now I know all about the register globals change but one of the pages is suddenly throwing me an error I can't figure out. It is not on a form. It is a script to include a...
5
2,492
thread by: ConTactMe | last post Jul 17 '05 by: ConTactMe
Is it necessary to have your file named *.php to use PHP code in it, such as for includes? Can't any extension be used? Thanks
3
7,451
thread by: lawrence | last post Jul 16 '05 by: lawrence
If I do something like : $result = mysql_query($query); $dbArray = dbResultIntoKeyArray($result); and this is the function: function dbResultIntoKeyArray($result) {
2
1,858
thread by: Robert Morgan | last post Jul 16 '05 by: Jochen Daum
Can anyone tell me whats wrong with this code? The variables are being past from other page and the $connection is ok as is $result. this query should return 6 rows. the error message I get is "Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /var/www/html" The user selects a field from a drop down then...
3
4,262
thread by: Mike | last post Jul 17 '05 by: Mike
Hi all, I've been trying to get imagerotate() working with PHP 4.4.3 and the latest version of GDlib. An error message is given saying the function is unrecognised. Can anyone advise which configuration of PHP / GD is required to get it to work? Thanks! Mike
3
5,738
thread by: Gerhard Buergmann | last post Jul 16 '05 by: Vijay
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?
4
2,001
thread by: John Ramsden | last post Jul 16 '05 by: Martin Lucas-Smith
I maintain various specs and FAQs in manually edited HTML documents, and I'd very much like some simple way of automatic section numbering as in 2.1, 2.1.1, 2.1.2, 2.2 etc, with table of contents generation plugged into the start of the document so that each section can be accessed via a link (and also maybe automatic footnote numbering). ...
5
6,267
thread by: Micha | last post Jul 17 '05 by: Micha
I'm traing to rewrite a part of code i've made in for ASP in PHP. ASP: If moneda = True Then moneda = False Else moneda = NOT moneda End If This change the value of the variable from true to false and the other
1
1,553
thread by: David | last post Jul 16 '05 by: Alex Farran
Hello, all. I hope somebody in this group can either answer my questions or point me in the right direction. I write Javascript routines that do mathematical, floating point, computations. I like Javascript because a person does not have to download anything to their computer, and the source code is viewable--making it easy to download...
1
1,685
thread by: DragunSol | last post Jul 16 '05 by: Joshua Ghiloni
lol guys, here it goes, Does anyone know a free webhost wich includes the following: Ftp, bannerless, php. I take it so many asked before, wondering if it even excists lol Thanks, -- DragunSol
1
20,605
thread by: Stefan | last post Jul 16 '05 by: Stefan
Hi, I just downloaded PHP-4.3.3 for win32 and got the extensions folder and dropped it intot he root of the PHP directory and set it's path in the PHP.ini: extension_dir = "c:/php/extensions/" But I am still getting the error that it can't find the php_mhash.dll though I can see that it is indeed in the folder.
0
1,446
thread by: Thomas Müller | last post Jul 16 '05 by: Thomas Müller
Hello! Running my uploadscript on old server, php4.1.2 ignore aborted fileuploads. Now, the same script on new server doesn't ignore broken uploads. If anybody make a upload and abort this the uploaded part of file is present on server. I'm now running php 4.3.3 on redhat 9.
4
7,676
thread by: lawrence | last post Jul 17 '05 by: lawrence
We're installing a new server at the office and this will be the first server we set up from which we host our website. We got tired of dealing with Interland and decided to bring our hosting in-house. The guy doing most of the work struggled with sendmail for awhile and then gave up. Now he's installing Postit, or Postfix, or whatever it's...
4
2,130
thread by: Cal Lidderdale | last post Jul 16 '05 by: Tom Thackrey
PHP doesn't have ENUM and I'm inputting the date 14-SEP-2003 and I want to "insert into atable values ('2003-09-14', .........==> mysql. Anybody have a neet trick? Tks Chuck
5
37,045
thread by: Rob | last post Jul 17 '05 by: Rob
Ummm...I'm a little stuck on how to approach the following.... I have a mySQL table holding images (fields are: data (blob), name (text), type (text), size(text), desc (text) ) If I want to show the image on a page (they're all jpg's), how do I do I implement this? Uploading, downloading, text listing it is easy...I'm just wondering how...
1
1,686
thread by: Yang Li Ke | last post Jul 16 '05 by: Tom Thackrey
Hi, Id like to add 20 minutes to this : $today = date("Y/m/d, H:i:s"); anyone can help ? thanx a lot :)
3
2,098
thread by: williamc | last post Jul 16 '05 by: Lothar Scholz
My first impulse was to turn it off. But maybe I'm wrong. Or is it one of those 6 of one half a dozen of the other things? From what I'm seeing on a search it might improve performance slightly but with some s/w there are security issues... (We have register_globals turned off). General working env. is mySql, but might switch to PostGres...
4
3,581
thread by: Daniel | last post Jul 16 '05 by: MeerKat
Hi all, I wanted a way to (http) stream Real Audio files without the need to use ..ram files. In case there are others interested in this, the following is the solution that worked for me: <?php Header("Content-Type: audio/x-pn-realaudio"); echo "http://www.domain.com/audiofolder/track1.rm"; ?>
4
7,684
thread by: Ziggi | last post Jul 16 '05 by: Justin Koivisto
Hi. Is it possible to use PHP code within a javascript funtion? For example, is the following allowed... foo( <?php $_SERVER ?>); function foo { ... does something with string } Thanks in advance.

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.