[PHP] java.lang.UnsatisfiedLinkError: send trying to install PHP as a Servlet for Tomcat 5.0.18 on FreeBSD

2004-03-01 Thread Dan Hardiker
:856) Does anyone have any idea how to get around this? Thanks for your time, -- Dan Hardiker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remove ' from string

2003-03-19 Thread Dan Hardiker
> Any functions to remove'from a longstring? et voila! Simple huh ;) For more info, check out: http://www.php.net/str_replace -- Dan Hardiker [EMAIL PROTECTED] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] HTTP_REFERER reliability

2003-03-16 Thread Dan Hardiker
pplication retrieving the data. There is nothing to stop the client from adding malformed, incorrect or spoof data into this field - and thus possibly faking entry to the data you are protecting. You cannot rely on this field to be accurate, correct or even populated. -- Dan Hardiker [EMAIL PRO

RE: [PHP] Hacker problem

2003-03-12 Thread Dan Hardiker
t; outside? Maybe some invisible check on the form or something? > > Thanks. > > Pag > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.ph

Re: [PHP] eval challenge

2003-03-04 Thread Dan Hardiker
nk();? If your using XML throughout - have you looked at XSLT transformations? -- Dan Hardiker [EMAIL PROTECTED] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eval challenge

2003-03-04 Thread Dan Hardiker
and replace the command with the response. I can provide sample code for either options ... but would rather not mock up a test bed if its not gonna get used ;) PS: Im guessing your building dynamic templates ... have you had a look into "smarty"? http://smarty.php.net/ -- Dan Hardike

Re: [PHP] Still no luck running a PHPCLI script from CRON

2003-03-03 Thread Dan Hardiker
s/wibble.php and you can see the output of it running every minute: tail -f /tmp/wibble.output Works fine for me ... try it -- Dan Hardiker [EMAIL PROTECTED] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: eval help

2003-03-03 Thread Dan Hardiker
if you're having variable resolution issues, then just break out of the string. Apply the following change to have happy dreams: From: > $str3 = "Hello, $arr2['name']"; To: > $str3 = "Hello, ".$arr2['name']; -- Dan Hardiker [EMAIL PROTECTED]

Re: [PHP] IP Addesses on local network

2003-03-03 Thread Dan Hardiker
ows 2000+) but you will have to investigate those yourself. -- Dan Hardiker [EMAIL PROTECTED] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what are the planned features of php 5?

2003-02-26 Thread Dan Hardiker
v_PHP5.pdf I think this is more in the realm of what your looking for: http://www.php.net/ZEND_CHANGES.txt -- Dan Hardiker [EMAIL PROTECTED] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Piping to a PHP cgi-binary... broken in v4.3.2?

2003-02-24 Thread Dan Hardiker
ary? Is this modified behavoir limited to me, or expected? -- Dan Hardiker [EMAIL PROTECTED] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Restarting a daemon in PHP

2002-12-12 Thread Dan Hardiker
after sending mail from a PHP webmail > client. I'm puzzled, too... This could because exec statements are executed in the foreground. Your best bet would be to background the process with &. exec("perl myscript.pl &"); -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Softw

Re: [PHP] PHP-4.3-dev - What is it for?

2002-12-11 Thread Dan Hardiker
rmation on which lists to use for what (bugs, qa, dev questions) can be found on the php website. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] hiding php

2002-12-03 Thread Dan Hardiker
ed (eg: .cfm as cold fusion), but at a blank completely, eg: http://your-server.com/some.script With .script being parsed by php, but the outside world not knowing what technology you are using behind the scenes. Very simple, yet very effective way of blindfolding the end user. -- Dan Hardiker [[EMAIL

Re: [PHP] hiding php

2002-12-03 Thread Dan Hardiker
t what it is right off the bat. > > That will not work.. try the following: > > telnet yourserve 80 > > and than type GET / HTTP1.0 and press Enter twice > > You'll see the server response which will tell anybody that the server > is Apache and even the operation

Re: [PHP] OpenSSL Encryption to a browser.

2002-11-29 Thread Dan Hardiker
sort of task, but its possible) - Using ssl certificate pairs and installing them in a custom manner on the apache installation - Alternative methods PS: if your not using apache, I cant help you at all. Others may. --- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creat

[PHP] The hunt for PHP Developers [job applicant search]

2002-10-15 Thread Dan Hardiker
ss on here, but could off list. NOTE: please CC my email address in on any reply. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative -- PHP General Mailing List (

RE: [PHP] adding unix account via system command

2002-09-20 Thread Dan Hardiker
v("/your/program/here", argv); > } > > > then cc -o yourfile yourfile.c > > chown root.root yourfile > chmod 4755 yourfile > > this will make it rwsr-xr-x -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP Ge

[PHP] Load / Stress Testing

2002-09-09 Thread Dan Hardiker
(using APXS) [also v4.3.0-dev will be tested] Apache 1.3 MySQL 3.23 FreeBSD 4.6-STABLE Ive thought of writting a load testing script, but Im not after reinventing the wheel. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mai

Re: [PHP] Compiling PHP with Sablot support

2002-08-27 Thread Dan Hardiker
- but there isnt! heh > - Original Message - > From: "Dan Hardiker" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 27, 2002 2:52 PM > Subject: [PHP] Compiling PHP with Sablot support > > >> Hi All, >> >> I

[PHP] Compiling PHP with Sablot support

2002-08-27 Thread Dan Hardiker
. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web Based Mail

2002-08-18 Thread Dan Hardiker
www.squirrelmail.org -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] crypt(): How to make it use blowfish?

2002-08-14 Thread Dan Hardiker
> My system is a linux RH7.2 box. How can I make blowfish encryption > available to PHP's crypt? Use mcrypt. See the manual. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] progress bar

2002-08-12 Thread Dan Hardiker
List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: DOMXML...

2002-07-31 Thread Dan Hardiker
such as: >> > >> > Warning: failed to load external entity "employees.xml" in >> > C:\Inetpub\wwweloanshop\test\xml.php on line 36 >> > >> > Any hints? >> > >> > [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - >&g

Re: [PHP] array_rand() and seed

2002-07-23 Thread Dan Hardiker
gt; Any ideas on this? > > Thanks. > Naintara -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1

2002-07-23 Thread Dan Hardiker
to get you, > individually, they intentionally put security holes into the software, > so they can go back later and make you patch your "dozens of systems" > and make your life a living hell. And it's not just me who doesn't mind > upgrading, it's just you who can'

RE: [PHP] is their a jobs mailing list?

2002-07-08 Thread Dan Hardiker
I have no idea if this of any use to you guys ... but www.jobserv.co.uk has a load of IT jobs - but AFAIK they are all for mainland UK. Will be helpful for brits in any case. You might find a link to their continental / american / australian counterparts. -- Dan Hardiker [[EMAIL PROTECTED

Re: [PHP] securing an 'includes' dir

2002-06-28 Thread Dan Hardiker
e /inc/ directory (or further up > towards your docroot with the following: > > > Order Allow,Deny > Deny from all > Change the first line to in order to fit this more secure procedure. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer Fi

Re: [PHP] view source with opera

2002-06-13 Thread Dan Hardiker
he answer is still no, you cannot gain the source from a functional PHP script unless it has been setup to. There is no exploit to do this with any browser. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.n

Re: [PHP] view source with opera

2002-06-13 Thread Dan Hardiker
de but only the resulting code >> the script generated. >> So IMHO this is a "hoax". > > Unless your server has phps (source view) enabled. If it has then you > can see the source of any file by using the extension .phps. > > -- > Stuart > > > -- &g

Re: [PHP] forcing file downloads

2002-06-12 Thread Dan Hardiker
uot; ". You could rewrite "http://"; as "%68%74%74%70%3a%2f%2f". -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] catching plurals

2002-06-11 Thread Dan Hardiker
oking up against a dictionary file although there are speed impacts. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Dan Hardiker
ke file.pdf instead I use: header("Content-Disposition: filename=file.pdf"); -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting XML Data

2002-06-09 Thread Dan Hardiker
anyone know how? Have a look into XSLT... its all in the manual. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making code execute on fatal error?

2002-06-08 Thread Dan Hardiker
> I want to make all fatal errors trigger an error file to be include, > the file to exit, and the error never t be displayed. Is there any > way to do this without access to php.ini? Implement your own error handler. There is a load of documentation in the manual. -- Dan Hardike

Re: [PHP] array_walk

2002-06-06 Thread Dan Hardiker
ot;$key. $item2\n"; } echo "Before ...:\n"; array_walk ($fruits, 'test_print'); reset ($fruits); array_walk ($fruits, 'test_alter', 'fruit'); echo "... and after:\n"; reset ($fruits); array_walk ($fruits, 'test_print'); The

RE: [PHP] date problem

2002-06-06 Thread Dan Hardiker
[rtfm for more details] rather than pulling the rows. From here it looks like your fastest option, but your not providing enough information. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure File Upload

2002-06-06 Thread Dan Hardiker
&m=102079018906224&w=2 But you still have to rely on your visitors as they could simply use another web browser should they wish to DoS your site. Security measures such as logging in before allowing a file upload can come in useful here. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Softwa

RE: [PHP] Secure File Upload

2002-06-06 Thread Dan Hardiker
ot; and READ the user comments. The manual + user comments usually holds the answers you seek. ;) -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions question (-enable-trans-sid)

2002-06-05 Thread Dan Hardiker
s). Placing in the URL may make it look a bit messier (the URL that is) but its much more compatable. Just my 2 cents. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Displaying images with php?

2002-06-05 Thread Dan Hardiker
in the web browser much better than I can. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP script and external C program

2002-05-28 Thread Dan Hardiker
mple: > > /bin/mycommand < $variable > $parsed_variable > or > $variable | /bin/mycommand | $parsed_variable > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Executebale code from a databse

2002-05-22 Thread Dan Hardiker
the two lines of code? > > I'm using Win 98, Apache 1.3.19, PHP 4.2.0 and MySQL but I'm not sure > which version! (fairly recent though) > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Dan H

Re: [PHP] Problem with mktime()

2002-05-20 Thread Dan Hardiker
> $startDate['Jungfrau'] = mktime (0, 0, 0, 08, 24, 2000); > $startDate['Waage']= mktime (0, 0, 0, 09, 24, 2000); Replace 08 and 09 with 8 and 9 respectivly and you will have the effect you desire. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Syste

RE: [PHP] PHP,Apache disabled FTP?

2002-05-18 Thread Dan Hardiker
Unless your using IIS to serve your FTP ;) That would go belly up if youve got another http processes running. More information about your setup is required for us to help further. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php

Re: [PHP] Problem with sending information with quotes

2002-05-17 Thread Dan Hardiker
> Turn magic_quotes off. Check the manual for full details. or use stripslashes() ... rtm ;) -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and MySQL

2002-05-17 Thread Dan Hardiker
details to the world?! I gonna have to write an article on how to communicate securely over the internet. (not just with PHP, but with the data you communicate in the messages as well!!) -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looking for web based email

2002-05-17 Thread Dan Hardiker
;) - Dan > http://nocc.sourceforge.net/ > -Jared > > -Original Message- > From: Craig [mailto:[EMAIL PROTECTED]] > > I am in the process of developing a website with a webmail system > similar in functions to hotmail > Does anyone have any suggestions for where t

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
execute it (unless you locked it down which is silly when you could just run it locally yourself). Also the data is going over HTTP which would easily be intercepted with ethereal / tcpdump etc. I still *strongly* recommend compiling a binary if only for purely security based precautionary reasons.

Re: [PHP] Variables in PHP: public vs. private

2002-05-17 Thread Dan Hardiker
r own. PHP has never claimed to be fully OOP compliant infact it has quite blatently stated that its not. I hope that the time will come when PHP has much more OOP support like other languages (such as C++, delphi etc). -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engine

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
lint) -m Show compiled in modules -i PHP information -h This help [14:03:52][dhardiker@amnesiac]:~$ everything there is pretty self explanitory... as is the reason for using option q ;) -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
ds what your after doing... experimentation is the key, and imho you should stick to the binary for shell stuff and the module for web stuff. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
nary... and you could have 3 binarys, one with sockets & pcntl enabled, one with dom & xml enabled, and one with everything enabled... etc. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Dan Hardiker
This will warn you that it is about to create a binary and not a module. After a make install it will usually end up in /usr/local/bin/php for you to use as your shell interpretor. (Follow up email regarding security to follow from a linx post). -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Sof

Re: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Dan Hardiker
gets hammered if malitious users were to launch 5000 requests at it in the space of 10 mins, it would just do the big DB operation the once. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: help with arrays

2002-05-16 Thread Dan Hardiker
;] += 1 I think the problem here is your understanding on how array key's work. The following method would be far more appropriate: follow or have I lost ya? -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Dan Hardiker
security is far better than none! Just making sure that everyone is aware of the consequences and implications. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Dan Hardiker
x minutes (or hours / days) then serve up the generated information from the table. This would mean that your db no longer gets hammered if malitious users were to launch 5000 requests at it in the space of 10 mins, it would just do the big DB operation the once. -- Dan Hardiker [[EMAIL PROTE

Re: [PHP] Script executes for longer than 30s

2002-05-13 Thread Dan Hardiker
from the previous page via text field. >>> >>> Whe I test this and do something like " ping 192.168.0.2", the page >>> keeps on growing and growing, way past 30seconds. My php.ini file is >>> definately set to 30s timeout. Is there something wrong or d

Re: [PHP] Script executes for longer than 30s [SECURITY CONCERN]

2002-05-13 Thread Dan Hardiker
> keeps on growing and growing, way past 30seconds. My php.ini file is > definately set to 30s timeout. Is there something wrong or do I have a > misunderstanding of the timeout workings? > > Thanks > ' > > > -- > PHP General Mailing List (http://www.php.net/) &

Re: [PHP] Re: randomize?

2002-05-10 Thread Dan Hardiker
bility. = $groups) $cnt = 0; } // Return return $return; } // Replace these with the items you want, and specifiy 4 groups $items = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14); $result = randGroup($items, 4); echo ""; print_r($result); echo ""; ?> -- Dan Ha

Re: [PHP] Problem with object

2002-05-10 Thread Dan Hardiker
) { if ($aLines[$key]->host == "") $aLines[$key]->host = "Teststring"; print $aLines[$key]->host."\n"; // prints "Teststring" } That way your altering the master array and not the copy -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Announcement: Smarty template engine 2.1.1 released

2002-05-07 Thread Dan Hardiker
> This is a minor bug fix release. Wasnt aware that php-general had incorporated a channel for product plugging and advertisment?! -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker
very easily create a user account on your system and then just walk straight in?? Given your current attitude (and awareness) of security, I doubt that it would take long for your machine to be anhilated. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative

Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker
that ;) heh Jason: what dya recon on people being licensed to be able to run a unix style operating system? heh Hell lets license people to use computers. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Dan Hardiker
mp c:\temp c:/temp One of those should work... I dont know if you need to escape php.ini values (hence the \\ and \ options). -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker
side of PHP (eg: how would you go about the problem using shell scripts / command line typing) This will give the people who try to help a better impression of the situation and give you more targeted advice. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Dan Hardiker
e_path" from "/tmp" to "c:/temp" (or where-ever you wish it to go) -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Registering an Array in a Session

2002-05-07 Thread Dan Hardiker
> I am trying to register an array in a session, but am having no luck. [..] > where fieldtext is the name of a field on the form, and $page is the > page number, which increases by one each time the form is submitted. That should get you started. -- Dan Hardiker [[EMAIL PROTECT

Re: [PHP] problem with fread

2002-05-07 Thread Dan Hardiker
t;http://whatever.com/file.html";; // whatever you wanna pull >> from >> >> if ($fp = fopen($url, "r")) { >> while ($tmp = fgets($fp, 4096)) $output .= $tmp; >> fclose($fp); >> } >> >> echo "The URL's content

Re: [PHP] problem with fread

2002-05-07 Thread Dan Hardiker
le pointer ($fp) in 4096 byte blocks (or chunks), and the while will keep pulling the chunks until there is nothing left to pull. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New Session Variable unset doesn't work

2002-05-03 Thread Dan Hardiker
special way to unset the new Session variables? Seen as you used session_register to set the session variable, it would make sense for you to use session_unregister to do the inverse. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General

Re: [PHP] Hashes in strings

2002-05-02 Thread Dan Hardiker
t;.$user->name." is age ".$user->age.". ".(($user- >birthday==$today)?"Happy Birthday!").""; but thats getting out of the scope of the question heh -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple mails to be sent from checkbox selection

2002-05-02 Thread Dan Hardiker
(you can find simple instructions on the http://www.php.net/mail page in the user comments). If METHOD="post" then use $_POST, and if an old version of PHP is being used then use $HTTP_POST_VARS / $HTTP_GET_VARS. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer

Re: [PHP] page reloading

2002-05-02 Thread Dan Hardiker
t;exit;" with "fclose( $fp );". Please note that headers must be sent before any other output. What you are trying to achieve can be done with refresh headers (either html-meta or http). -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Dan Hardiker
;>Thanx, >> >>Kiko >> >>-- >>It's not a bug, it's a feature. >>christoph starkmann >>mailto:[EMAIL PROTECTED] >>http://www.gruppe-69.com/ >>ICQ: 100601600 >>-- >> >>-- >>PHP General Mailing List (http://www.php.n

RE: [PHP] Test if a daemon is running...

2002-05-02 Thread Dan Hardiker
in normal execution (or you dont have access to it) ... then your gonna have to do it the long winded way (greping out unique attributes from a ps auxww / sockstat etc). Good luck -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd > I would like to mo

Re: [PHP] CVS handled PHP projects

2002-05-02 Thread Dan Hardiker
ocumentation at cvshome.org (man that was a labourous task) and I still dont think I grasp it fully... guess its time to jump in at the deep end. Thanks -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd > At 10:08 AM +0100 2/5/02, Dan Hardiker wrote: >

Re: [PHP] Test if a daemon is running...

2002-05-02 Thread Dan Hardiker
multitude of ways and use the resulting matrix to determine. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd > Hello everybody, > > I would like to know an easy way to check is a daemon is running. > > What do you think is the best? Try

Re: [PHP] Opinions Wanted

2002-05-02 Thread Dan Hardiker
listed btw) you require. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd > Just a general question of the best way to do it ! > I've got a job search site with mysql at the back of it ! > You choose on the first page - type of job, where and

RE: [PHP] Stupid question

2002-05-02 Thread Dan Hardiker
stead of using number_format for truncation use substr. i.e: echo substr($var, 0, 5); to get 3 dp. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] CVS handled PHP projects

2002-05-02 Thread Dan Hardiker
-- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hashes in strings

2002-05-02 Thread Dan Hardiker
n strings"; will output "I can NOT use Array[var2] in strings". For this you have to jump out of the string and use contcatination... eg: $str = "I can use ".$hash[var][var2]." in strings"; will output "I can use Elephant in strings". Hope that help

[PHP] Re: An integer?

2001-07-27 Thread Dan Hardiker
Why not just use a regular expression match to see if there is anything other than numeric characters? That will tell you if it is an integer before you do the type casting. (sorry if that sounds a little obvious but no-one seems to have suggested it) - Dan "Unknown Sender" <[EMAIL PROTECTED]>