"There are many solutions. My favorite:"
That is, my favourite aswell! :) Works like a charm, not to say
the benefits. You get all the processing detail inside 1 single file,
which makes development easier in my opinion.
Kim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
Do you mean like windows shared folders?
What do you mean ?
kim
"D. Jame" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,
I have three machine 1, 2, 3. all online & have unique IP. one of them (no.
3) running web server which configured with PHP,
now my problem is
I want
Hmm..
This shouldnt be a problem from what I know. Though it woldt be a perfect
system,
all you would need to do, is have a script that does :
1: Read the IE cache directory and puts all the entries into an array (all
the files),
2: unlink all the files in the array.
This would in my opinion wo
You wrote in email :
> How to find the Drive letters and Drive Types of remote system WNT, i have
> system administrator password too..
> this all work done by PHP, when my client give IP, user /password then
> my PHP scirpt show him system drive/ folders... how it possible
>
>
> Plz help
Check my reply under "Share folder".
>From what I know you cant get hold of the accuall drive letter on a remote
machine without hacking it,
and therefore my short answer will be that U cant do it. U can get the
shares, and access them as
explained in the other post -> but not the physical drive l
Important to mention, that the reason why the
$variable
probably doesnt work is that your service provider
has turned off the globals. In this case you would need,
as Zhuravlev mentions, use $_POST["variable"] to
insert the records. All in all, since the factory setting in
the new versions of PHP
U wouldnt need to timestamp it, split the filename insert into 2 dimensional
array,
and use the sort() command and you have it.
Se examples her, theres also examples of sorting into more levels, meaning
you
can sort first by date, then by filename aslong as you do your splitting
right, :)
http://
Well,
If your into your programming, have a look at this one :
http://www.phpclasses.org/browse.html/package/1199.html
It does something else, but the same approach can be used to
format your readable dates. This wheel has surely been invented
already, so you probably should do some googling to f
> wrote in message
news:[EMAIL PROTECTED]
>
> --- Kim Steinhaug <[EMAIL PROTECTED]> wrote:
> > Hmm..
> >
> > This shouldnt be a problem from what I know. Though it woldt be a
> > perfect
> > system,
> >
> > all you would need to do, is have a
the fact he earlier mentioned cache files, could
be Opera
however) are controlled from an .INI file, this also should be no problem on
the
windows machine. But I think we have long passed the topic here.
Kim
"Mark" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
"First thing is, it's possible"
First of all PHP is server-side and has nothing to do with client side.
If you have managed to do this, you must have some concepts
screwed up! Lets not believe that PHP is client side all of a sudden!
Sorry mac -> But you havnt done this in the past!
a) On the oth
My system (win2000 IIS) also handles 0, and webserver (redhat apache) also
handles 0.
Your system sounds faulty in some way,
what browser are U using and what version of PHP.
I know from earlier experience that some versions of Netscape behaves
strange on the
elements, meaning when posting / "ge
"scripting techniques and a hidden iframe"
Ahh... Nice one! This accually didnt come to mind at all for me,
probably because this sort of scripting soon gets very complicated
given that such applications are supposed to work flawlessy for the
end user. And to many loading windows (hidden frames),
I used to think this was a very much needed tool, but now I have a different
opinion.
Thank god reverse engineering isnt the easiest thing to do!
Why else do we accually pay licenses for products like IonCube and Zend
Encoder!
They would be worthless if such software were available, not to think
emp2[0];
Voila!
Should always work, aslong as there there are always " around the text.
--
Kim Steinhaug
---
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
code to fit their needs without you
getting
credit /payd for it.
2) Your customers doesnt play "developers" and try jerking your scripts,
which in the long run gives you alot of extra support time as the
scripts
go bugging out.
Happ
- -
The above example I use alot, I find pushing things into array beeing
a very handy way of doing things, as its very nice and handles n
occurencies.
--
Kim Steinhaug
---
There are 10 t
your server, and how quick
you want your site to accessible for your visitors I would stick to a)
I dont think it good practise to store images into the database either.
--
Kim Steinhaug
---
There are 10 types of people when it comes to
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
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 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
---
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
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
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
---
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
tring(3) "123" ["email"]=> string(3) "123"
["submit"]=> string(10) "Submit me!" }
-
Untitled
\n";
//phpinfo();
echo "\n";
var_dump($_POST);
?>
Your nam
?
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
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
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
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
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
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.
---
&
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
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
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
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
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.
--
.
--
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
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
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
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
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.
---
"";
} 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
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
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
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
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
header("Content-Disposition: attachment; filename=\"".$fname."\"");
header("Content-length: $size");
while(!feof($fd)) {
$buffer = fread($fd, 2048);
print $buffer;
}
fclose ($fd);
exit;
}
--
Kim Steinhaug
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
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
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
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
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
---
($result1)){
if ($selected==$rowu->naamreis)
echo "naamreis\">" . $rowu->naamreis .
"\n" ;
else
echo "naamreis\">" .
$rowu->naamreis . "\n" ;
}
--
Kim Steinhaug
-
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)
* 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
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
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... :
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
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
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
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
;";
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
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
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
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
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
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
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
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
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
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
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
---
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
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 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
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
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
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
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:
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
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
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:
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.
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
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
--
--
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
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
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
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
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
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
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
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
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
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
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
1 - 100 of 118 matches
Mail list logo