Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: pr0fess0r
  • Content: Threads
  • Order by date
  1. pr0fess0r

    Using // in a RewriteRule

    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...
  2. pr0fess0r

    Saving an XML file modified by XPath

    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...
  3. pr0fess0r

    Including external SSL content

    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(&quot;http://www.blah.com&quot;); ?> and to include content from a secure URL, it's <? $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL...
  4. pr0fess0r

    Copying a symbol

    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...
  5. pr0fess0r

    deleting file from ftp site

    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...
  6. pr0fess0r

    popup when browser closes but NOT when browing to another page

    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 &quot;edit article&quot; page where a user updates details in a form. During this time the article is locked. If...
  7. pr0fess0r

    client and server timezone woes

    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...
  8. pr0fess0r

    Difficult query using groupwise maximum

    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...
  9. pr0fess0r

    passing variables securely between pages

    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=&quot;edit_file.php?id=<?=$row['id']?>&quot;><?=$row['name']?></a><br> <?} }while($row =...
  10. pr0fess0r

    Dealing with form variables in functions

    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(&quot;global/functions.php&quot;)...
  11. pr0fess0r

    Help with substr to chop a string

    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...

Part and Inventory Search

Back
Top