473,543 Members | 2,497 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.
0
2,043
thread by: Naresh Kumar | last post Jul 16 '05 by: Naresh Kumar
Hi, can anyone tell me how to identify the origianl URL from a PHP URL. For example c the URL given below. Please tell me how to identify the origianl URL from the php URL given below. I'm asking because this points to a FTP site but this software can be downlaoded only via the browser and not DAP or Flash Get. Or is there any other...
0
2,951
thread by: Chris | last post Jul 16 '05 by: Chris
I am having a problem with a php upload script. it will allow me to upload small files (about 1Mb) but not larger ones (less than the upload_max_filesize). Can you help diagnose what the problem is? I have PHP Version 4.2.2 on Red Hat Linux 9. the entry's in php.ini and scripts are as follows
1
8,476
thread by: w i l l | last post Jul 16 '05 by: Luke Ross
I am trying to execute a perl CGI from within a PHP script. I have tried the following notation without success. <?php include("http://" . $_SERVER . "/somedir/afile.cgi"); ?> The CGI works on it's own without problems. Is this a limitation of PHP? Thanks,
3
5,379
thread by: joemyre | last post Jul 16 '05 by: joemyre
Hi everyone, What I'm trying to do is take php variables i got from user input, and pass them as the MySQL query terms. $query = "select * from ident where ".$searchtype1."=".$searchterm1.""; ERROR: Invalid query: You have an error in your SQL syntax near '=' at line 1
0
1,760
thread by: Rutger Claes | last post Jul 16 '05 by: Rutger Claes
I'm trying to make sort of a simple template system using XML. Imagine the following xml code: <page> <header>...</header> <body> <title>My News</title> <?news to_list 10?> </body> </page>
0
2,658
thread by: James Sleeman | last post Jul 16 '05 by: James Sleeman
Hi all, i just spent an hour rifling through code to find the cause of a problem only to find it's an oddity with serialization and recursive objects, so figured I'd post for the next person who gets the same problem (y'all might find it interesting too)... ********************************* Symptoms ********************************* When...
1
3,717
thread by: andreas kirschner | last post Jul 16 '05 by: andreas kirschner
hello regexp developers, how can i replace text outside a html syntax by using reg exps in php? I mean i have a text like <h3>heading</h3> <p>text</p> <table> <tr> <td>cell1</td>
8
2,068
thread by: Ronald O. Christian | last post Jul 16 '05 by: Ronald O. Christian
One of the benefits of coding in php is that a user can't view your actual php source, only the html it produces. Are there reasonably simple techniques to avoid having the html scooped also? My application is that of developing prototypes for perspective customers while protecting my code until the sale goes through.. Keeping the PHP code...
2
5,990
thread by: | last post Jul 16 '05 by: Marius Mathiesen
Hi all, I have been working on a simple form to collect user data. The form is written in ASP. The target action is a PHP script on a completely different system. The problem I have been experiencing is when I use the GET method on the ASP form, my PHP page displays the data as collected. When I use the POST method (preferred), very same...
11
3,137
thread by: Robbie Beane | last post Jul 16 '05 by: Allodoxaphobia
Is there any way to stop execution of a function without killing the whole script? Is there a command that will jump out of a function back to the main script, or calling function?
4
1,949
thread by: Bill | last post Jul 16 '05 by: Shawn Wilson
I'm submitting a string of data, with several words in it. When I try to retreive it from the database, I'm finding the words of the string have been removed. For example, if the string entered is a person's title, such as Vice President of Finance, it is only showing VicePresident then nothing else is showing. What could be the problem? ...
2
2,713
thread by: Nick | last post Jul 16 '05 by: Marius Mathiesen
Can someone please tell me how to access elements from a multiple selection list? From what ive read on other posts, this is correct. I keep getting an "Undefined variable" error though... Form page************************************************************ <form action="/process.php" method="get" name="formOne" id="formOne"> <select...
2
2,743
thread by: Randell D. | last post Jul 16 '05 by: Randell D.
I've solved this problem once before but for the life of me these past couple of hours have got me nowhere... I hope someone can help... I have one form split in two... so the user can switch back and forth, the values of form B are hidden in form A, and the values of form A are hidden in B using <input type=hidden name=variable...
4
2,742
thread by: PHPkemon | last post Jul 16 '05 by: PHPkemon
Hi there, A few weeks ago I made a post and got an answer which seemed very logical. Here's part of the post: PHPkemon wrote: > I think I've figured out how to do the main things like storing products in
1
2,475
thread by: Gabriel | last post Jul 16 '05 by: T. Relyea
Hello everybody. I have a problem with stripping tags from form-input. There seems to be tons of information about this on the Internet and I have read quite a bit of this information and now I think I have solved my problem, but I'm far from sure and that's why I turn to you – the experts :) This is my setup: I have a HTML-page that...
0
2,183
thread by: Alex | last post Jul 16 '05 by: Alex
Bottom line: would like to get a weblog and bulletin board going. Would like to use phpBB2 and movabletype. I have movabletype working using mysql. Apache and php were on my linux red hat 7.2 out of the box it seems. hello.php worked with the original setup. Somewhere along the time of installing MySQL database & DBD::mysql and a...
0
3,571
thread by: Sergiu | last post Jul 16 '05 by: Sergiu
Hi PHP folks, Does anybody know a way to read the extension fields from a x509 certificate? Maybe there is a better PHP module than openssl. Until a better sollution came up, I did some changes to the openssl PHP module, I added the following lines, but here is still more to work (I hope some developer from PHP hear me and give me a help):
0
2,181
thread by: JDJones | last post Jul 16 '05 by: JDJones
I am trying to write a PHP action into my custom 404 error page that will email me when someone tries to access a bad link. I can get it to work and tell me the person's IP using <$ip = getenv ("REMOTE_ADDR");>, the page referer using <$httpref = getenv ("HTTP_REFERER"); > and the time of the request using <$today = date("D M j Y g:i:s a T");...
1
2,599
thread by: joemyre | last post Jul 16 '05 by: CC Zona
Does anyone know any good debugging techniques. Especially for mysql queries, and global variables. My php IDE's (Glimmer, and Bluefish) supposedly have debugging functions but I cant figure out how they work. So any help would be excellent. Thanks Joe
1
2,905
thread by: steronz | last post Jul 16 '05 by: Terence
I work in a network support office which uses a web form to receive network related problem reports from our end users. The web server is IIS 5.0 on win2k server, and we use PHP and MySQL to handle the form and tracking. I'd like this setup to launch an mp3 player on the web server when a problem report is sent in. I've tried exec("little...
3
3,864
thread by: Rusty Wright | last post Jul 16 '05 by: Andy Hassall
What happens when you take the value returned by a function that doesn't return a value? For example, function myfunc($myvar) { if ($myvar == "xyzzy") return(1); return; }
4
2,519
thread by: David Hickman | last post Jul 16 '05 by: sk
Hi all, I have a website that I am building in PHP that I would like to send e-mails to users every 2 days to inform of new updates. I know how to trigger the sending of e-mails if a user enters the site, and can limit this to only happening once every 2 days, but I am interested to know if it is possible to have PHP send e-mails...
1
2,012
thread by: Aaron Collins | last post Jul 16 '05 by: Zac Hester
Hello, I have a search string of 3"CC which comes out 3\"CC with magic_quotes_gpc set to on. I'm having a difficult time passing the search string along the url or in a cookie. I've read on php.net of other programmers who have written a function to add or strip the slashes regardless of whether magic_quotes_gpc is set to on or not. Can...
0
3,823
thread by: Mike Discenza | last post Jul 16 '05 by: Mike Discenza
I'm working on a new system that my superiors have determined should use LDAP for it's authentication and user management. Not real bad, but it's proving to be a bit of a hassel. I'm using a Lotus Domino server for the LDAP part. If, in the ldap_search(...) function I pass it "o=myCompany" for the dn parameter (the second parameter), I...
1
10,098
thread by: [XaToA] | last post Jul 16 '05 by: Zac Hester
Hello Whit this: <?php echo str_replace ( "\r", "<br/>", $arr) ; ?> i replace the \r with the <br/> but i must analyze one String and see if there is into the String: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 and replace those characters with <br/> can anybody help me?

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.