Search found 9 matches
- Sun Jun 22, 2008 8:23 pm
- Forum: PHP - Code
- Topic: Arrays inside of arrays
- Replies: 0
- Views: 84
Arrays inside of arrays
I am using a calendar script, and the example places static code for the days of the month that link to certain pages: <?php $days = array( 2=>array('#','linked-day'), 3=>array('#','linked-day'), 8=>array('#','linked-day'), 22=>array('#','linked-day'), ); ...
- Tue Jul 31, 2007 11:00 am
- Forum: PHP - Code
- Topic: Echo the difference between '/' and '/index.php'
- Replies: 3
- Views: 291
- Tue Jul 31, 2007 10:10 am
- Forum: PHP - Code
- Topic: Echo the difference between '/' and '/index.php'
- Replies: 3
- Views: 291
Echo the difference between '/' and '/index.php'
For some reason, my site lags when it runs "www.website.com", but loads just fine when it runs "www.website.com/index.php" Is there a way that I can tell if the URL has the "index.php" in it or not? I've tried to use the predefined variables REQUEST_URI, SCRIPT_NAME, SC...
- Wed Feb 28, 2007 10:50 am
- Forum: PHP - Code
- Topic: Extracting data from an uploaded .xls/.csv file
- Replies: 2
- Views: 290
Extracting data from an uploaded .xls/.csv file
I have an upload form on my page that excepts .xls or .csv files, and I need to find a way to extract the rows of the file and store them in a database. I have done this the reverse way (pulling items from mysql and exporting as .xls files), but I'm not sure how to parse the values out of the file t...
- Tue Feb 06, 2007 2:07 pm
- Forum: PHP - Code
- Topic: Save generated XML to the server
- Replies: 3
- Views: 321
Sort of ...
That's exactly what I'm looking for except that I'm running version 4.3.2. I need something that will do that, but could work on an older version. The php script will be running on the same server as the .xml file. I think I know how to save it to the server, I just need to know how to create the .x...
- Tue Feb 06, 2007 1:17 pm
- Forum: PHP - Code
- Topic: Save generated XML to the server
- Replies: 3
- Views: 321
Save generated XML to the server
I want to be able to generate an XML document, and then save it as a .xml file to the server. In general, here's what I'm trying to produce: $xml_code = '<?xml version="1.0" encoding="UTF-8"?>'; $xml_code = $xml_code . '<gallery>'; $xml_code = $xml_code . '<album id="boulder...
- Wed Oct 04, 2006 1:25 pm
- Forum: PHP - Code
- Topic: Converting Smart Quotes for PHP
- Replies: 6
- Views: 559
- Wed Oct 04, 2006 12:16 pm
- Forum: PHP - Code
- Topic: Converting Smart Quotes for PHP
- Replies: 6
- Views: 559
It comes out as the special one. It can be seen here: http://si.unl.edu/yearoneunl/feed.xml Don't think it's because it's xml, there is a switch in apache that will let it output as php. I'm running a bunch of php code inside, that is not the problem. The problem is still trying to remove those spec...
- Tue Oct 03, 2006 3:57 pm
- Forum: PHP - Code
- Topic: Converting Smart Quotes for PHP
- Replies: 6
- Views: 559
Converting Smart Quotes for PHP
I am trying to write an XML file as PHP. This is not valid however because of the smart quotes from the db. This is the ’ character. I've looked all over, but I can't find a single script that will find that character on my site and convert it to a character like '. Any help on converting the smart ...