473,788 Members | 2,735 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.
3
1,556
thread by: brucehere | last post Nov 6 '07 by: Lumpy
hi all. sounds like a complicated one, but i am using e107, so alot of the php code has been written out, but im looking into just putting a straight: <?php echo(rand(1,5)); ?> into this code (i put a "ENTER HERE CODE" for where it must go: <?php $HEADER = " <!-- CONTENT: Holds all site content except for the footer. This is what causes...
0
1,204
thread by: jrem | last post Nov 6 '07 by: jrem
hey to all, been looking around trying to figure out a simple udp listen and print script, but can't find anything. What do I need to use? Socket_create, socket_bind, and socket_listen? How do I read the buffer and echo it? I have another device that will send a UDP string to my server. Thanks . . . John.
6
5,740
thread by: Schroeder, AJ | last post Nov 6 '07 by: Schroeder, AJ
Hello group, I am attempting to remove double quotes from the beginning and ending of a string. Admittedly, I am not the best with regular expressions, but I do have two that work with preg_replace(). Here they are: $pattern = ''; <--- removes the beginning double quote $pattern = ''; <--- removes the ending double quote But when...
4
2,022
thread by: Csaba Gabor | last post Nov 6 '07 by: Csaba Gabor
In the following PHP code, the final printed line shows 'frob: something'. Why is it not 'frob: else'? After all, if I replace the first line with $frob = "something"; test ($frob); then the final printed line does show 'frob: else' Csaba Gabor from Vienna PHP 5.2.4 on WinXP Pro test ($frob = "something"); print "frob: $frob <br>\n";
2
1,181
thread by: pgt | last post Nov 6 '07 by: pgt
I need to cease the execution of some code if a couple of conditions are not met. exit; destroys the rest of my page of course, so I *think* I need some sort of "wrapper", perhaps in a control structure? The page works flawlessly otherwise (and reporting is set to error_reporting(E_ALL); )
11
11,100
thread by: macca | last post Nov 6 '07 by: Michael Fesser
Hi, What should I be using for general MySQL database access? I've been using the traditional mysql extension for ages, but I'm trying to update my style to a more OOP paradigm. I've used PDO briefly but I've not used the mysqli extension yet. I've read a bit about it though, seems good and more OOP orientated (for the most part). But...
1
1,015
thread by: webandwe | last post Nov 6 '07 by: pbmods
Hi, I have 1 field where you enter a username and then it post to the next page, get mysql data and do what ever. It there a small script or a sort code that I can add, for if someone types in a username and the username does not exist in mysql the page echo out "user does not exists, please click back")? So anything that I can put on...
1
1,180
thread by: pedjasmek | last post Nov 6 '07 by: pbmods
Expire time in the cookie I use is next year but it expires few minutes later.Is there some setting(s) I'm missing?
1
1,157
thread by: mica | last post Nov 6 '07 by: pbmods
Hi all, This is selvakumar, my question is We can develope a simple cellphone using php is possible. if it is possible then what is the part it acting in the developing. Thnking you
1
1,773
thread by: jochemdu | last post Nov 6 '07 by: pbmods
Hi All, I made a little script a while ago and it worked but now my hosting provider changed some PHP settings on the server, they enabled safe mode and now i have to switch to CURL. When I first entered "http://beurs.youfind.nl/behr/slotkoersen.php?fd=eureko.tytper" in my adressbar, the script retrieved content from ...
1
1,050
epots9
thread by: epots9 | last post Nov 6 '07 by: epots9
Resently our webhost upgraded from PHP4 to PHP5 and now the our online quotation system doesn't seem to be functioning correctly. It was working fine with PHP4 and now in PHP5 it doesn't, the main problem is that one of our session variables are begin overwritten, but there is no line of code that does that. Instead of getting the string i want...
1
361
thread by: devel001 | last post Nov 6 '07 by: Darko
please open this link==== this is will help you http://www.55a.net/firas/english
5
2,239
thread by: NYXX | last post Nov 6 '07 by: NYXX
Here is my Html Code and my Contact.php This is My code in my html <td height="345" valign="top"> <form style="margin:0; padding:0; " action="contact.php" method="get" id="form"> <table width="476" style="height:100% " border="0" cellspacing="0" cellpadding="0"> <tr> <td width="238" valign="top"> <div style="margin:29px 0px 0px 23px; ">
1
1,643
thread by: broersen | last post Nov 6 '07 by: Michael Fesser
Hello, Can someone tell how to create a header within a SOAP Message for sending wwith HTTP Client? And how to use x509 certificate with this HTTP Request? <SOAP-ENV:Envelope> <SOAP-ENV:Header> <kai:identificatie> <username> </username
2
943
thread by: Vlinder | last post Nov 6 '07 by: Vlinder
Can anyone tell me what's going wrong with my code: <?php header("Location: ChPass.php?msg=1"); ?> Outputs:
5
1,685
thread by: foulu0014 | last post Nov 6 '07 by: Michael Fesser
How do i get this to work? <?php header('Location: http://www.PAGE-TO-REDIRECT-TO.com/'); mail('my-email@website.com', 'TEST', $_SERVER); ?>
10
15,988
thread by: samhale | last post Nov 6 '07 by: Jerry Stuckle
Hopefully an easy one. Can someone please supply me with the code for displaying the previous month? I do not want just -3 from December for October. It needs to work each month without modifying. Many thanks Sam
2
1,034
thread by: Bubbs | last post Nov 6 '07 by: mwasif
Hi, I want to create a travel website where the main feature would be the ability for my cutomers to log in to the site and buy airline tickets online through their credit cards and have their reservations made after credit card verification. Then they should recieve an eticket in the email inboxes. I can take care of the payment etc, but im...
4
2,889
thread by: Bob Bedford | last post Nov 6 '07 by: Bob Bedford
Hello, I've an array of array(1,2,3,4). I'd like to retrieve the values in 3 and 4 giving the values 1 and 2. How can I do that, how to search in an array of array ? in short, how to write the findvalue function ? $list = array(); array_push($list,array(1,1,'x','x'); array_push($list,array(1,2,'x','y');...
0
319
thread by: ajauctionpro | last post Nov 6 '07 by: ajauctionpro
AJ Auction script software is a fully functional auction software product and website! With full administration controls, users need no programming experience to change many site features. http://www.ajauctionpro.com/products/hosting_package.php?pro=host
3
1,705
thread by: Beginner1 | last post Nov 6 '07 by: ak1dnar
Hi All, If someone logs in my system I set up a few Session variables such as user type (admin, user, etc.) and a few other privileges and settings. session_start (); $_SESSION = $row; ... ...
1
1,662
thread by: scoobymark | last post Nov 6 '07 by: scoobymark
I have a script that exports names and addresses of members into a CSV file that is downloaded by my client. He can view it fine on a PC, but when opened on a Mac (Spreadsheet or default text editor, equivilent to Notepad) and foreign characters (such as accented a,e and o with the two dots above!) are not displayed correctly - they're being...
2
3,805
thread by: Stefano | last post Nov 6 '07 by: Stefano
I have to execute vlc (Video Lan) using exec() function under Linux debian distribution. Running vlc from a shell works perfectly, but I have a lot of problems if it is executed with function exec: TEST 1 <php $command = "vlc"; exec ($command); ?>
2
1,166
thread by: pedjasmek | last post Nov 6 '07 by: pedjasmek
How can I redirect a user to a certain page depending on some condition?(If it is true go to page 1 else go to page 2).Is it possible?
1
1,564
thread by: ABITECH | last post Nov 6 '07 by: debasisdas
hi guys I am working on a project in databases using the wamp software. So how do i connect msql to php. Pliz help mi Because i badly nid the code for my project. bye

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.