really whatever you need. The other
class people mentions are free, but far from as advanced as pdflib.
Grab it here : http://www.pdflib.com/
regards,
Kim Steinhaug
http://www.steinhaug.no/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You are referring to this page :
http://www.opensourcecms.com/
Regards,
Kim Steinhaug
- - - - - - - - - - - - -
http://www.easywebshop.no/
- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "Erik Gyepes" <[EMAIL PROTECTED]>
Cc:
Sent:
I'm using this method, works fine with 50mb+ files :
if( $fd = fopen ($filepath, 'r')){
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
}
fclose ($fd);
exit;
}
Regards,
Kim Steinhaug
- - - - - - - - -
www.easycms.no
e
so that the user infact can spend more time on the same
webpage without having to do some movement, :D
regards,
Kim Steinhaug
- - - - - - -
www.steinhaug.com
- Original Message -
From: "Bret Walker" <[EMAIL PROTECTED]>
To: "PHP-Users"
Cc: "Ivan Meye
I solved the problem after a while, seems it had been
reacently debated in the bug pages within php, to remove
headers which are added by the session_start(); you can
add the following :
ini_set('session.use_cookies', false);
session_cache_limiter('');
Kind re
this answer :
header('Pragma: ');
header('Cache-control: ');
The headers are still sendt, exept they are empty, doesnt look
like a nice sollution for a production environment.
Kind regards,
Kim Steinhaug
- - - - - - - - -
www.steinhaug.com
--
PHP General Mailing List
There would be some sort of system inside here which could build a form
of profile based on your ratings, and then compare theese profiles. I
havnt really started planning how this would work, or should work, but
first mainly if anyone has seen such a system around.
Looking for existing wheels... :
stuff.
--
Kim Steinhaug
-
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
-
www.steinhau
* Ed Lazor wrote :
> Nice solution =)
My thoughts exatly, :D
--
Kim Steinhaug
-
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who do
use session as the main system - cookies only works as a
"saved session" in my systems. (Meaning, instead of having to logg onto
the system again, the username and passowrd are stored in a cookie, this
way the user can choose the famous "remember me" setting many of us enjoy)
($result1)){
if ($selected==$rowu->naamreis)
echo "naamreis\">" . $rowu->naamreis .
"\n" ;
else
echo "naamreis\">" .
$rowu->naamreis . "\n" ;
}
--
Kim Steinhaug
-
been a mail error sending to " . $row["email"] .
"";
[ /SNIP]
This is probably why I in the first place removed the extra ELSE statement,
since I didnt see any reason for it. But in future Ill always include it it
seems, :D
--
Kim Steinhaug
---
s from
phpmailer.sourceforge.net
they use my initial loop aswell, not the "Why do I need this one???" part.
Im beginning to wonder if there are something mystical going on with either
my
code or our servers. ??
Hope someone understand what Im wondering about here, hehe.
--
--
Kim St
d the dopcument.write by
then.
(Ofcourse if he has deactivated images aswell we have problems but hey... )
Alot of nothing here really, but maby someone have some thoughts on the
matter.
--
Kim Steinhaug
-
There are 10 types of p
proprietary Excel systems out there?
Anyone?
--
Kim Steinhaug
-
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
ing in the /tmp folder getting messed up.
If you still havnt solved your problem, get your provider to move you
to another of his servers (physically!), or change provider. You shouldnt
be having theese problems.
--
--
Kim
are back to the login system again.
--
Kim Steinhaug
-
There are 10 types of people when it comes to binary numbers:
those who understand them, and
Could be something about the server environment,
you could try changing to :
$_SERVER["REQUEST_METHOD"]
Run a phpinfo() and see what variables are active on your new
server. I know that IIS webservers lack alot of the variables we
take for granted mostly.
--
--
Kim
27;ll email it to you, I remember I spent some time
finding it.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who
Still, the problem at the time I experimented with it was that you get an
extra DOS window which lies on the taskbar. This was a year ago, maby things
have happened since then.
--
--
Kim Steinhaug
--
There are 10 types of people wh
Do you really need to use stripslashes when retrieving the data?
Wouldnt stripslashes only affect magic quotes or already added slashes,
I mean when you addslashes to the SQL the slashes are indeed removed
when inserted in the table.
--
--
Kim Steinhaug
confront this
problem.
If you find a sollution be sure to inform me, I would love
to know it.
Happy hunting!
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those
Whatabout :
mysql_fetch_array()
or
mysql_fetch_object()
Both gives you both the results and the names of the coloumns.
Maby I didnt get the question right but since nobody else mentioned it, .)
--
--
Kim Steinhaug
--
There are
look abit "unprofessional" if your thinking of
applying
somthing for your business customer.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those
Well,
Since the current timestamt is now, and 5 minutes equals 60seconds * 5
minutes = 300,
this would give you your range as :
$range = time() - 300;
If you are working with time() in your database your select would be
something like :
select * from table where timestamp >= $range
--
--
the one with the smallest
impressions.
$result = query("select * from my_stats_table where order by counter limit
1");
You would here need to add more information, probably might aswell include
the entire
banner in the database.
Well, BTW, hope this helps you.
--
--
Kim Steinhaug
ust fine.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
www.
g. Often I tend to
ZIP the lossless images aswell, but then again I dont need to since HD isnt
a problem atleast in my case.
Hope this helps.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
quot;.
Im sure there also exists a mathematical approach calculating a sort of the
elements based
on the earlier views (meaning that we count each view).
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to bina
Steve Douville had a long answer, the short answer : no
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
u could also go in "rounds" of limit 0,5
thereafter
limit 50000,5 but that wasnt your question.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
There is some ZIP classes on phpclasses.org that work very well,
you dont need to install anything on the server aswell as all code
is included in the class.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to
a session database which grows out of proportions is kinda waste of
space.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those
xit;
}
// The rest of page comes here
?>
This is a brief explernation which should give you what you need to get
going on
your session handling. You also might want to add more variables into the
prosess, like IP, browseragent and such to prevent session
You could ofcourse also use sessions.
If you need to store alot of values, this would be the way to go.
If its only a couple of short ones, ofcourse some GET variables
is the simplest and fastest way to go.
--
--
Kim Steinhaug
hehe,
Reading the manual is somewhat not so bad after all...
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
;";
echo $reversed;
} else echo $string;
?>
I added some errochecking if the string is only 1 character, since there
should be no use in running the for loop then.
--
--
Kim Steinhaug
--
There are 10 types of people wh
flash graphs out there, and the last year the
pricing has dropped to a reasonable one aswell so you might aswell
look at the comercial sollutions out there, they have become real good.
Well, thats one day worth of work summed up for you in one handy
little reply, :)
--
--
Kim Steinhaug
Is it me or is the sollution here incredible simple?
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
JS enabled. The friendslyness
and functionality you can do with JS makes the total experience
far better than not using JS. And you alse can save alot of reloading
of the pages with confirmation dialogs and such.
Anyway, its all a matter of opinion.
--
--
Kim Steinh
iframe (which can be
hidden),
Sure you could use javaapplets and such, but there really shouldnt be any
need
for it.
Surely such an autosave function shoudl use a temp database /table to store
the data,
just as word uses temp files for autosaves.
Have fun!
--
--
Kim Steinhaug
put the DLL file in your PHP DLL file directory,
uncomment the line in php.ini referring to it.
Restart apache if running, IIS doesnt need to be restarted.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to
some error handling here and there.
Its really all up to you, there isnt a perfect way in doing this. But my
advice again, use classess (OOP) as its very reusable and look at
output buffering for total control.
--
--
Kim Steinhaug
--
Th
e
values
in this array will be the onces you should $_POST["action"].
Have fun!
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those
orter from blabla wher id = source
tempB = select sorter from blabla wher id = destination
update blabla set sorter=destination where id = source
update blabla set sorter=source where id = destination
This was all abit quick'n'dirty as I call it, but I hope you got the general
idea on how
my story went, :)
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
You could always use this :
$text = "";
$fd=fopen($url,"r");
while ($line=fgets($fd,1000)) { $text.=$line; } fclose ($fd);
echo $text;
--
--
Kim Steinhaug
--
There are 10 types of people when it com
en using more statements I never seem to find the
way of doing it without having an empty {} in it, dont know if you
see my problem here however, its the best I can exmplain.
For all I know it has to be like this.
--
--
Kim Steinhaug
---
updated.
I have a feeling CVS would maby be the trick here, but im not sure.
Still I could manually do this, it isnt that hard, but you know - maby
there already is such a system out there and in that case it would fit
me perfectly.
--
--
Kim Steinhaug
Take a look at phpclasses.org
Last week there also came another class especially made for backups aswell
if I recall.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand
for the tip,
Kim Steinhaug
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Anyone have a script that reads a file backwards? Im looking for
> a way to trace a log file, say the last 30 lines each time I run the
script.
> I havnt found any D
the files and show the
last lines, but this wouldnt really read it backwards and would work
very "foolishly" on large files I would think.
If there isnt a way of doing this Ill have to do the above, but you never
know. Ill google in the meantime.
--
--
Kim
My first thought is that some dynamic code on this page has an error.
Typical like this :
news:[EMAIL PROTECTED]
> This problem only seems to be happening on one of the virtual hosts on
this
> system, and I cannot seem to figure out just what it is.
>
> I have a simple form posting to search.php,
recall the syntax.
The PHP and HTML extension are nothing more than a way of
cataloging / seperating the files.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and
1) Have your ISP upgraded PHP lately?
2) Are you including files from another server?
Meaning, your on www.domain1.com including files from
www.domain2.com?
Ive encountered this problem earlier when 1) and 2) was the case.
--
--
Kim Steinhaug
else {
$BROWSER_PLATFORM='Other';
}
//debug code
echo "\n\nAgent: $HTTP_USER_AGENT";
echo "\nIE: ".browser_is_ie();
echo "\nMac: ".browser_is_mac();
echo "\nWindows: ".browser_is_windows();
echo "\nPlatform: ".browser
would say gives the best presentation of the statistics
from the availavle sollutions out there.
http://awstats.sourceforge.net/
Regards,
Kim Steinhaug
www.steinhaug.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
På jakt etter en bra netbutikk løsning
runtime loader by
default.
You should check it out, www.ioncube.com
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
Im not completely sure, but have you gone throught the settings in the
IIS server aswell? I know altleast for the CGI IIS has its own
timeout which overrides the php.ini file. It could be something here
aswell, but you probably have done this.
Kim Steinhaug
"Schonrock III" <[EM
Visit sourceforge and look for winmerge, a really excellent software that
does just what you want.
Thrust me - install this software and never look for anything else, :)
Altleast if your on a windows environment.
--
--
Kim Steinhaug
inced.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
www.ste
Try this one :
$_SERVER["HTTP_HOST"]
It will do the trick for you, it will give you the root domain
in the URI of your browser.
--
--
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
to
output something into a javascript statement, eg.
The above example caused me alot of headaches when the text inside '
contained either ' or ", and even the entities also messed up.
--
Kim Steinhaug
--
The
I would sure love to know it,
since my array infact is multidimensional, and the sort() isnt,
though it for some reason solved the problem aslong as Im
sorting the first field.
--
Kim Steinhaug
---
There are 10 types of people when it
place.
Ive tried several times with array_multisort(); but I cant get this
to work, :(
Help would be appretiated!
$stats_SORTED = ???;
Thanks in advance!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
thos
for.
Remember ofcourse that you wuld need to use the regex syntax.
The page on mySQL covering the topic has a lot of examples.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them
er methods aswell should be tested on macintosh systems
just to be sure.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those
header("Content-Disposition: attachment; filename=\"".$fname."\"");
header("Content-length: $size");
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
}
fclose ($fd);
exit;
}
--
Kim Steinhaug
t2 has more entries for each entry in t1, your query will
result
in unpredictable manner.
Hope this helps.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
Finally!
The answer was this :
$url =
utf8_encode('http://www.norid.no/domenenavnbaser/ace/?action=Convert&name=bl
åbær.no');
And it all finally works, :)
--
Kim Steinhaug
---
There are 10 types of people when it c
nkte kanskje det er en begrensning med GET eller at de har lagt inn en
sperre på GET for å bare bruke POST, men den gang ei. POST med sockets
gir samme resultat, uanhengig om man benytter "å" eller "%E5".
Blir POST data kode
Attached is a little textfile on 4 lines, it will choke afte 1 line
due to the "\n\n" problem.
I use this loop to parse it :
$file= "error_log.txt";
if($fp=fopen($file, "r+"))
{
while($line=trim(fgets($fp)))
{
echo $line
"";
} while(true);
fclose ($handle);
echo $count;
exit;
Do you have an example, or link to a site discussing the issue, of
buffering the data?
--
Kim Steinhaug
---
There are 10 types of people when it c
bad way of doing it, since the script still doesnt accually work...
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---
der
information - headers already sent by (output started at
/home/xxx/public_html/admin/news_send.php:2) in
/home/pilotman/public_html/admin/news_send.php on line 34
---
Hope this helpls.
--
Kim Steinhaug
---
There are 10 types of people whe
ut ->
How do I parse the 280MB file all in 1 go?
I have plenty of timeout and plenty of RAM in the php.ini file, so the
problem isnt here.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those w
destructor
function f () {}
}
Dont know if it helps you though.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---
"Marek Kilimajer" &l
Just need to
locate this file first...
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
POST"? Or something
like this?
Maby this is a pointless idea to investigate further ?
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those
Cookies, or browsersession. I found the latter to be very
easy to work with.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
several ways now, but I cant seem to fix them.
Any help would be appritiated? Maby I should change
newsreader?
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
Fix your clock!
Post like theese really screws up the layout in my newsreader!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
somthing use
the date() command.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---
&
g for here, but
hey,
it seems like you dont know yourself, hehe
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those
and he most likely
would love to sell you a dedicated server (so would I, :).
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who do
200 MB = No PHP!
b)
I should do some benchmarking, to find the "magic" marker for how
much XML data that is "affordable" to grab when done on a webserver
with other clients to prevent angry customers or failures due to
factory timeout setting to 30 secs.
--
Kim Steinhaug
some experience on this?
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---
--
PHP Ge
?
It might be a dumb question, but when I know this I might be able to
look further into the problem.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don
tring(3) "123" ["email"]=> string(3) "123"
["submit"]=> string(10) "Submit me!" }
-
Untitled
\n";
//phpinfo();
echo "\n";
var_dump($_POST);
?>
Your nam
you!
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---
"David T-G" <[EMAIL
nd windows.
This can zip down a directory of 1GB of data (tested), and depack it to
another
directory (tested). You can also extract single files out of the directory.
If you havnt found a sollution you should try this one.
--
Kim Steinhaug
---
on phpclasses.org there is a ZIP class that does all you need to do.
Havnt got the time to give you the url right now, but look there.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who
By the way, while I write the message I forgot to correct the
"2 dimentional array" to "array"...
Context is everything, :)
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those
1 for each instance of the user to meassure the counts :
$count[$Screen_ Name]++;
Finally you sort the array and print out the first 5.
(The 2 last steps should be put together since its no use going through the
data twice)
--
Kim Steinhaug
---
Thanks for this tip, i used to use this when I programmed Perl.
But I didnt know it worked here aswell, hehe.
Absolutely true that this is much better code practise, and it
eases up the lines in the code.
Great tip!
--
Kim Steinhaug
1 replace #00 width $backcolor
2. Insert the logic (figc), all lines, into line 19
3. Place fig a in line 4.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who
1 - 100 of 118 matches
Mail list logo