Forum: PHP Jul 7th, 2009 |
| Replies: 2 Views: 294 I want to get the contents of a particular file on a the web server, and then echo the contents into a text box on a web page. What should I use. I was thinking file_get_contents would probably be... |
Forum: PHP Jun 8th, 2009 |
| Replies: 3 Views: 517 I figured it out myself this is what I did
This is the restore part
<?php // mysql_backup_restore.php
error_reporting(E_ALL);
// PATTERN OF THE NAME OF THE BACKUP FILES |
Forum: PHP Jun 4th, 2009 |
| Replies: 3 Views: 517 I am trying to create a form that exports my mysql database , and can also reimport the mysql database using like a form. I am trying to do this in PHP any ideas on how it can be done or if it''s... |
Forum: PHP Apr 16th, 2009 |
| Replies: 1 Views: 446 I wrote this php birthday script to send emails to people whos birthday is today. I know there is a more efficient way to do this, but because i did not use the standard unix timestamp in my mysql... |
Forum: PHP Apr 15th, 2009 |
| Replies: 11 Views: 1,565 $timeStamp = strtotime( "1986-11-02" , time() );
echo date( "M. j, Y" , $timeStamp );
This worked fine for me. I was messing the strtotime part and just using the date function. Thanks for the... |
Forum: PHP Apr 15th, 2009 |
| Replies: 11 Views: 1,565 I have been trying to format a date that I receive from a value in a mysql database. The format in mysql is as follows.
1986-08-02
I want to convert that to
Aug. 2, 1986
I tried the... |
Forum: PHP Apr 6th, 2009 |
| Replies: 2 Views: 790 hey guys,
I have this php code that receives variables form flash to create image which works fine.
what i want to do is save that image after its been created on my server instead of showing it as... |
Forum: PHP Mar 19th, 2009 |
| Replies: 2 Views: 477 Thanks that was it. I was so close. |
Forum: PHP Mar 19th, 2009 |
| Replies: 2 Views: 477 I have this foreach loop that loops through the title and link of an xml file. I want to be able to sperate the title and put it into an array or assign each title to a variable. I also want to do... |
Forum: PHP Mar 19th, 2009 |
| Replies: 4 Views: 390 Thanks for the advise I didnt realize it was that much faster. I am using simple xml, and here is my code but i might change to what you used.
<?php // Load and parse the XML document
$rss =... |
Forum: PHP Mar 17th, 2009 |
| Replies: 4 Views: 390 Ok so I have this xml file
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">... |
Forum: PHP Mar 9th, 2009 |
| Replies: 5 Views: 278 That worked perfectly thank you. |
Forum: PHP Mar 9th, 2009 |
| Replies: 5 Views: 278 this wouldnt work because I have multiple websites hosted on this linux server. That would redirect all of the websites that resolve to my ipaddress |
Forum: PHP Mar 9th, 2009 |
| Replies: 5 Views: 278 I have a .htaccess file which forwards non www request to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1... |
Forum: PHP Mar 4th, 2009 |
| Replies: 9 Views: 831 Also, make sure that the variables are receiving the data. Do an echo on $_POST['SchoolEmail']; to make sure that there is something there and that the post is actually passing the value. |
Forum: JavaScript / DHTML / AJAX Mar 4th, 2009 |
| Replies: 4 Views: 1,500 figured out a solution decided to use php to loop through the images.
<?
//PHP SCRIPT: getimages.php
Header("content-type: application/x-javascript");
//This function gets the file names... |
Forum: PHP Mar 3rd, 2009 |
| Replies: 7 Views: 518 Thank you for you input cwarn23. That solution did work for me. And Im doing something in Javascript which is very similar excepts it fades through images, and I think I am going to use the same... |
Forum: JavaScript / DHTML / AJAX Mar 3rd, 2009 |
| Replies: 4 Views: 1,500 Here is my complete code. I just want to make it so it grabs any image in that folder. Right now i have to declare what images for it to grab. In the code you will see that there three different... |
Forum: PHP Mar 1st, 2009 |
| Replies: 7 Views: 518 what if the images don't have a number? |
Forum: PHP Mar 1st, 2009 |
| Replies: 7 Views: 518 I have this code which display random images from any folder on a webserver. You just have to give each picture the same name but with a number at the end of it (make foo.bar foo1.bar footype.bar... |
Forum: PHP Feb 27th, 2009 |
| Replies: 4 Views: 724 Hey, you would to use crontab to do this job depending on what type of server you are running this on you should have no problem. Crontab is almost on all linux machines. If you have a shared host... |
Forum: JavaScript / DHTML / AJAX Feb 26th, 2009 |
| Replies: 4 Views: 1,500 I have this gallery that loops through images in a folder. But you have to set what images. Is there a way that I can make it loop though as many images that are in this folder maybe using a for loop... |
Forum: JavaScript / DHTML / AJAX Jan 14th, 2009 |
| Replies: 0 Views: 845 I am installed this plugin in word press and right now what the plugin in does is make the text scroll. I know how to implement a javascript to make the text fade in and out instead. I just do not... |
Forum: PHP Jan 14th, 2009 |
| Replies: 0 Views: 467 I have this word press plug in that scrolls text across the screen like a marquee. Instead of it scrolling I want to to revise so that the text fades in and out. I have not been able to do it. Below... |
Forum: Python Feb 27th, 2008 |
| Replies: 5 Views: 1,284 Ah! I now see! I feel like such an idiot after seeing this. Thanks a lot Jeff. I have one question though could you explain the try block a little bit more clearer I am having troubles understanding... |
Forum: Python Feb 25th, 2008 |
| Replies: 5 Views: 1,284 I had orginally tried date time but it didnt work. Hmm... If cant figure it out by the end of today. I'll just forget about. Thanks, for the advice. |
Forum: Python Feb 25th, 2008 |
| Replies: 5 Views: 1,284 I have a .txt log file and must of it is crap. But there are parts that display when a user logs in, and at what time the logged in. Below is a portion of the log file. For example, "user1" is a user... |
Forum: Python Feb 23rd, 2008 |
| Replies: 194 Views: 85,559 So, I was trying to go through this code and understand. But I have a few questions on it. And please bear with me I'm just starting to learn python.
txt = txt[0] + txt[2:]
Why did you... |