[PHP] failed to open stream: Resource temporarily unavailable

2007-03-04 Thread Tijnema !
because of a lot of errors of apache. TIA Tijnema

Re: [PHP] Array help

2007-03-04 Thread Tijnema !
($fp) && $found == false) { $line = fread($fp,256); if($line == $user.":".$pass) { $found = true; } } It is possible to get it even smaller, but i'm not a genius in writing fast code :P Tijnema On 3/4/07, Ryan A <[EMAIL PROTECTED]> wrote: Hey Stut, Thanks for replying. Wi

Re: [PHP] TabPage like in Java or Windows

2007-03-04 Thread Tijnema !
I can't find your screenshot but anyway, i think this is again client side, and so you can't do anything with PHP as PHP is server side code. Tijnema On 3/4/07, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, I would like to know if it exist a class with allow to have a wind

Re: [PHP] module and access rights

2007-03-04 Thread Tijnema !
ure as it's gonna get. *Never* store a password in a cookie. *Ever*. -Stut That's right, never store a password in a cookie or session, maybe a little extra security could be added by locking the cookie to a IP address, but even more secure isn't possible. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] module and access rights

2007-03-04 Thread Tijnema !
Give your server a unique ID, and add that to your check string lets say so you store in your cookie the username and the check string. example $user = "tijnema"; $server_unique_key = "w#$#%#54dfa4vf4w5$2!@@$ "; $check_string = md5($server_unique_key.$user.$server_unqie_k

Re: [PHP] module and access rights

2007-03-04 Thread Tijnema !
On 3/4/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > Give your server a unique ID, and add that to your check string lets say > so you store in your cookie the username and the check string. > > example > $user = "tijnema"; > $server_u

Re: [PHP] PHP Site Hacking Tools Revealed

2007-03-04 Thread Tijnema !
Hi, I'm not able to open any of these files, because my NAV detects them as PHP Backdoor Trojans. So they look nice, but they are detected by my AV (and probably other AV programs too) I'm not going to test these scripts, but i think it does show how many harm a PHP script can do. Do these script

Re: [PHP] Password Protect Directory

2007-03-04 Thread Tijnema !
Well, you could try to edit each PHP file and add a piece of login code at top, but if the directory will also contain images (which need a password to access), it would not be possible that way. Tijnema On 3/4/07, Jason Karns <[EMAIL PROTECTED]> wrote: I'm trying to find a way

Re: [PHP] RE:[[PHP] Error in Script!!!

2007-03-06 Thread Tijnema !
th a name mysql.php the $con is correct with the other that results I don't know , but if you have only 1 mysql connection, there's no need to use a MySQL link, you can just leave that out, and it will use the last opened connection by mysql_connect. Tijnema

Re: [PHP] List all files in directory

2007-03-07 Thread Tijnema !
On 3/6/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] Oh, yes, about that, how do you _really_ use PHP to do some reading on the client machine... like say. listing files... ;D [/snip] You're kidding, right? Here's how, set up a PHP enabled.nah, never mind. Just repeat to yourself Doro

Re: [PHP] Class and subclass

2007-03-07 Thread Tijnema !
On 3/7/07, Alain Roger <[EMAIL PROTECTED]> wrote: A() or B() mean constructors of th class A and B respectively. Al. Yes but they are functions. On 3/7/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote: > > Hi, > > > > i have a class A

Re: [PHP] create and save file to folder

2007-03-07 Thread Tijnema !
huh?) their manual pages: http://www.php.net/fopen http://www.php.net/fread http://www.php.net/fclose and sure, if you want to make a file manager, you might want to look at the readdir function, http://www.php.net/readdir Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] db query not working

2007-03-07 Thread Tijnema !
th[2]) . ""; mysql_query ("INSERT INTO tmphitsmag (magazine) VALUES('$magazine_path[2]'"); Look how many ( you have, and how many ) you have that's the problem... try mysql_query ("INSERT INTO tmphitsmag (magazine) VALUES('$magazine_path[

Re: [PHP] db query not working as expected

2007-03-07 Thread Tijnema !
""; mysql_query ("INSERT INTO tmphitsmag (magazine) VALUES ('$magazine_path[2]')"); Not sure about it but try this: mysql_query ("INSERT INTO tmphitsmag (magazine) VALUES ('".$magazine_path[2]."'

Re: [PHP] db query not working as expected

2007-03-07 Thread Tijnema !
""; mysql_query ("INSERT INTO tmphitsmag (magazine) VALUES ('$magazine_path[2]')"); what about adding the usual "or die"? mysql_query ("INSERT INTO tmphitsmag (magazine)VALUES ('$magazine_path[2]')"

Re: [PHP] Textarea update problem

2007-03-07 Thread Tijnema !
The file permissions are not set right, Apache is not able to read the PHP file you've just uploaded to your server, chmod it to 644. That should fix it. Tijnema On 3/7/07, Delta Storm <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > is there a question here, or are yo

Re: [PHP] Save and Continue

2007-03-07 Thread Tijnema !
Hi, i was more thinking about automatically going to save.php, and if checked (the code u used) redirect back to your shop, cart, etc. using header function. Tijnema On 3/7/07, Dan Shirah <[EMAIL PROTECTED]> wrote: Hello All, I am trying to think through my new forms process. I w

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
Open the page with IE 7, and open the source, if it doesn't show any tags, then it is a IE problem.. Tijnema On 3/7/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: > I've just run into this problem this mornin

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
7;t work or had come across anything like this. Thanks I think you're not at the right mailing list for this, and btw, it would be a lot easier to find what is going wrong, if you post one of the working ones... Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Save and Continue

2007-03-07 Thread Tijnema !
But ofcourse you could add a lot of things to a shopping cart and checkout once btw, it's safer to use things like Paypal... Tijnema -- To the full PHP list now On 3/7/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Robert Cummings wrote: > On Wed, 2007-03-07 at 10:39 -05

Re: [PHP] Save and Continue

2007-03-07 Thread Tijnema !
So, what is your actual problem? you can simple add all items to a session, and then when checking out, getting all data from the session. *means all data is lost when user leaves page... Tijnema On 3/7/07, Dan Shirah <[EMAIL PROTECTED]> wrote: Rght, that is similar to what I am try

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
doing this? -- ::Bruce:: I've seen that question a lot, what i use is fairly simple if( intval($number / $multiple) == ($number / $multiple ) ) try that Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
oops, ofcourse whe have the modular :) On 3/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: try this if ($i%5 == 0) echo "foo"; -afan > I have a little script that prints a number out from 1 to 100 > [php] > for( $i=1; $i<=100; $i++ ) > { > echo $i; > echo ""; > > } > ?> > [/php] > > I ju

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Tijnema !
AFAIK there's no function to un include a file, but i don't see a problem here, as when you include your second file, everything (all conflicting variables) will be overwritten. If you still have problems, you might want to use classes around your functions and variables. Tijnema

Re: [PHP] Monitoring download, detecting completion?

2007-03-07 Thread Tijnema !
that can be set. cURL: http://www.php.net/curl Hope this is what you need. Tijnema On 3/8/07, Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, I have a need to monitor a download from the server to the client's machine. I'm not familiar with any mechanisms for doing so. If anyo

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
Just a little side note, you said that firefox wasn't giving an error, i think it does, but that it hides the error. Open your page, and then go to Tools->javascript console. There it will display all javascript errors. And gives a nice detailed error. Tijnema

Re: [PHP] server error or script error

2007-03-08 Thread Tijnema !
fins out if it is a script error or server error. R. Are you sure there isn't any data on the screen before you send the header? and are you sure that all the vars coming from the database are correct filled (content-type for example) Tijnema -- PHP General Mailing List (http://

Re: [PHP] why did it stop working?

2007-03-08 Thread Tijnema !
er("Content-length: ".$size); header("Content-type: ".$type); header('Content-Disposition: attachment; filename="'.$name.'"'); echo $content; Any suggestions? PHP upgraded maybe? Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with script....

2007-03-08 Thread Tijnema !
On 3/8/07, Fabio Silva <[EMAIL PROTECTED]> wrote: Hi all, i have a problem with this script... could anybody help me?? What is your problem? you are only posting your code here and whe have to find the error? What error comes up? Tijnema Regards, Password change "; echo

Re: [PHP] Any automated php email sending solution please?

2007-03-08 Thread Tijnema !
Or just get all email addresses from the database, and run a loop. Tijnema On 3/8/07, Rabih Tayyem <[EMAIL PROTECTED]> wrote: check PHPmailer.. very easy to use.. http://phpmailer.sourceforge.net/ Regards, Rabih On 3/8/07, Chris Carter <[EMAIL PROTECTED]> wrote: > &

Re: [PHP] Intro to PHP question

2007-03-08 Thread Tijnema !
Your probably created it from a windows machine. Try converting the file first with dos2unix dos2unix ../uri.php Tijnema On 3/8/07, Jonathan Kahan <[EMAIL PROTECTED]> wrote: Hi all, I am using a linux server. When the php file below (uri.php) is run from the command line I get the fol

Re: [PHP] Intro to PHP question

2007-03-08 Thread Tijnema !
I never work with PHP from the commandline,. but i think it is not possible to use HTML in a php file, so try replacing this: "; and replace this: ?> with this: echo ""; ?> I think that will fix it. Tijnema On 3/8/07, Jonathan Kahan <[EMAIL PROTECTED]> wrote:

Re: [PHP] Intro to PHP question

2007-03-08 Thread Tijnema !
AFAIK you can't run a php file directly, or you need to add #!/bin/php or something to the first line, but you can run it with php ../uri.php but i suggest you to run it from a webserver like apache. *if you don't have it, i can give you a few MB to try PHP out Tijnema On 3/8/07

Re: [PHP] Intro to PHP question

2007-03-08 Thread Tijnema !
He wanted to use it for the web, so why should he try it out on CL first? I can offer a few MBs for everyone that wants to get learning PHP. Tijnema On 3/8/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: On 3/8/07 12:59 PM, Dave Goodchild wrote: > If you really want to run that on th

Re: [PHP] Re: $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Tijnema !
plexml Take a look at Example 2134 on that page to get you started, and see http://www.php.net/simplexml_load_file to load XML from a URL. Do I get the $35 anyway for the consultation? ;-) -- Ben Ramsey http://benramsey.com/ Well ben, now i can make the script for Rob :P No i won't as i think

Re: [PHP] $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Tijnema !
On 3/8/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: Rob Gould wrote: > I'll send $35 to someone via paypal who can create a PHP script that > will do the following: > > 1) Read XML data from an URL ( www.librarytools.com/events/sampledata.txt) > 2) Loop through all XML results and print to th

Re: [PHP] IE not uploading files

2007-03-08 Thread Tijnema !
Hi, Can you post your HTML code of the form used? I don't really think the problem is in PHP, as it looks like a client side problem, and PHP is server side.... Tijnema On 3/9/07, Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, I have the following code uploading and image to

Re: [PHP] Monitoring download, detecting completion?

2007-03-09 Thread Tijnema !
On 3/9/07, Skip Evans <[EMAIL PROTECTED]> wrote: Hi Tijnema, To be clear, this can work for the client downloading say a music (mp3) file from the server to their local hard drive? If so, that would be great, but I just want to be clear I spelled out the issue properly. Thanks tons

Re: [PHP] Passing a class through an array

2007-03-09 Thread Tijnema !
#x27;,'1') $him = new Toon('Toon2','0') $characterListing = array($me, $him); foreach ($characterListing as $name1) { if ($name1->GetIsPlayer()) { echo "Name: ".$name1->$name;// etc etc etc use $name1->name;instead of $nam

Re: [PHP] Intro to PHP question

2007-03-09 Thread Tijnema !
On 3/8/07, Ben Ramsey <[EMAIL PROTECTED]> wrote: On 3/8/07 1:44 PM, Tijnema ! wrote: > He wanted to use it for the web, so why should he try it out on CL first? Because there are some advantages to being able to run something quickly through the CLI without having to load it in a we

Re: [PHP] url fopen() failed to open stream

2007-03-09 Thread Tijnema !
he server, but i think curl could do it. curl documentation: www.php.net/curl Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Design View

2007-03-09 Thread Tijnema !
e to give it a total different look. So the only option is to use a browser. Tijnema -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with captcha

2007-03-09 Thread Tijnema !
I'm not sure but i think that you need to place your javascript inside the head tags, which you (i guess) output in header.php Tijnema On 3/9/07, Joker7 <[EMAIL PROTECTED]> wrote: Im trying to use a captcha script from : http://www.boutell.com/newfaq/creating/captcha.html I ca

Re: [PHP] Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Tijnema !
If there are no people willing to, i am, but i don't have a lot of time. I hope it isn't urgent. Tijnema On 3/9/07, Jevos, Peter <[EMAIL PROTECTED]> wrote: Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple n

Re: [PHP] Hive Dekoder

2007-03-09 Thread Tijnema !
Maybe you want to give an example of what you have, and what it should be after decoding. I have no idea what Hive Logic Enkoder exactly does, but somebody might give you a help on how to decode. Tijnema On 3/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Short Version: Anybody got

Re: [PHP] DB_DataContainer

2007-03-10 Thread Tijnema !
In PHP 5 some things changed, and that's why they first check if PHP version is 5 or greater, if so, it constructs this class and function in PHP5 style, else it uses older syntax. You might want to take a look at this manual page: http://www.php.net/manual/en/migration5.php Tijnema On 3/

Re: [PHP] FW: looking for two remote functions

2007-03-10 Thread Tijnema !
our remote file size is in $size. It is not too fast, but everything in PHP is fast and so is this. Tijnema > > Riyadh > > -Original Message- > From: Németh Zolt?n [mailto:[EMAIL PROTECTED] > Sent: 10/Mar/2007 12:27 PM > To: Riyadh S. Alshaeiq > Cc: php-general@lis

Re: [PHP] Variable variables and references

2007-03-10 Thread Tijnema !
, but don't use them if it isn't needed. Tijnema On 3/10/07, Dave Goodchild <[EMAIL PROTECTED]> wrote: Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I think it's a great book, I am confused about variable variables and references - no

Re: [PHP] Variable variables and references

2007-03-10 Thread Tijnema !
In this case i should use an array, i think it's easier to use an array... Array in an array in an array :) But ofcourse sometimes you might (think you) need it. Tijnema - Original Message From: Dave Goodchild <[EMAIL PROTECTED]> To: PHP-General Sent: Saturday, March 10, 200

Re: [PHP] Back to security

2007-03-10 Thread Tijnema !
On 3/10/07, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, I'm continuing to work on securing my administration part of the website. based on previous posts and reading materials, I was thinking to use the following process : 1. user has to logon through a standard "http://"; web page 2. login and

Re: [PHP] Array mysteries

2007-03-11 Thread Tijnema !
;Donnerstag" ,5 => "Freitag" ,6 => "Samstag" ); return $wdays[$weekday]; } $day = convert_from_weekday(0) // $day = "Sonntag" - If you are working from inside a class, you could define $wdays as a public variable. I think this solved your problem, but don't hesitate to ask for more! Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Tijnema !
On 3/11/07, Myron Turner <[EMAIL PROTECTED]> wrote: Myron Turner wrote: > Tijnema ! wrote: >> On 3/10/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: >> >>> 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt >>> írta: >>> > A

Re: [PHP] Array mysteries

2007-03-11 Thread Tijnema !
On 3/11/07, tedd <[EMAIL PROTECTED]> wrote: At 10:05 AM +0100 3/11/07, Tijnema ! wrote: > >- You could define $wdays inside the function >function convert_from_weekday ($weekday) { >$wdays = array >(0 => "Sonntag" >,1 => "Montag" &

Re: [PHP] php and javascript error

2007-03-11 Thread Tijnema !
es I usually use instead . At >least it's shorter. :) > >-afan But, while it's shorter, it's still NOT advisable to use the shorter tags. tedd It does save space on your harddrive (Not much, but some :P) and if it is for your own usage only, why not? Tijnema --

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Tijnema !
On 3/11/07, Myron Turner <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > > I'm not very familiar with PERL, so will this work with remote files? > As it seems that you are just reading from local hard drive... > > Tijnema It has to be on the machine from which the pag

Re: [PHP] FW: looking for two remote functions

2007-03-11 Thread Tijnema !
Not everyone checks his email 1000 times a day, last time he replied was yesterday... so give him some time to read his email Tijnema On 3/11/07, Myron Turner <[EMAIL PROTECTED]> wrote: I think we've been talking to ourselves. The guy with the original question seems to have

Re: [PHP] Why won't this query go through?

2007-03-11 Thread Tijnema !
_query($q); * me is gettings crazy!!! ALWAYS USE THE MYSQL_ERROR COMMAND! mysql_query($q); becomes mysql_query($q) or die(mysql_error()); then post the result of the error, or fix it by yourself when you know where the error is. Tijnema -- Mike Shanley ~you are almost there~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My help with adding captcha

2007-03-11 Thread Tijnema !
y form. My form use's print see below and I need to add this to it: Listen To This Did you forget to add the semi-colom?? Listen To This Tijnema Any tip would be welcome. Chris { print ""; print ""; print "Name: "; print "Coun

Re: [PHP] Array mysteries

2007-03-11 Thread Tijnema !
On 3/11/07, Satyam <[EMAIL PROTECTED]> wrote: - Original Message - From: "Edward Vermillion" <[EMAIL PROTECTED]> To: "tedd" <[EMAIL PROTECTED]> Cc: "Tijnema !" <[EMAIL PROTECTED]>; Sent: Sunday, March 11, 2007 8:57 PM Subject: Re

Re: [PHP] Using array_search I get error

2007-03-12 Thread Tijnema !
are using $_REQUEST directly, or a copy of it, then you should have an array. I also don't really understand what you are trying to do, as 'date18' is a key, not a value, and array_search searches vor values, in this case it searches for the value 'date18' and then try's to get the key of that value, but date18 is a key, so it would probably return false. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FW: looking for two remote functions

2007-03-12 Thread Tijnema !
Just a little note, getting content-length and a lot of other stuff from remote files is also possbiel with curl_getinfo() www.php.net/curl_getinfo Tijnema On 3/11/07, Tijnema ! <[EMAIL PROTECTED]> wrote: Not everyone checks his email 1000 times a day, last time he replied was yes

[PHP] Limiting speed when using CURL functions

2007-03-12 Thread Tijnema !
Hi, Is there any way i can limit the transfer speed when using CURL? I'm uploading a file to a server, and i don't want the script to f*** up all bandwidth. TIA Tijnema

Re: [PHP] Limiting speed when using CURL functions

2007-03-12 Thread Tijnema !
On 3/12/07, Martin Marques wrote: Tijnema ! wrote: > Hi, > > Is there any way i can limit the transfer speed when using CURL? > > I'm uploading a file to a server, and i don't want the script to f*** > up all > bandwidth. man renice P.D.: This is not a PHP

Re: [PHP] PHP URL issues

2007-03-12 Thread Tijnema !
e coming from the url, you could also retrieve them with $_GET $messageID = $_GET["messageId"]; $userID = $_GET["userId"]; And in your link, i see it is pointing to page1.php, i don't know if that is just a typo in the example Tijnema --

Re: [PHP] Using array_search I get error

2007-03-12 Thread Tijnema !
On 3/12/07, Richard Kurth <[EMAIL PROTECTED]> wrote: -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:16 AM To: Richard Kurth Cc: Stut; php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error On 3/12/07, Richard

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure [SOLVED]

2007-03-12 Thread Tijnema !
On 3/12/07, Doctorrock <[EMAIL PROTECTED]> wrote: 2007/3/12, Yannick Warnier <[EMAIL PROTECTED]>: > > The problem wasn't quite there. The 304 response was correct and didn't > really cause a problem in IE7. > > In fact, the problem was somewhere else. As mentioned by someone in the > PHP doc com

Re: [PHP] Extract url from string

2007-03-12 Thread Tijnema !
ttp://www.example.com/page.html";>http://www.example.com/page.html this is some more text. Thx in advance, -B I'm not very familiar with PCRE, but you should search for a pattern starting with http: and ends with a space. Tijnema -- PHP General Mailing List (http://www.php.net

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Tijnema !
s the redirect in the header, meaning that all body is not even parsed. And it works also if javascript is disabled. I prefer the header function, but if you already have data parsed, the javascript could to the job, but even then it needs to be inside the tags i believe, or else it won't get automatically executed. Tijnema

Re: [PHP] dst and strtotime

2007-03-12 Thread Tijnema !
ry" <[EMAIL PROTECTED]> To: "PHP-General" Sent: Monday, March 12, 2007 12:26 PM Subject: Re: [PHP] dst and strtotime > yepper > > date > Mon Mar 12 12:25:33 EDT 2007 Is this from PHP or from bash? Sometimes those differ... Tijnema > > - Original

Re: [PHP] My help with adding captcha

2007-03-12 Thread Tijnema !
;> >> And what happens when you try? >> >> There's nothing in that snippet that shows an error (missing a >> semi-colon won't stop it printing as Tijnema suggested). >> >> >> -- >> Postgresql & php tutorials >> http://www.design

Re: [PHP] FW: looking for two remote functions

2007-03-13 Thread Tijnema !
$filesize = filesize("http://server.com/file.rar";); while($filesize%$blocksize != 0) { $filesize += 1; } I'm not sure if it's the size you were looking for, but keep in mind that it depends on the block size. So different filesystems use different block size. Tijnema On

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
does return the time() command the right date for you? Tijnema On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: A little more info: strtotime("last monday") or yesterday, is correct, but strtotime("last sunday") gives me 3/10 (saturday), strtotime(&qu

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
EDT 2007-03-10 11:00 PM EST Hmm, EST and EDT ? There's the problem i think, as it is 11PM, making it 12PM it means next day. You could fix this with adding 24*60*60 to the result of strtotime() , or change it somehow ... So this would give you the right date: echo date("Y-m-d g:i A T

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
> > > echo date("Y-m-d g:i A T", time()); > > echo date("Y-m-d g:i A T", strtotime("last sunday")); > > > 2007-03-13 12:30 PM EDT > 2007-03-10 11:00 PM EST Funny stuff... I get the same under Ubuntu 6.10 with php 4.4.4 (manual build). C

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
ut with your timezone setting. Here the result is good, but i think that's because i'm in the netherlands, but i AM using PHP 5. Tijnema > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: >> >> >> -Original Message- >> >> From: Jake McHenry [ma

Re: [PHP] PHP URL issues

2007-03-13 Thread Tijnema !
he second page by printing the whole $_GET array. If it does, you could also see how they are named in the $_GET array. What i also would recommend is to remove all captial letters, as they are very confusing. But that is up to you. Tijnema "Don Don" <[EMAIL PROTECTED]&g

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > > > >> -Orig

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-1

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > > On 3/13/07, Robert Cummings <[EMAIL PRO

Re: [PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Tijnema !
x27;images/026.png' var j = 0 var p = theImages.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write('<img src="'+the

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
PHP 5.2.0: 2007-03-13 1:38 PM EDT 2007-03-11 12:00 AM EST Cheers, Rob. As long as you are only interested in the day, there's no problem with adding an extra hour to the strtotime() command, it would work on PHP4 and PHP5. Tijnema -- .---

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Tijnema !
rstand you right. Tijnema and in the HTML code I am probably way off base, so need some help! -- ::Bruce:: -- PHP General Mailing 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: ht

Re: [PHP] mail

2007-03-13 Thread Tijnema !
On 3/13/07, Dani Dws <[EMAIL PROTECTED]> wrote: I just want to know if the mail function works from a localhost (local server)? I've checked my php.ini all the setting are right but the mail function is not sending any mail, any idea? best regards. Sometimes ISP is blocking port 25, if so, yo

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > So you just need to set the content-type and output > add this to the bottom of the script: > header("Content-Type: ".$encodeddata); > echo $title; > >

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Tijnema !
can go back 2 steps at once, so you don't have to click very fast?? Tijnema -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing 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:

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Tijnema !
On 3/13/07, Jonathan Kahan <[EMAIL PROTECTED]> wrote: Hi all, Please see my output below followed by the code. I have been trying for some to figure out why 1) I can not get a line feed to work in the web page that i am using to display the output as I am not running from the commad line Line

Re: [PHP] PHP Printer

2007-03-14 Thread Tijnema !
On 3/14/07, raaj sharma <[EMAIL PROTECTED]> wrote: Sir, I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc. pls. help me Thanx Raaj The code is: You should define which printer to open, or remove the "" printer_w

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Tijnema !
On 3/14/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: Tijnema wrote: > Did you guys ever noted that little arrow down just right of > the back button, where you can go back 2 steps at once, so you > don't have to click very fast? I think we both remember browsing bef

Re: [PHP] PHP Printer

2007-03-14 Thread Tijnema !
nd php can't find one. You could set the default printer in php.ini, or enter it inside the printer_open function look at the manual page, www.php.net/printer_open Tijnema ps. Include the PHP list(php-general@lists.php.net) in your CC when replying to this list. - Original Messag

Re: [PHP] PLS HELP ME

2007-03-14 Thread Tijnema !
On 3/14/07, raaj sharma <[EMAIL PROTECTED]> wrote: Sir, I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc. i am trying it on localhost. Is it needed to make any changes in php.ini. if so how it will work on the serve

Re: [PHP] Limiting speed when using CURL functions

2007-03-14 Thread Tijnema !
On 3/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, March 12, 2007 7:14 am, Tijnema ! wrote: > Is there any way i can limit the transfer speed when using CURL? > > I'm uploading a file to a server, and i don't want the script to f*** > up all > bandwid

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Tijnema !
have not correctly puzzled out what $s % $d = 0 is doing... > > The = operator takes precedence, and $d is set to 0. > But why? According to the manual, the modulus operator has precedence over the equals! So shouldn't this expression resolve to: ($s % $d) = 0 which giv

Re: [PHP] dst and strtotime

2007-03-14 Thread Tijnema !
(CET)) but of course when doing that, time and date wouldn't return the right values... Tijnema > On Tue, March 13, 2007 11:52 am, Jake McHenry wrote: >>> On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: >>>> >>>> >>>> >> -Orig

Re: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Tijnema !
QL on Windows, as i'm using a Linux server. But you could, for testing only, run PHP/Apache from the administrator account. I believe the DLL is in the right place, i don't see why you should move it. Tijnema ~~~ Rahul Sitaram Johar

Re: [PHP] Environment variables...

2007-03-14 Thread Tijnema !
re you not just reading /etc/profile from php? Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Referring URL Authentication

2007-03-14 Thread Tijnema !
k, as some browsers even support defining what referer to use. But i see you really care that a user is authenticated, so a login system is recommended. .htaccess files would do the job sometimes, but not always, so i think you'd be better off using cookies/sessions. Tijnema -- PHP Gener

Re: [PHP] Re: [!! SPAM] [PHP] Parse

2007-03-14 Thread Tijnema !
On 3/14/07, Andrei <[EMAIL PROTECTED]> wrote: al phillips wrote: > I keep getting a parse error line x > when trying view php info() > Can you help please? > > > - > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! Gam

Re: [PHP] PHP Printer

2007-03-14 Thread Tijnema !
in the Yahoo! Answers Food & Drink Q&A. > http://answers.yahoo.com/dir/?link=list&sid=396545367 You do realize this is going to print to a printer connected to the server, not the client right? -- Enjoy, Jim Lucas Quite smart question... people always try to combine server sid

Re: [PHP] PHP Printer

2007-03-14 Thread Tijnema !
On 3/14/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > On 3/14/07, Jim Lucas <[EMAIL PROTECTED]> wrote: >> raaj sharma wrote: >> > Sir, >> > I am trying to use printer functions in my script.pls. help me. The >> printer is working fine

Re: [PHP] $_POST array order

2007-03-14 Thread Tijnema !
ay the were submit, and browsers like IE do this in order they are placed on the page. for example this form: would return a $_POST array like this: Array ( [submit] => Go! [go] => test ) And so is submit the first element in the array and not the last one. Tijnema -- PHP General M

  1   2   3   4   5   6   7   8   >