473,554 Members | 3,140 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
6,798
thread by: Kai | last post Jul 16 '05 by: Patrick Lioi
After submitting a form, I would like to redirect to another page. In ASP you can do : response.redirect "filename.asp", but what about PHP?
2
11,760
thread by: Phil Powell | last post Jul 16 '05 by: matty
$fbArray = array($feedbackCategoryArray => $feedbackCategoryArray); I can't begin to fathom in my befuddled mind how to sort this array $fbArray into alphabetical order according to $feedbackCategoryArray - I am utterly lost, can someone explain in detail how I would do it and why. Thanx Phil
3
5,013
thread by: Xizor | last post Jul 16 '05 by: Andy Hassall
I have the following code: $username_sqlsafe = addslashes($data); $email_sqlsafe = addslashes($data); $name_sqlsafe = addslashes($data); $location_sqlsafe = addslashes($data); $password_md5 = md5($data); $remoteaddr = $_SERVER; // do insert
1
8,743
thread by: Lovely Angel For You | last post Jul 16 '05 by: MeerKat
Dear Friends Hope you all doing great. I am new to PHP and want to know what software is to be installed on my server to run PHP scripts and what softwares are available for creating, editing, the PHP scripts.
0
3,264
thread by: Dan Foley | last post Jul 16 '05 by: Dan Foley
This script runs fine, but I'd like to know why it's so slow.. Thanks for any help out there on how i can make it faster (it might take up to 5 min to write these 3 export files whith 15 records each!!!) Dan ==================== <style> body, table, tr, td { font-family: 'verdana'; font-size: 12px;
4
9,428
thread by: Sylvie Stone | last post Jul 16 '05 by:
Hi All - I have created a survey and I would like the results of the survey to be emailed the boss in *plain text*. Can someone PLEASE take a look and tell me why carriage returns are not being inserted after each $body ? The email comes out as one big line. THANK YOU! Sylvie. include('Mail.php');
3
3,346
thread by: Ralph Freshour | last post Jul 16 '05 by: Ralph Freshour
I wrote a small .php script that creates a cookie on my local PC - I also wrote one that deletes it. My question is this: when the cookie has been created and I run the delete .php script, when it first loads it does not delete the cookie - I always have to click on the browser refresh button - why doesn't the script execute on the first...
1
1,911
thread by: Martin Cunningham | last post Jul 16 '05 by: Olexiy Merenkov
Hi. I was wonderin what are peoples views on writing efficient code. For example I've done a registration sytem for a chat room. In it I have a registration page which is used to register the user (obviously) however this page also shows the details to the user to confirm the registration and then again if they wish to edit their details at a...
4
11,655
thread by: dan glenn | last post Jul 16 '05 by: Gary Petersen
Say, I want to set a cookie and have it expire an hour after it's set. It's looking like this is only possible for browsers which are in the same time zone as my server?? In other words, if I set my cookie with: setcookie('CookieName', $SomeValue, time()+3600, "/");
5
3,709
thread by: george | last post Jul 16 '05 by: george
Guys and girls, I'll be quite honest. I don't have the faintest idea how to do this, while I can do other php without a problem. Once I know how to go about it I'll be okay. It's two things I think? 1. see if there's a trailing slash and delete it. 2. Remove the preceding path to /x, the folders and slashes, and delete them. and then I have...
0
2,630
thread by: Daniel | last post Jul 16 '05 by: Daniel
Hi, I want to turn the following: <ref>Name & Name2, 1999</ref> into <a href="index.php?ref=Name + Name2, 1999">Name & Name2, 1999</a>
3
5,966
thread by: Ralph Freshour | last post Jul 16 '05 by: Andy Hassall
The following 3 mysql/php statements are used in my home page to access my admin table: $php_linkID = mysql_pconnect("localhost","user","pw"); mysql_select_db("test_db",$php_linkID); $php_resultID = mysql_query("SELECT * FROM admin", $php_linkID); On another web page I try to use another table in the same database but I get an error on...
1
1,712
thread by: Mathias Soeken | last post Jul 16 '05 by: Wm
Hello, I've written the following sourcecode: <form action="test.php" method="POST" enctype="multipart/form-data"> <input type="file" name="datei"> <input type="submit"> </form> // test.php
3
2,106
thread by: fartsniff | last post Jul 16 '05 by: matty
For the sole purpose of speed, not security, do php scripts that have been encoded with Zends Safeguard Suite run "faster" than non-encoded scripts ?
0
2,056
thread by: Frank Passek | last post Jul 16 '05 by: Frank Passek
Dear all, I've encountered some strange behaviour with PHP (4.3.2) using the CLI-API. When I provide an option in the first line of my script like so: #!/usr/bin/php -c /path_to_my_ini_file and call the script from the (bash-)commandline, PHP seems to ignore this setting. Calling the script with: php -c /path_to_my_ini_file myscript.php
6
2,474
thread by: matty | last post Jul 16 '05 by: Jochen Daum
Just a couple of quick comments: In some of the CSS/DOM mailing lists I'm on, people generally refuse to help unless the HTML and CSS will validate. You can check these at http://validator.w3.org/check/ and http://jigsaw.w3.org/css-validator/check/ respectively, and it will often sort out problems you are experiencing with layout/display...
1
4,016
thread by: Bartosz Wegrzyn | last post Jul 16 '05 by: Randell D.
HI THERE I have created a form that I use to fill with the customer and workorder information. Depends on what button I press I can add delete change or print the customer information. My script is called process.php Then depends on the action scripts call another php script. Then it checks if customer exist ot not. If exist it goes to...
1
3,321
thread by: Terence | last post Jul 16 '05 by: Frank Passek
A curious observation: I have my apache web server configured for the PHP apache module to parse files ending in the .php extension. nothing unusual about that, but I also noticed that if I leave the file extension off completely, not only does apache map it to the corresponding php file, but it allows the php module to parse it...
7
3,472
thread by: spearman | last post Jul 16 '05 by: Ian.H [dS]
what is wrong with <?php if(!stristr($_SERVER, 'www')) { Header("Location: http://www.theSpear.net" . $_SERVER); exit(); } ?> I am trying to make it redirect to www.theSpear.net if www. is not there, but it doesnt work.. any ideas?
5
9,202
thread by: Matthew Sims | last post Jul 16 '05 by: David Robley
I see what my problem is but not sure what I need to change. I'm reading a single number from a file that's fed into an array but the array doesn't want to print out its output. $oncall=array(); $oncall="msims"; $oncall="dtilbury"; $oncall="jma"; $oncall="jweaver";
2
2,243
thread by: kliczko | last post Jul 16 '05 by: Sebastian Heß
I have php4 on system FreeBSD.I did think that php work very well (function phpinfo() work), if I didn't probe above script: <? if(!isset($name)&&!isset($password)) { ?> <h1>Please Log In</h1> This page is secret. <form method = post action = "secret.php">
5
2,517
thread by: Wm | last post Jul 16 '05 by: Wm
I'm not sure why this isn't working, but it's giving me no output. I have a form which requests email and city to pull up a listing, then Email that address with their password. I'm doing an extract($_POST) to get the data from the previous form. When I test it I enter a known invalid email/city combination, yet I get a blank area where the...
3
3,213
thread by: sky2070 | last post Jul 16 '05 by: sky2070
session_start(); $_SESSION++; print 'You have visited here '.$_SESSION.' times.'; why the visit variable is not incremented the next time i enter. Notice: Undefined index: visits in C:\Program Files\Apache Group\Apache2\htdocs\session\cookie2.php on line 3 You have visited here 1 times.
2
4,505
thread by: Jim | last post Jul 16 '05 by: Jim
I'm having huge problems with a web server not putting the uploaded file in the /tmp here is my code can some one please point me in the right direction?I'm thinking i've done something with wrong with apache but can't find out what. ---- up.html ---- <HTML><BODY> <FORM method="POST" enctype="multipart/form-data" action="./up.php">
0
1,963
thread by: @(none).dk | last post Jul 16 '05 by: @(none).dk
Hi I am not sure whether my new webhotel has setup "AddType jad/jar files" in the apache configuration file. The webhotel has php - so my question is: Can I make something with php that ensures that my homepage can provide jad/jar files to e.g. mobile phones? (the mobile phones expect that the files begins with something like...

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.