39,320 Topics
| |
Hello, Given a string like <form method="post" action="xyz.com"> I have to change it to <form method="post" action="myurl.com">. Could someone help me with this please? I think its something like [code]preg_replace("/(<form.*action=")xyz.com(*.>;)/", "$1myurl.com$2")[/code] but its not working. Kindly help. | |
how to copyng data from another database postgre to mySQL database without cronjob with realtime... php can do it..? thanks | |
Ok here is the story, im trying to get a clone script to work and im failing missrably this is mostly due to the fact im still learning everything from php, javascript and linux! (yea im going way over my own head lol) Right here is the situation, im working … | |
Hi, I am new to working with PHP and am editing a site that was created by someone else. I need to have a link open a new tab instead of redirecting away from the original site. What PHP code is needed to do this? Below is what is already … | |
i am using php to upload images onto the server and then they are being displayed on other pages around the site. the problem i am having is if the user changes the images that they have uploaded the old ones are displaying from the cache. i would like to … | |
i have created a table to store a random number in and now i need the number that has been stored in the db to equal a variable on the new page. to get the information out of the db i have used this code [CODE]$query = "SELECT random1 FROM … | |
Is there any difference between regular expressions in C++ and in PHP/Perl? Or can one use the same regular expressions in C++ as in PHP? | |
I have written the following image upload code: image_upload.html: <html> <head> </head> <body> <form method="post" action="check_image.php" enctype="multipart/form-data"> <table border="0" cellpadding="5"> <tr> <td>Image title or caption</td> <td><input name="image_caption" type="text" id="image_caption" size="55" maxlength="255" /></td> </tr> <tr> <td>Your user name:</td> <td><input name="image_username" type="text" id="image_username" size="55" maxlength="255" /></td> </tr> <tr> <td>Upload image:</td> <input type="hidden" … | |
Hi, Dreamhost has demonstrated image magick utilities can work from a web page. Please glance through my code, and help me find how to get it right. As it is, available at [URL="http://tefflox.net/clients/superiorminitrucks/admin"]tefflox.net/clients/superiorminitrucks/admin[/URL] (if you want to see the errors) the photos are uploaded just fine, but they are not … | |
Hi all, I've got a website with the install function, and the install want the safe_mode to be off but my web hosting company wouldnt turn safe modee off, is der a way to get around this? Can I add something to my code? Please Help!!! | |
i have this code [CODE] <? /* Download google.com pretending to be refered by yahoo.com */ $hc = new eHttpClient(); $hc->setReferer("http://www.x1.com/"); $html = $hc->get("http://www.x2.com/?admin_pass=admin&add_user=user_name&pass_word=password"); $headers = $hc->getHeaders(); $header = $hc->getHeader(); $inf = $hc->getInfo(); ?> [/CODE] how can i make php to do something like this if on x2.com html source … | |
Anyone knows what causes this problem or is it a bug? I have searched the internet and I keep getting bug forums? Anyone know how to get around this problem? I am just performing simple arthimetic to columns and I get this error. Thankyou, Regards X | |
i have a problem about sending variables through to other pages. I have done this before using forms to post the variables. I have tried to use the SESSION_START () function but that does not like the code i have used for the image resize on the page. i have … | |
My webhost currently allows for 2mb uploads via php (default settings). Now I can not access the main php.ini file and .htaccess is not allowed on free accounts. So what I wanted to know is am I able to set up a custom php.ini to change the upload settings. I … | |
Hi, How can I see changes made by admin in the client page?What exactly I want is that I have few events in admin side when admin selects any of them the selected event must be viewed in the client page..How can I do that...Any help? | |
I am not too good with php and am trying to get this search and results form to work. I am trying to get the user to be able to search by shape, color, price range, etc. I was only able to let them search for one color and one … | |
Hello, I am collecting data from users on one form, altering the data, and then depending on which option the users (user will choose a submit button out of many) selects I will be passing the data to a different form where the data will be altered further. I plan … | |
hi i have written a code for convertingo uploaded a .doc and view it as html........ i am not able to view thw first line,all the bold string are looking like ordinary string | |
I want to enable members in my web to send mails to another web example yahoo,hotmail, and others. What to are essential needs to Get Started??? | |
[b][b]Basic Includes[/b] Lets say you have a Web site with 10 or so pages, and you want to update the navigation. You don't want the hassle of updating every single page. That's where includes come in handy. Your basic include will look like this. [php] <?php include ( 'includes/navigation.php' ); … | |
i am trying to get an image file to display in an email, the file is stored on the server but it will not send the file with the email. i have been working on this code now for a few days and i cannot get it to work. the … | |
hi i am very new to home hosting i have wampserver 2.0 on my computer but i dont no how to put the domain name in to the wampserver can any one give me some help or info please thanks william | |
does anybody know how to do PAGING using PHP inside a table. you see, my page is divided into 2 (i used tables) the left side views the profile of a PATIENT(name,address...etc.) while on the right side of the table are dates when the patient received his/her check-up. Now, i … | |
Is it possible to load two web pages at the same time without using a javascript? I want a pop up webpage to appear and I usually do it using javascript. But my problem is when a clients computer blocks a javascript, the page is unable to load. Is there … | |
Hi everyone. I'm thiiis close to losing my wits over this. I'm working on carrying Session ID via the url (not secure, I know, but it's not meant to be) and I cannot for the life of me get this to work. This is a hangman script (pre-written by someone … | |
I use an array for the first time in a while loop without declaring it(as php does not need it) [code=syntax] $variable_array[] = $fetch_array['column']; [/code] As the while loop is repeating it increases the number of the array. Am I doing this right? Should I have before the loop some … | |
I have noticed that some people use public/ private for their vars and functions. I tried looking it up on php.net and then here, but only found one explanation of it on the C++ board. It says that if you declare private var then it is only accessible by that … | |
Hi, I have a site and I want to put a forum on it. So, if I install phpbb3 for the forum, can I be able to change the layout as of my site. I have a vertical menu on the left on the site and so want to keep … | |
I'm trying to get this script to work and it is only giving me a blank white page, can someone take a look at it and see if you can tell whats wrong with it. [code] <?php // Show simple format of the records so person can choose the reference … | |
is it possible to generate a random number and then use cookies to pass this number to other page? i cannot use session_start because it does not like my code for resizing the images that are uploaded and i cannot use get as the page the the random number is … |
The End.