Hi all
I followed the tutorial here: http://www.shadow-fox.net/site/tutorial/45-Create-Dynamic-URLs-With-Mod-Rewrite-and-PHP-Functions to create a rewrite rule so that
http://blah/index.php?id=7&page=4 could be written
http://blah/index//id/7/page/4/ for search engine friendliness, but it's not...
Hi
Is it possible to save a modifed XML file in Perl's XPath?
I have a script that looks for blank id attributes in an xml file and populates them with a unique ID...
my $updated=0;
my $xp = XML::XPath->new(filename => $file);
my $nodeset = $xp->find('//@id'); # find all ids
foreach my...
Hi
I come from a PHP background and would like to know the code to include content from an external URL. In PHP, it's
<?
include("http://www.blah.com");
?>
and to include content from a secure URL, it's
<?
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL...
Hi, this is a newbie question, but how do I copy and paste a symbol in such a way that it is no longer linked to the original, ie so the copy does not become an instance? I have a symbol I want to use innumerous places but with different text and despite using the techniques in the help, I cant...
Hi
Whats the best approach to overwriting a file from an ftp site with PHP?
I know you cant overwrite a file with fopen, but I dont want to use ftp functions to log in and delete the file because I am using fopen to stream data from a variable into a file, i.e. I'm opening the connection with...
Hi
How can I have an event fire off (i.e. a popup) when a user closes their browser or clicks an offsite link, but not when they submit a form or follow a link on the page.
I have an "edit article" page where a user updates details in a form. During this time the article is locked. If...
Hi
I am trying to bypass the whole issue with a server being in one timezone and clients in the other by being a bit clever. Having the user choose a tiemzone froma dropdown isnt working for me - daylight savings etc always seems to screw the time up, so what I am doing is passing a hidden...
Hi Guys
I have a table of news articles with 5 columns - id (primary key, unique), article_id, status (int 0 or 1),date(timestamp), and content
Every time an article is updated, a new row goes into the table with the same article_id as the original article, but a new date created and status=0...
Hi
I'm trying to pass variables to php pages without using a querystring or GET in a secure manner.
I have a Do-While loop that pulls fields from a DB, ie
<?if (mysql_num_rows($result))
{
do{
?>
<a href="edit_file.php?id=<?=$row['id']?>"><?=$row['name']?></a><br>
<?}
}while($row =...
Hi all
I am trying to keep my code tidy by having form processing happen within functions on a new site I am building. I used to just stick a lot of PHP at the top of each page to process forms but that was messy.
So now at the top of my file I have
include("global/functions.php")...
Hi Guys
I guess this is pretty simple
I want to remove the leftmost 53 characters in a string and return a string of everything that remains
i.e
@patharray contains
c:\inetpub\wwwroot\index.html
c:\inetpub\wwwroot\home.html
I want to write
wwwroot\index.html
wwwroot\home.html
into a textfile...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.