
samona
Members-
Posts
232 -
Joined
-
Last visited
Never
Everything posted by samona
-
Hi, I'm trying to run a php script located in /var/www/website/index.php however, i can't do that from the command line. I do have a .htaccess file requiring a username and password, but I have made myself the owner of all the folders in that path. It was working before, but i restarted the server and now it's not working anymore. Please advise. Thanks. As a note, It does work when I'm in the /var/www directory. Just doesn't work anymore from my home directory or /var. And I have put myself as the owner of /var and of /var/www
-
Based on best practice, what directory is used to backup databases? Do you have to create your own, or is there a specific folder in Linux where you should store your sql files?
-
hI all, I'm trying to attach an excel file that is currently on the server to an email. Unfortunately its not working. The code is below: $to = "[email protected]"; $subject = "excel attachment"; $filename = "file.xls"; $file = fopen($filename,'rb'); $data = fread($file,filesize($fileatt)); fclose($file); $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: application/octet-stream;\n" $message = "Content-Type: application/ms-excel; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message. "\n\n"; $message .= "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . "Content-Disposition: attachment; filename=application/octet-stream;\n" . "Content-Transfer-Encoding: Content-Transfer-Encoding: binary\n\n"; $ok = @mail($to, $subject, $message, $headers); if ($ok) { echo "<p>Mail sent successfully!</p>"; } else { echo "<p>Mail Failed!</p>"; } Let me add that I do get an email, I just don't get the attachment.
-
Hi, I have written a program in PHP to display some fields from a record in the search results. However, I want to make a link that users can click to view all the fields. I don't want to have to have them go to a new page. I want the additional fields to expand. I think I need JavaScript for that. Please advise?
-
Thanks for the response. I have looked for filters in the gmail settings but I don't have any filters set up. Also, I'm using Outlook as my mail client and I didn't set any filters there. I have looked for settings that I could configure, but there isn't or I don't know and can't find any that would help.
-
Hi, I was wondering if anyone is having the same problem as i am or if anyone has a fix. When I download Emails via pop3 from gmail, the number of emails downloaded is less than the total number of emails I have. I have set gmail to download all email including ones downloaded already, but that still doesnt help. I am using outlook, but I also tried this on thunderbird and I get the same number of emails.
-
I know that this card will support 2 monitors, but if I have two of these cards will I be able to use four monitors?
-
anyone can help?
-
The thing is I want to email it to a cell phone. when its emailed as excel file it shows up really nicely.
-
Just so I know i'm understanding it currently 1. Output the php as a csv file 2. import the csv file into an excel file 3. email the excel file Would that work, or do I have to do any special steps to output the html as csv file?
-
I have a php script that outputs tables in html. I want to be able to export that data into excel. I'm not sure what steps to take. I then want to email that excel file. I want this done automatically using a script. Not manually lol
-
Hi, Is there a way to export dynamic HTML output from php into an excel file? Any ideas how?
-
Hi, I have a remote linux smtp server. In th:php.ini file I don't know what i'm supposed to put for the path. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = usr/sbin/sendmail When I put the above code it gives me an error cuz i dont have sendmail installed on my local machine, its installed on a remote machine. What would i have to put for the senmail path?
-
Hi, I'm trying to send email using PHP and a remote Windows smtp server. I changed my php.ini file to point to the ip address of the server and set the From settings. The next thing I did was: 1. Upload the script <?php $to = "[email protected]"; $subject = "Hi!"; $body = "Hi,\n\nHello World!"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> 2. I uploaded the script to my server. 3. I opened the page where the script is located and I get an error saying Message delivery failed... What am I doing wrong? Thanks in advance.
-
We will be looking at this everyday except weekends and holidays. I was thinking that maybe if I check whether there is one form filled. If there is, then it is not a weekend or holiday, so if any forms weren't submitted then 0's will be inserted. You foresee any problems with this?
-
Hi, I need some help. I'm trying to write a program that will display forms submitted the current date and forms submitted the previous day. However, when a form has not been submitted for a day, I want to be able to insert zeros as values. Now in the program I retrieve records by querying the last two forms entered. That way, I don't have to worry about weekends and holidays. Any ideas on how to solve the problem of incomplete forms?
-
Hi, I need some help. I'm trying to write a program that will display forms submitted the current date and forms submitted the previous day. However, when a form has not been submitted for a day, I want to be able to insert zeros as values. Now in the program I retrieve records by querying the last two forms entered. That way, I don't have to worry about weekends and holidays. Any ideas on how to solve the problem of incomplete forms?
-
I don't know about Smarty but in ITX, whenever I change the order, the values that are calculated also change. And I can't use any PHP in ITX, it only allows html. Also, If i leave a block out that I don't want to use, it causes everything to disappear. Any ideas why this is the case?? ???
-
Yes, ITX is a template in PEAR.
-
Does the order of the blocks matter in the tpl file. I have my program written in a certain order, but I don't want it displayed in the same order, and I don't want to display some of the blocks. So when I include the blocks I want to display in the tpl file, they will not print. Please advise.
-
thank you!!!!!!!!!!!