$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
;>
>> 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
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
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
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
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
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
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
--
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
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
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
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
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
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
_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
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
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
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
--
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"
&
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
;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
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
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
, 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
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
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/
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
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
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
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
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
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
#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
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
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
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
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
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
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
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:
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
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:
>
&
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
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
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://
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
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
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
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
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
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
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
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
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
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
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
"";
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]')"
"";
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]."'
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[
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,
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
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
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
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
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
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
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
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
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
($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
because of a lot of errors of
apache.
TIA
Tijnema
advance,
Tijnema
701 - 772 of 772 matches
Mail list logo