39,326 Topics
| |
I have code here for a form that submits the data to receivers email. When I click the send this form button, it submits the email to receivers address. Following is the code that i'm using to send email [CODE]function send_mail_users($myname, $myemail, $contactname, $contactemail, $subject, $message) { $headers .= "MIME-Version: … | |
Hi I would like a crhon job to do the following: 1) copy a zip file, eg: [url]www.somesite.com/file.zip[/url] to [url]www.mysite.com/file.zip[/url] 2) unzip such file 3) move the unziped files to another directory, after reading one of those files. Please, I have no idea on how to do this... (my thing … | |
Hi, I tried to read html content of 100 links. It is working for few links,after few links it is asking for captcha. E.g:- [B]It check 30 links then captcha come. Again After few hours gone. it start working[/B]. because of this i used proxy using cURL.But still captch coming. … | |
Hello all, I am trying to strip all of the white space,front and back, from a variable that has the value of a text box in it. I've tried so many different techniques but to no avail... here is an example of some of my code... [code]var firstname =(document.registration_form.FirstName.value); if … | |
Is it possible to read and write excel files on PHP4? If yes, how? Thanks | |
Hello , I am stuck on this line of code [CODE]echo $hits[0];[/CODE] i am trying to get it to echo into a text box as an integar. at the moment the code [CODE]<?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); … | |
Hi, I am adding content to my site using CMS.There are number of boxes in my site.I am adding text to that boxes.width and height of every boxes are 150.When i add more content in the boxes thr CMS-admin the matter is not viewable in that box i.e the matter … | |
I have an issue with an insert statement not producing what I think it should produce... Here are the relevant parts of the code: [CODE] $free_pos[0][0] = $free_pos[1][0] = $left_top = $row[0];// value is 10000002 $free_pos[0][1] = $free_pos[1][1] = $left_step = $row[1];// value is 1 $free_pos[2][0] = $free_pos[3][0] = $right_top … | |
Hi there. Thinking about creating a membership registration-enabled website, that will store people names and some info about them, after they register, but what i can't begin to make is a PHP code that whenever, a user searchs ( In a search box ) a name of another user, that … | |
Hi i am new for PHP. I want help, I added one selection box in my form and some text box and one Save button.When page load Selection box fills with some data form MySQL table,i know this much only now i want when i select other value from selection … | |
[CODE]<HTML><HEAD> <?php $ids = ("number.txt"); $id = file($ids); echo $id[0] ?> <INPUT value=("$id[0]") name="number"> </HEAD><BODY> </BODY></HTML>[/CODE] How come <INPUT value=("$id[0]") dos not = the out put 5 or what ever ("number.txt") is ? it should be in a read only text box id = number. | |
is there away to use an already developed and functional .NET dll from php? | |
I am developing a web application in php. My task is to download all the mails from a mail server and save it into the database and the attachments will be saved in a folder. The user then opens up the mails with their attachments inside the application. The mails … | |
I have a large amount of items stored in my DB (around 3,000 total and growing) and I have a list of them sorted alphabetically that displays on a page. I was interested; however, in having the items display in blocks instead that look something like: [INDENT][B]A[/B] [All items that … | |
I am in the process of trying to create a search option for my database; however, I need the user to be able to submit one search which looks at three tables in the database. I'm using the following right now and it's working for each individual one (I have … | |
Can anybody tell me how to handle more number of requests on server using PHP ? If there are 1000 request capability of web server at a time and if more number of requests (say 1500) are encounter on server at a time, then how the SEVER maintains and process … | |
Hi i have this string: [CODE]<div class="col-price"> <h4>you save</h4> <span ><span class="currency">$</span>32</span> </div> <div class="col-price"> <h4>discount</h4> <span >52%<span class="persent"></span></span> </div> <div class="col-price last"> <h4>original price</h4> <span ><span class="currency">$</span>62</span> </div>[/CODE] i want to be able to find the values of: [I]you save[/I], [I]discount[/I] and [I]original price[/I]. the desierd output: 32, 52, … | |
Hi, If you set [B]$dowhat [/B]to [COLOR="Green"]"Clean"[/COLOR], I get this error message : [ICODE]Warning: setcookie() expects parameter 1 to be string, array given in C:\wamp\www\....[/ICODE] which is line 18. However, if I remove unserialize() function from same line, I get [ICODE]Warning: Cookie names cannot contain any of the following '=,; … | |
copy in your program and then run.. [CODE]void Ubaid(int x)[/B] //this is function x value is 5 or directly set x=5 { // x=5; for(int i=x;i>0;i--) { printf("\n"); for(int j=1; j<=i; j++) { printf("%d",j); } for(int u=i-1;u>0;u--) { printf("%d",u); } [B]}[/B] //start another from here that print the opposite for(int … | |
Hello, I want to write xml with php and Im using the code in this tutorial: [url]http://www.ibm.com/developerworks/library/os-xmldomphp/[/url] I've made the php page and everything looks fine when I access the PHP file, I get the XML structure and all. the problem is, it works only if the file in in … | |
Hey everybody, Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for PHP! It uses a words file, on the bottom of this post you will see a small example of a few words. The source … | |
I have started work on a new project and it is basically a database site for the new MMO if you have heard of it SWTOR and basically I need a solution on making it go to the page linking to the text entered into the search bar. So what … | |
in the below code, everything works. However if the user is logged in (where is says html goes here) it wont display anything at all. [CODE=php]<?php // Connects to your Database mysql_connect('host', "user", "password") or die(mysql_error()); mysql_select_db("database") or die(mysql_error()); //checks cookies to make sure they are logged in if(isset($_COOKIE['ID_'])) { … | |
Hi, At the moment I am pulling a record from the database which is in datetime format. Could someone please tell me how I can modify this to just display the time and exclude the date? Many thanks for any help. [CODE]<?php $time = mysql_query("SELECT * FROM gps WHERE imei … | |
[CODE]<?php include ("counter.php"); ?><HTML><HEAD><?php function sidney() { global $id; include 'counter.php'; } sidney(); echo "$id"; ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"> </HEAD><BODY><INPUT value='[$id]' name="player number"></BODY></HTML>[/CODE] please can you explain why [$id] dos not echo a number ? thanks. | |
How we can search images similar to our image on internet or in our local directory? Further how we can recognise that image is of human or animal or some abstract like mountain, road etc? | |
Hey, Im working on an application that will let me send group emails using PHP. All the emails are going to be stored in a database.. I expect to have a lot of email addresses, maybe thousands. Ive used the MAIL function before to send individual emails but i never … | |
Okay, so I'm doing an e-commerce website for my school project. Basic run down of the cycle is that the user logs in, views items, adds the items that he likes to his shopping cart, and checks out the items at the shopping cart. Now, for the the add to … | |
why dos the hit number not show up at $A ? [CODE]hitcounter.txt<HTML><HEAD> <META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD> <BODY>0 0</BODY></HTML>[/CODE][CODE]<HTML><HEAD><TITLE>hitcounter.php</TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 8.00.7600.16722"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE><?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); echo $hits[0]; … | |
hi.. i developed the GUI for the grid in my company.but i have problem in executing the linux coommands thru php scripts.my platform is linux.i use php5,mysql n apache 2.0. pls help me how to run the linux commands thru php code. eg: <?php $display = exec('ls'); echo "$display"; ?> … |
The End.