[PHP] get XSLT on server without Sablotron

2005-12-09 Thread Gerben
Is there a way to get some sort of XSLT working on my server?

safe-mode is off
run under apache (php_sapi_mode=apache)
dl() is enabled
I only have FTP access
server runs under linux

Can I download sablotron.so somewhere an load it using dl() ???
Is there some PHP code that can transform XML using XSLT ???
(like http://www.dopscripts.com/doc/description.html) 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Database engine in PHP

2005-03-05 Thread Gerben
Thanks Manuel. That's excactly what I was looking for. This will save me a 
lot of time.
Thanks a lot.

greeting Gerben

Manuel Lemos [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hello,


 on 03/04/2005 03:45 PM Gerben said the following:
 I was wondering if there is any DBMS, like MySQL, which is (fully) 
 implemented
 in php. That is a database engine written in PHP.
 I know this is not the most effecient way, but I'm not planning to use it
 for heavy weight database-driven-application.

 Yes, you may want to take a look at this flat file database manager class 
 that even supports SQL, which seems to be exactly what you are looking 
 for:

 http://www.phpclasses.org/pdb


 -- 

 Regards,
 Manuel Lemos

 PHP Classes - Free ready to use OOP components written in PHP
 http://www.phpclasses.org/

 PHP Reviews - Reviews of PHP books and other products
 http://www.phpclasses.org/reviews/

 Metastorage - Data object relational mapping layer generator
 http://www.meta-language.net/metastorage.html 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Database engine in PHP

2005-03-04 Thread Gerben
Hi,

I have already asked this question, but I think I wasn't clear enough of my
intentions (thanks for all your responses anyway)

I was wondering if there is any DBMS, like MySQL, which is (fully) 
implemented
in php. That is a database engine written in PHP.
I know this is not the most effecient way, but I'm not planning to use it
for heavy weight database-driven-application.

I just want a way to store simple data and I thought that SQL would be a
nice interface. Since it could be easelly ported to mysql (for which I have 
to pay my host).
Full SQL support is'n needed either. Just some basis queries.

Maybe it very ineffecient, but I think basic SQL will be fast enough (with 
not to many records (say 50)).
Who knows maybe I am crazy :-P

greetings 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php DBMS

2005-03-02 Thread Gerben
Thanks for all your responses, but I think I wasn't clear enough of my 
intentions.
Actually, that what I'm looking for; A database engine written in PHP.
I know this is not the most effecient way, but I'm not planning to use it 
for heavy weight database-driven-application.
I just want a way to store simple data and I thought this SQL would be a 
nice interface. Since it could be easelly ported to mysql.


John Holmes [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Gerben wrote:
 I'm wondering if there is any DBMS, like MySQL, which is (fully) 
 implemented
 in php. This so you don't have to buy a MySQL database.

 I'm currently trying to put something together, but this would be a waste 
 of
 time if it already exists.

 SQLite is probably what you're after. It comes with PHP5 and can be built 
 into PHP4, iirc. Of course, I'm assuming what you mean by fully 
 implemented is included with PHP, not written with it. A database written 
 in PHP would not be good, imo.

 -- 

 ---John Holmes...

 Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

 php|architect: The Magazine for PHP Professionals – www.phparch.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php DBMS

2005-02-28 Thread Gerben
Hi,

I'm wondering if there is any DBMS, like MySQL, which is (fully) implemented
in php. This so you don't have to buy a MySQL database.

I'm currently trying to put something together, but this would be a waste of
time if it already exists.

greetings
Gerben
Holland

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD

2004-10-09 Thread Gerben
how can i find out in PHP which version of GD is installed. I tried checking 
for function-existence of imagecreatetruecolor and imagecopyresampled, but 
these functions exist in older GD versions, but aren't implemented.
I want to know if I can use the functions imagecreatetruecolor() and 
imagecopyresampled() ? 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: stand alone php

2004-10-02 Thread Gerben
search the history.
questions about compiling are already asked before, so search for it. I 
wouldn's know.

Mag [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,
 Is there any app that converts php to a stand alone
 version?

 like a windows .exe program.


 Just curious.

 Thanks,
 Mag

 =
 --
 - The faulty interface lies between the chair and the keyboard.
 - Creativity is great, but plagiarism is faster!
 - Smile, everyone loves a moron. :-)



 ___
 Do you Yahoo!?
 Declare Yourself - Register online to vote today!
 http://vote.yahoo.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] custom 404 page

2004-09-21 Thread Gerben
I would like to know which headers I have to send on my own 404page?
I read somewhere I have to send the header HTTP 302 Found

I also want to know which header I have to send when I redirect from my 
404page?
do I need HTTP 201? 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: CSS not picked up

2004-09-13 Thread Gerben

probably a caching problem, but try looking for spelling errors (use W3C 
checker)

PS this is a PHP list not CSS


Jeff Swanberg [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I have the following in my CSS (loaded on the main site page):

 /* FOOTER */

 .footer {
font-family: Tahoma, Trebuchet MS;
font-size: 9px;
color: #BFBFBF;
text-decoration: none;
border: none;
line-height: 1.25em;
font-weight: bold;
 }

 .footer a:link {
font-family: Tahoma, Arial, Trebuchet MS;
font-size: 9px;
color: #BFBFBF;
text-decoration: none;
border: none;
line-height: 1.25em;
font-weight: bold;
 }

 .footer a:visited {
font-family: Tahoma, Arial, Trebuchet MS;
font-size: 9px;
color: #BFBFBF;
text-decoration: none;
border: none;
line-height: 1.25em;
font-weight: bold;
 }

 .footer a:hover {
font-family: Tahoma, Arial, Trebuchet MS;
font-size: 9px;
color: #BFBFBF;
text-decoration: none;
border: none;
line-height: 1.25em;
font-weight: bold;
 }

 and the following in my PHP script

 div class=footer style=position:absolute; top:680px; left:60px; 
 width:500; height:2; vertical-align:bottom; z-index:1;
 copy; 2004 Keatley Photography - a 
 href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a - 206 
 240-5543
 /div/td/tr


 But, when I change the style.css file and upload it and then refresh the 
 browser, any changes to the font, style, etc to the footer class are not 
 picked up.  What should I look for??

 Jeff 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: installing PHP on winXP

2004-09-05 Thread Gerben
my install-paths are still the same. the real problem (I think) is that I'm 
missing the php4apache dll for some peculiar reason ||:-|
Thanks anyway. I'll try downloading the zip file and doing it manually.


Chris Martin [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Gerben wrote:
 hi there

 I have a problem with installing PHP on my winXp with apache server using 
 the installer. I'm missing the sapi directory (c:/progra~1/php/sapi/) 
 with in it the php4apache.dll file which apache misses.
 The weird thing is that I've succesfully installed php and apache on this 
 same machine, but now it's not working.
 I've copied my httpd.conf and php.ini files from my last (succesfull) 
 installation.

 I have apache 1.3.28 and php 4.3.4 (but the latest version 4.3.8 also 
 doesn't work)

 Please help |:-(

 Are your paths the same as they were in your last install? If not, you 
 need to update the conf files. Especially your modules directory

 You might read along the PHP manual install instructions and verify 
 everythings in the right place. I always prefer the manual install anyway. 
 I usually place php4apache.dll (and php4ts.dll) in the Apache root, or 
 Apache/modules directory

 If all else fails you could uninstall and try the WAMP bundle.

 -- 
 Chris Martin
 Web Developer
 Open Source  Web Standards Advocate
 http://www.chriscodes.com/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: installing PHP on winXP

2004-09-05 Thread Gerben
I finially found the solution to my problem (see also 
http://www.sitepoint.com/forums/showthread.php?t=92314). I downloaded the 
php4apache dll from http://www.kromann.info/php4.php and it's now working 
like a charm.

thanks

Gerben [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 hi there

 I have a problem with installing PHP on my winXp with apache server using 
 the installer. I'm missing the sapi directory (c:/progra~1/php/sapi/) 
 with in it the php4apache.dll file which apache misses.
 The weird thing is that I've succesfully installed php and apache on this 
 same machine, but now it's not working.
 I've copied my httpd.conf and php.ini files from my last (succesfull) 
 installation.

 I have apache 1.3.28 and php 4.3.4 (but the latest version 4.3.8 also 
 doesn't work)

 Please help |:-( 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] installing PHP on winXP

2004-09-04 Thread Gerben
hi there

I have a problem with installing PHP on my winXp with apache server using 
the installer. I'm missing the sapi directory (c:/progra~1/php/sapi/) with 
in it the php4apache.dll file which apache misses.
The weird thing is that I've succesfully installed php and apache on this 
same machine, but now it's not working.
I've copied my httpd.conf and php.ini files from my last (succesfull) 
installation.

I have apache 1.3.28 and php 4.3.4 (but the latest version 4.3.8 also 
doesn't work)

Please help |:-( 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Print page without images

2004-07-20 Thread Gerben
css:

img{display:none;}

John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 francesco[AT]automationsoft[DOT]biz wrote:

  I know that it is a simple and maybe elementary
  question, but there is in PHP a function, like print
  or echo, that print only the text of an HTML page on printer?

 No. Use CSS.

 --
 ---John Holmes...

 Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

 php|architect: The Magazine for PHP Professionals – www.phparch.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Two Sites - One Backend

2004-07-06 Thread Gerben
Are you using 2 different servers or just one? if only one then how would
URL X and URL Y look?
Since X and Y will refer to a different file, my suggestion is to change the
include('X-header') to inlcude('Y-header') in the Y version.

Some more info whould be nice

Shaun [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I have created an online scheduling system using PHP and MySQL. The site
is
 uses CSS for the presentation and each page uses a header and footer file
so
 that only core functionality is contained in each page. I now need to
create
 another site which runs using the same database and function files but
looks
 completely different. So the only files I would need to add here are a new
 header, footer and CSS file. The new site will allow limited functionality
 to the current site. The functionality will be limited by the options
 viewable in the menu.

 My question is how can I configure the site such that if URL X is entered
 then the relevant header footer and CSS files are loaded and if URL Y is
 entered a different header, footer and CSS file is loaded?

 Thanks for your help

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Database Driven Links

2004-07-06 Thread Gerben
I think the function eval is what you are looking for. http://php.net/eval


Shaun [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I am modifying my site so that links for each page are held in a database
to
 make my site more portable. However if I have link such as
 edit_user.php?user_id=$_GET[user_id] stored in the database will the $_GET
 variable get processed and the appropriate value returned to the browser?

 Thanks for your help

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread Gerben
You will have to chmod these .htaccess files


John [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
what are the files permissons?
of these are set wrong it could cause your problem

On Mon, 05 Jul 2004 10:58:54 +0200, Václav Slovácek [EMAIL PROTECTED] wrote:
 Hi all,

 I have a problem, but maybe it's more about Apache than about PHP. I need
 to access a Apache .htaccess file from PHP and modify it, but I always get
 access denied error. Could you help me, with solving this problem?
 Thank you.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




--
John
[EMAIL PROTECTED]
http://www.whp.co.uk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Dissappering Tables Server wide

2004-07-05 Thread Gerben
Do you want all tables to dissapear or did this happen (unwanted)?

Chris [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi All.

 What would cause all the tables in all the databases to be deleted all at
 once?

 TIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Protecting database passwords

2004-07-01 Thread Gerben
I think he is talking about the password that is written inside the script
in the mysql_connect statement. I think he is worried that someone could
access it's code and find out the DB password.

One solution is to make the database only accessible from localhost (you
could create a new user/pass for outside localhost). That way nobody has any
use for that password.
Furthermore I believe it's impossible to access the php code since apache
always runs it through PHP, but I'm not an expert on that.


- Edwin - [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 On Wednesday 30 June 2004 09:58, Bob Hockney wrote:
  Hi there,
 
  I wrote a php script that accesses a database, and I am
  wondering about securing the password to the database.  I
  could prompt the user for the password every session, but
  I don't necessarily want the user to have the password.

 You mean the password for the database? Why would the user
 need that? If the users need a password to access the site,
 then create one for the *site*. Only you and your scripts
 need to know what the password for the database is...

  Unless I'm missing something, any on-disk place I store
  the password needs to be readable by PHP, and therefore
  isn't very secure.  I have restricted the rights of the
  database user, but I'm wondering how others have dealt
  with this, or maybe I'm completely missing the point.

 Or, am I missing the point? :)

 - E -

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Date Select

2004-06-25 Thread Gerben
select * from table where TO_DAYS(date_field)  ( TO_DAYS(NOW()) -7 )

this will give the entries of the last 7 days (and the ones that are in the
future)

Tom Chubb [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 How can I query a MySQL table to get the latest results from a date field?
 Basically, I am inserting several records at a time at the end of each
week.
 I want to have a page that displays the results for the last week only.
 The date format in the field is -MM-DD


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: printing out messages while processing a file

2004-06-23 Thread Gerben
just use the flush() method. this will send all text that is already pinted
see the documentation for more info

example:
print hello;
flush();
sleep(1000);
print  world;

gr GB

Merlin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi there,

 I am writing a backup_restore file which creates directories and picture
files
 with different resolutions out of an original file.

 After each process completes I would like to print out a [ok] message, but
 unfortunatelly it prints those msg out only when the script is completely
 through and done.

 How can I echo out status messages?

 The script is run by console php. ( I also noticed that \n or br does
not work
 for the console?!)

 Thank you for any help,

 Merlin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Auth_User

2004-06-20 Thread Gerben
This var means something else
when you write the following code:
Header(WWW-Authenticate: Basic realm=\Enter username and password\);
Header(HTTP/1.0 401 Unauthorized);
Your browser will produce a popup requesting a username an password

This it what you get returned when using $_SERVER['AUTH_USER']




Gabor NiederläNder [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi!

 I have installed a Apache Server (+php) in a Windows NT network. I
 would like to identify the Windows NT user visiting my php pages.
 When I was using IIS, I think it was quite easy to find it out through
 the $_SERVER['AUTH_USER'] variable. But it doesn't seem to work with
 apache. Is there another way?

 Cheers,
 Gabor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Mysql fetch_row()

2004-06-20 Thread Gerben
when I call mysql_fetch_row() I get an array, but this Array doesn't have
the fieldnames as array-keys.
I've seen several codes from others where they use something like

print $row['key'];

This doesn't work on my server. Is this because my server-software is too
old or am I using the wrong function?
PHP Version 4.3.4
mySQL version: 3.23.54

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: update count

2004-06-16 Thread Gerben
LIMIT 1


Bob Lockie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 What is the best way to only do an update if it going to update only one
 row?
 I want to protect my code so that it won't accidentally update more than
 one row.
 I can do a select first but there must be an easier way. :-)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] src=test.php

2004-06-16 Thread Gerben
I wondering how browsers handle the following html-codes:

link rel=stylesheet src=style.php /
and
script type=text/javascript src=code.php/script

are there any browser that will choke in it because the files don't have the
appropriate (.css and .js) extension?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP en XML een vraag waard

2004-06-15 Thread Gerben
Try asking your question in english. since this is an engelish newsgroup
oftewel stel je vraag in het engels



De Saedeleer Yves [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Gegroet,
 Hoi

 Ik ben reeds een tijdje bezig met PHP en hier en daar lukt er al eens iets
 :=))

  Maar nu stuit ik toch op een probleempje.
  Ik moet voor een siteje XML data gaan parsen die bekomen wordt uit een
URL.

  Als ik deze URL in een browser invoer dan krijg ik XML code terug.

  Mijn vraag is nu:
  Welke code moet ik gaan in voeren (instuderen) om de aldus bekomen gevens
 om
  te zetten in bruikbare data voor het gebruyik in PHP.

  ik voer in de browser het volgende in:
  http://www.websiote.com/xml/xmlonl.asp?custid=CustIDprodid=ProdID

  en dan krijg ik iets in de zin van de data hieronder terug:

?xml version=1.0 ?
  - RealData
MSG ID=0ok/MSG
  - ITEM
ID876607/ID
DESCAntec Aluminium Midi Tower 4x5,25 2x3,5 USB amp; IEEE1394
amp;
  audio 2x120mm fan NO PSU/DESC
PRICE CURRENCY=EUR103,3/PRICE
QTY32/QTY
DELDATE15062004/DELDATE
/ITEM
/RealData

  wat ik hieruit nodig heb zijn de volgende gegevens:
  het veld QTY, PRICE CURRENCY en het veld DELDATE

  ik heb totaal geen ervaring met de combinatie PHP en XML.
  Alle hulp is meer dan welkom.


  Yves,



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mkdir after mkdir

2004-06-06 Thread Gerben
Hello,

I have a problem with the mkdir function.
I'm trying to make a seperate folder every photoalbum. inside I want to
create another folder ('.../thumbnails/') for, you can guess, the
thumbnails.

At first it didn't work at all:

Warning: mkdir() failed (Permission denied) in
/home/virtual/site43/fst/var/www/html/beheer/albums/index.php on line 42

When I changed the rights of the folder I wanted to create the new folder in
to chmod 0777, the first MKDIR did work, but the second did not.

SAFE MODE Restriction in effect. The script whose uid is 1042 is not
allowed to access
/home/virtual/site43/fst/var/www/html/uploaded/images/albums/album_0 owned
by uid 48 in /home/virtual/site43/fst/var/www/html/beheer/albums/index.php
on line 43

this is very strange because the folders are both made in the same script.
Another strange thing is that I user mkdir($dir, 0777), but when I look at
the created folder it is 0755 and I can not change it.

That's pritty much my problem. Your help would be very much appreciated.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mkdir after mkdir

2004-06-06 Thread Gerben
I have those rights since the first dir is created. the problem is that the
2nd is not created

Daniel Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I think PHP and mkdir() is using the web servers rights.   So the web
server would need rights to create directories.

 Hello,
 
 I have a problem with the mkdir function.
 I'm trying to make a seperate folder every photoalbum. inside I want to
 create another folder ('.../thumbnails/') for, you can guess, the
 thumbnails.
 
 At first it didn't work at all:
 
 Warning: mkdir() failed (Permission denied) in
 /home/virtual/site43/fst/var/www/html/beheer/albums/index.php on line 42
 
 When I changed the rights of the folder I wanted to create the new
folder in
 to chmod 0777, the first MKDIR did work, but the second did not.
 
 SAFE MODE Restriction in effect. The script whose uid is 1042 is not
 allowed to access
 /home/virtual/site43/fst/var/www/html/uploaded/images/albums/album_0
owned
 by uid 48 in
/home/virtual/site43/fst/var/www/html/beheer/albums/index.php
 on line 43
 
 this is very strange because the folders are both made in the same
script.
 Another strange thing is that I user mkdir($dir, 0777), but when I look
at
 the created folder it is 0755 and I can not change it.
 
 That's pritty much my problem. Your help would be very much appreciated.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mkdir after mkdir

2004-06-06 Thread Gerben
Unfortunately my server has no ftp (but SSH).
It makes much sence what you said, but how can PHP (with uid=48) make a
directory with uid=1042.
both folder are (to be) made the same script, but only one is (with
uid=1042).

This is what makes it very peculiar.
I think I have skip the idea of creating 2 nested folders.

Thanks anyway

Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Gerben wrote:
  Hello,
 
  I have a problem with the mkdir function.
  I'm trying to make a seperate folder every photoalbum. inside I want to
  create another folder ('.../thumbnails/') for, you can guess, the
  thumbnails.
 
  At first it didn't work at all:
 
 
 Warning: mkdir() failed (Permission denied) in
 
  /home/virtual/site43/fst/var/www/html/beheer/albums/index.php on line 42
 
  When I changed the rights of the folder I wanted to create the new
folder in
  to chmod 0777, the first MKDIR did work, but the second did not.
 
 
 SAFE MODE Restriction in effect. The script whose uid is 1042 is not
 
  allowed to access
  /home/virtual/site43/fst/var/www/html/uploaded/images/albums/album_0
owned
  by uid 48 in
/home/virtual/site43/fst/var/www/html/beheer/albums/index.php
  on line 43
 
  this is very strange because the folders are both made in the same
script.
  Another strange thing is that I user mkdir($dir, 0777), but when I look
at
  the created folder it is 0755 and I can not change it.
 
  That's pritty much my problem. Your help would be very much appreciated.
 

 The first directory your script creates is owned by the uid apache runs
 under (48 in your case). Safe mode allows access only to files and
 directories owned by the uid of the executing script (1042 in your case).

 The workaround is to use ftp functions to create the directories. Simply
   use your ftp username and password to login to localhost and create
 the directories.

 HTH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] nl2br problem

2004-05-28 Thread Gerben
If have some problems with the nl2br function. It f*cks up my layout.
does anyone know how to create a true nl2br function in stead of a
nl2br-and-nl function.
i.e. I just want everything on one line.

I used:
str_replace(\n, , nl2br($text));
but I don't like it that much and I don't know if nl2br produces \r-s

Greetings,
Gerben
Holland

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: nl2br problem

2004-05-28 Thread Gerben
my indentation is screwed up when I use nl2br();




Justin Patrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Gerben wrote:

  If have some problems with the nl2br function. It f*cks up my layout.
  does anyone know how to create a true nl2br function in stead of a
  nl2br-and-nl function.
  i.e. I just want everything on one line.
 
  I used:
  str_replace(\n, , nl2br($text));
  but I don't like it that much and I don't know if nl2br produces \r-s
 
  Greetings,
  Gerben
  Holland

 I'm not quite sure how extra newlines could be screwing up your
layout.

 If you just want to remove all newlines from your text before
 outputting, you could use:

 $text = str_replace(array(\r, \n), '', $text);

 You could also do something like this:

 $text = str_replace(array(\r\n, \r, \n), 'br/', $text);
 --
 paperCrane Justin Patrin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: protecting web page

2004-05-05 Thread Gerben
The best I can do is the following which would protects from printing, but
you should check cause not all browsers support css the way they should.

html
  head
style media=print
  body{display:none;}
/style
  /head
  body
  /body
/html

greetings

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 i'm designing a web application and i want to protect my web page from
 printing and if possible want to protect source code too.

 Do you know any solution that can help me. I've find an application named
 HTML guard but it only work for static html pages. I need more a class or
 function to prevent for printing.

 Thanks for your help,

 Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Javascript help

2004-04-13 Thread Gerben
to open window:
window.open ('test.html','winname')

to close window:
window.open ('','winname').close()


Brent Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all

I know this is not a Javascript mailing list, and I do apologies.

I have this problem where in my php and I know very little javascript that I
execute a function to create a window.
But I need to know if anyone knows of the function to kill that window, once
one of my other functions is finished

Anyone know of a javascript mailing list, that what I would not have to post
the wrong thread to this mailing list.

Kind Regards and thank you
Brent Clark

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Hiding email address from Robots ??

2004-04-09 Thread Gerben
you could make it more difficult when you replace the href=... with
href=#. the only problem now is that people without javascript can's use
it.
you can make the onClick part (almost)impossible to harvest by putting
part(s) of the adres into a variable somewhere else in the html-code
like this:

scriptvar nospam = 'mail'/script
a href=#
onclick=location.href='mai'+'lto:'+nospam+unescape('%40')+'domain.com';
return false;mail#x40;do!--make it difficult--main#x2e;com/a

the weakest link is now the part between the a an /a


Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 * Thus wrote Gerben ([EMAIL PROTECTED]):
  just google for it. there are several PHP classes that do that for you.
  try something like:
  a href=mail-at-domain-dot-com
  onclick=location.href='mai'+'lto:'+'mail'+unescape('%40')+'domain.com';
  return false;mail#x40;do!--make it difficult--main#x2e;com/a

 Only problem is anything obscured can pretty much be found
   /(\w+).*(at|@).*(\w+).*(\.|dot).*(\w+)/

 Even javascript could be rendered then captured. It all depends on
 the persons dedication on finding them.


 Curt
 --
 I used to think I was indecisive, but now I'm not so sure.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Hiding email address from Robots ??

2004-04-08 Thread Gerben
just google for it. there are several PHP classes that do that for you.
try something like:
a href=mail-at-domain-dot-com
onclick=location.href='mai'+'lto:'+'mail'+unescape('%40')+'domain.com';
return false;mail#x40;do!--make it difficult--main#x2e;com/a
(I didn't check it)
I hope you can read it.


News [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Looking for opinions before I start using this to hide the email address
on
 a page

 $nx = username;
 $sx = domain;
 $mx = [EMAIL PROTECTED];

 Then mailto:? echo $mx ?

 Hopefully a Robot would read the address as the result of $mx, which is
 totally useless - but it seems too easy.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: saving as .XLS

2004-03-26 Thread Gerben
just save as an csv-file (comma seperated values)

Jon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi, I am looking for some information about the way of saving the result
of
 my php script (html table) with .XLS (ms excel) format. Do you know where
 could I get info about this?
 Thanks,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SimpleXML node detection.

2004-03-24 Thread Gerben
couldn't you use something like. It's a bit more neat

~section ignore=true
~namefoo/name
~contentfoo/content
~/section



William Bailey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Morning all,

 Hopefully a quick question i need to check if a node exists for a
 SimpleXML object but no matter how i try i simple cant find a way to do
 this as it always creates a new object even if the node dosen't exist in
 the xml document.

 My peoblem is that i have something like the following xml...

 ~section
 ~namefoo/name
 ~contentfoo/content
 ~ignore /
 ~/section
 ~section
 ~nameblah/name
 ~contentblah/content
 ~/section

 Where there is an ignore tag to specify that i ignore that item

 Any ideas on how i can check to see it the ignore node exists or not?


 - --
 Regards,
 William Bailey.
 Pro-Net Internet Services Ltd.
 http://www.pro-net.co.uk/
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (MingW32)
 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

 iD8DBQFAYV7azSfrYDJMXmERAlSQAJ40wLIRmbSy0vKy0bdLSqU/JGnqbACfd/Hc
 114wFBzKu+Z6JvsosvuRKBA=
 =lhbH
 -END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Constants

2004-03-23 Thread Gerben
this is probably because Foo is an interface instead of a class. interfaces
can't contain any data as far as I know.

Jakes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 The bug server looks like its down, so I will just post the bug here, and
 hopefully someone
 will spot it

 PHP version: 5RC1

 ?php
interface Foo {
   const MY_FOO = hello world;
  }
 class Bar implements Foo  {
 public function displayFoo(){
print MY_FOO;
 }
 }
 $obj = new Bar;
   $obj-displayFoo();
 ?

 The results should display hello world, but it prints out MY_FOO.

 Thanks

 Jakes

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: php and email

2004-03-23 Thread Gerben
try using '  instead of 


Steven Mac Intye [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all,

 Im wondering if anyone can help me with this problem

 I have a form with the following line of code;

 $message .= a

href=\http://127.0.0.1/devsite/activate.php?member=$realnamehash=$initPass
\Click
 here to activate/a\n;

 What I actually get is the following output;

 a href=ttp://127.0.0.1/devsite/activate.php?member=Steven Mac
 Intyrehash95aea7a8aee0fdcc90d7e9893c75bb3Click here to activate/a

 You will see it is missing the h out of http and the = out of hash=
 ... also the first charactor of the hash variable is missing.

 Has anyone else seen this ? Know how to fix it ?

 PLEASE HELP

 Steven

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: login scripts not secure?? help!

2004-03-23 Thread Gerben
try using $HTTP_SESSION_VARS[]

by the way. if hacks can find out the user-pass combination they can just
use the normal way of logging in ;-)

Andy B [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi

in an attempt to create a login system for site administrators on a website
i come into the following problem that bothers me because i cant find any
way to fix it.

problem:
most login scripts/systems i look at for examples on how to make a login
section from sessions (allow the administrator to go between login required
pages and also be able to go to public pages) without having to login again
(the only way an administrator has to login again is if they close the
browser on that site)...

i run into the deal where most login scripts check to see if
$_SESSION[username] or a $_SESSION var has been set or is valid.  i noticed
this could be a very bad thing because there is nothing stopping an outside
link from doing something like:
a href=securepage.php?_SESSION[username]=admin_SESSION[pwd]=passwordgo
to secure page/a
and being valid (that is if they manage to hack the user/pwd)...

any ideas how to create such a system?

any ways around that?? i need a system that will not do that

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: too much trimming

2004-03-20 Thread Gerben
you need to add an space after ? for to output the newline after it.


Ivan Sergio Borgonovo [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I've simple code like this:

 -- begin --
 #!/usr/bin/php -q
 ?
 $pippo='goofy'
 ?

 hey my name is ?= $pippo ?
 and
 I feel good
 -- end --

 I would expect this output:

 -- begin --

 hey my name is goofy
 and
 I feel good
 -- end --

 but I obtain this:
 -- begin --

 hey my name is goofy and
 I feel good
 -- end --

 Lines are indented with tabs.
 I suspect something related to -w flag, but I haven't been able to
 switch this behaviour off.

 thx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php