[PHP] highlight_string for VB, CPP or .NET source code?

2003-02-18 Thread stefen Lars
, the output of this function / these functions would look very similar to that of ‘highlight_string’. Thank you in advance for any light that you could shed on this subject. All the best Stefen Lars _ The new MSN 8: advanced junk

[PHP] Cross-Site Sesison ID Propagation

2002-07-08 Thread Stefen Lars
Hello all fellow-hackers I am working on a project that includes a number of web sites, which are grouped together into one network. Kind of like the ‘OSDN’ network, of which Slashdot.org, for example, is a member. I need to implement a cross-site session. Using a technique, similar to the on

Re: [PHP] Cross-Site Sesison ID Propagation

2002-07-08 Thread Stefen Lars
‘CDSM specification’ is… I am not familiar with the term. Thanks again for your comments. They have been really helpful to me. Stefen >From: Chris Shiflett <[EMAIL PROTECTED]> >To: Chris Shiflett <[EMAIL PROTECTED]> >CC: Stefen Lars <[EMAIL PROTECTED]>, [EMAIL PR

[PHP] Code snippet archive

2001-03-15 Thread Stefen Lars
Hello all One part of the task that I have been recently been assigned involves creating a 'code archive' of sample applications for a certain Visual Basic control. The idea is that a web visitor can download code snippets and the associated Visual Basic project file in a .zip file. By playing

[PHP] The definitive source for PHP news, tutorials and articles (also, as XML)

2002-04-28 Thread Stefen Lars
Hello all I posted a link to Coding The Web (CodingTheWeb.com) a while ago as they had a channel dedicated to Google. It seems that they have updated the site a bit in the past few days and now have a news channel for PHP too. It is pretty cool: http://www.codingtheweb.com/projects/newslog/po

[PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Stefen Lars
Hello all I have written a very simple PHP script to copy the data from one MySQL database table on SERVERA to another MySQL database table on SERVERB. Using PHP, I simply connect to each server and copy the data across. That works well. However, natively, MySQL works with clear text. i.e. th

RE: [PHP] Secure MySQL connections in PHP with 'stunnel'

2002-04-29 Thread Stefen Lars
between 2 MySQL servers?? Stefen >From: "Cal Evans" <[EMAIL PROTECTED]> >Reply-To: <[EMAIL PROTECTED]> >To: "Stefen Lars" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: RE: [PHP] Secure MySQL connections in PHP with 'stunnel' &g

[PHP] Turning OFF ‘auto_prepend_file’ on a page by page basis

2002-05-03 Thread Stefen Lars
Hello all I am using ‘auto_prepend_file’ to include a load of files. This is prepended to all PHP parsed files. The prepend files contain the HTML for the framework of my site. How I want to create an XML file for other web sites to use. I do this by getting some data from a database and pack

RE: [PHP] Turning OFF 'auto_prepend_file' on a page by page basis

2002-05-03 Thread Stefen Lars
ini_set(), do you mean ini_set("auto_prepend_file", "/a/blank/file.php"); ?? >From: "Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]> >To: "'Stefen Lars'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: RE: [P

[PHP] Returning mutliple matches of a regex with preg_match()

2002-03-20 Thread Stefen Lars
Hello all I have been scratching my head for the last two days about this regular expression problem. I would be really VERY happy if someone could help me! I have the following text in the file 'text.htm', for example: -- Cow, Cow, Cow, Cow, Cow Cow, Cow, Cow, Cow, Cow Cow, Cow, Cow, Cow, C

Re: [PHP] Returning mutliple matches of a regex with preg_match()

2002-03-21 Thread Stefen Lars
2:35 - > >Also, make sure that you make the match "ungreedy" with the U modifier, or >use: >(.*?) > > >James > >"Niklas lampén" wrote in message >000501c1d0aa$4a5d97f0$ba93c5c3@Niklas">news:000501c1d0aa$4a5d97f0$ba93c5c3@Niklas... > > preg_m

[PHP] Sending HTML from PHP with 'mail' as a cron job

2002-04-11 Thread Stefen Lars
Hello all I have a script called ‘report.php’ that generates a report in HTML. This report must be created at regular intervals; hence I have set up a cron job to call that script. The output of ‘report.php’ must be sent by e-mail. I use the following command: /usr/bin/lynx -source http://ser

[PHP] Using Google's new SOAP based API in PHP

2002-04-12 Thread Stefen Lars
Hello all CodingTheWeb.com has several reports of Google's new SOAP based application programming interface: http://www.codingtheweb.com/projects/newslog/index.php?filter=Google Has anyone tries using this in PHP yet??? S. _ Cha

[PHP] Version 4.1.0's New Input Mechanism

2001-12-11 Thread Stefen Lars
Hello all Whereas I fully understand the security implications of PHP's old GET, POST and COOKIE variables and welcome with open arms the development team's decision to depreciate this facet of PHP, I am a little uncertain exactly why they have come up with the solution that appears in the ver

[PHP] Insecurity with PHP authorization

2001-08-07 Thread Stefen Lars
Hello all I have just implemented a mySQL authorization: each html and php page checks to see whether a user is logged in by checking a cookie in the user browser. The user can log out and edit her profile (including password). If a page is called without the user being logged in, he is presen

Re: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Stefen Lars
sts to files as the env >var will not be set. > >I've used it on my setup and it's fine. As noted above >this will only work with apache > 1.3.12 > >If you get it working could you forward it to the php >list I can't get there through this a/c > >HTH >

Re: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Stefen Lars
used it on my setup and it's fine. As noted above >this will only work with apache > 1.3.12 > >If you get it working could you forward it to the php >list I can't get there through this a/c > >HTH > >M@ > --- Stefen Lars <[EMAIL PROTECTED]> wrote:

[PHP] Regex help

2001-08-22 Thread Stefen Lars
Hello all In the Apache config file, we have the following directive: SetEnvIfNoCase Referer "^http://www.oursite.com/"; local_ref=1 Order Allow,Deny Allow from env=local_ref We use this to prevent people from directly linking to .gif and .jpg files. This technique is covered here: htt

[PHP] Returning a specific 'record' from an XML file

2001-09-19 Thread Stefen Lars
Hello all I am looking for a PHP example or tutorial that shows how it is possible to return one particular record (is that the correct terminology for an XML file?) from an XML file. For example, consider this very simple XML file: Hannibal Thomas H

[PHP] XML parsing without the PHP4 XML functions

2001-02-14 Thread Stefen Lars
Hello all I have recently been assigned the task of parsing an xml file and format the contents of the file in HTML. The xml file lies on another server. Our web space provider does not provide the XML functions (nor is he willing to install them) :-gr. I am sure that I am not the only who ha