39,323 Topics
| |
Can anyone tell me, How can i restart the apache server through php code? if i view a specific page,my apache server should be automatically restart. How can i perform this? Anybody Please help me. | |
[COLOR="Green"]Hello everybody.. I've read about the "heredoc" way of outputting strings.. Where can we consider this use handy?? Is it used only to avoid escaping the single and double quotation mark?? Also, why is there an identifier to be put at the first and end of the function?? Thanks beforehand.[/COLOR] | |
I am trying to create feedback form and want to send the content to an email id using the mail(). What should I suppose to do for that? I tried with some code but it's not working.. Here is the code [CODE] <html> <body> <?php if (isset($_REQUEST['email'])) //if "email" is … | |
Hi i have sub-directories like this (files/dir/dir2/) and have input text I want to get all the doc files in the sub-directories when insert name of top directory (files)in the text field | |
i throw a string value from the database in an input box...when i click update button, i need to clear the textbox after clicking update button..how?thanks a lot... | |
Hi! How to create a website with cookies, but cookies will not be deleted (they will be on computer forever, except somebody delete it; I deleted the cookies one time, and then they have been automatically created (I didn't go to these sites)) So, how to create these two things? … | |
I have a script that reads all rows from a database, and prints it out to an html table. The html table has an extra column for "status".In this column there is a form that is supposed to submit the dropdown field to the mysql database. I've got the set … | |
im using uploadify that can upload multi photos.. now i need to select a client to upload photos.. after choosing a client > next is client profile.. including the "add photo" button which is jquery... my problem is after choosing a client i need to get the clientid then pass … | |
.gud pm!!i know people out there are so intelligent,,so please help me regarding my project about software engineering, "system/software development project proposal document. " any software will be accepted,,please have mercy! | |
ok so i know how to write a reg expression for something more specific but i dont know how to make it more dynamic. right now i am matching {tour:right} with this {tour:([A-Za-z0-9_]+)} But the question is how do i write it so that i can use {tour} and {tour:right} … | |
Hi, I am trying to update data from a column in a database using a php script. But for some reason it doesn't update the database, but i get no error feedback. So first i select a random entry from the database and i add it as a parameter to … | |
| Hi folks, I am trying to create a function that adds comments to a text file. If the file exists, the comments are added to it. If the file doesn't exist, it is created then the comments are added to it. If there are any problems, an error message is … |
For the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks. | |
I have a page set up that with tabs that show different content. This works fine and I can also dynamically create the number of tabs and the name of them dynamically. However, I'd like the CONTENT of each of the tabs to also be tabs contain tabs depending on … | |
hi guys i am trying to upload an image but my code is not upload image size higher than 400bytes please help me i tried but many thing but figure it out. [CODE] <html> <head> </head> <body> <form action="test.php" method="post" enctype="multipart/form-data" > File: <input type="file" name="image" /> <input type="submit" value="Upload" … | |
I am using jpgrpah in php to show a bar diagram by using an array as an input. The array is created by a function. I am getting the following error. Error 25044 - Cannot use auto scaling since it is impossible to determine a valid min/max value for y-axis … | |
I'm creating dynamic buttons and forms for a website and would like the form hidden when it's corresponding button is clicked. However, when I pass button and form name variables to my JavaScript that hides the form, the variables are not being recognised unless I explicitly set them. (e.g 1 … | |
Hi all. So I have a site where I need to display uploaded images for properties. There could be anywhere from none to several images of one property. I have each image going to it's own folder based on address. Should I call on those images directly from the folders … | |
i have a following text in a file: host1 menu=gateway title=gateway host=192.168.0.1 host2 menu=xgateway title=xgateway host=192.168.0.2 host3 menu=ygateway title=ygateway host=192.168.0.3 I have to match the 3 lines folowing by "host2" . these lines need to be matched. host2 menu=xgateway title=xgateway host=192.168.0.2 I used this codes.But its not complete. Can anyone … | |
My session variable is not preserving same value through out pages, It is working fine in local but not in server. | |
Hey guys i'm creating a site network using WordPress. Lets say my site name is blahblah.com and lets say i have 10 subdomains like site1.blahblah.com,site2.blahblah.com Now i want something like this. There will be no articles in my main domain. But i want list all subdomain's articles in my main … | |
How can I know whether the user surfing my website is surfing via a mobile device or a PC?? I thought about: [CODE]$_SERVER['HTTP_USER_AGENT'];[/CODE] However, I think that there is a variety of names of mobile browsers.. How could I solve it?? Thanks beforehand. | |
I want to report deadlinks on my site, my current script does work but it allows search engine bots to click the dead link report which makes it hard for me to determine which reports are form visitors and which are from bots. What am I doing wrong here? As … | |
sorry i'm newbie in date/time in php, i would like to ask if this is correct script or not,if not can u help me improving this script. <?php $date1 = date('m-d-Y H:i:s a'); $date2 = "09-17-2011 11:51:21 am"; if($date1>=$date2){ echo "bad"; }else{ echo "good"; } but when i change the … | |
my program allows users to leave reminders to themselves. tblReminder looks like this- [B]title content date[/B] now the idea behind it is that once the date that the user chose comes, the user will recieve an email to his email account with the content of the reminder. I can write … | |
the bottom line of what I want to do is- I have a file with a form (form.php) that has 2 drop lists, on sumbit I want to be redirected to another page (1.php) if dropbox 1 was set, to page 2.php if droplist 2 was set and to page … | |
Is there a way to have a session use two variables instead of just one? For instance: [CODE]$_SESSION['$email.$level'][/CODE] | |
[B]I need to update one select box, depending on what has been chosen in an other select box. [/B] I know I need to use AJAX, but I havent used AJAX ever before, so I am a little lost on how to implement it. [B]This is the first select box:[/B] … | |
Hi guys, I have recently tried to integrate the following script into my website to use with contact form (found here - [url]http://www.codewalkers.com/c/a/Email-Code/Smtp-Auth-Email-Script/[/url]) My Script looks like this: [CODE] <?php //new function $to = "hicky2k@hotmail.com"; $nameto = "rhys"; $from = $_REQUEST['client_email']; $namefrom = $_REQUEST['client_name']; $subject = "Hello World Again!"; $message … |
The End.