Hi Binay,
The only way you can get the file size before upload is to use a Java
applet or activex. If i am not mistaken you can remove the 'max size
exceeded' warning only by recompiling php.
all the best
ps: appreciate if you could switch off return reciepts on your mail client.
Binay wrote:
HI,
Te first time i switched from $userfile_** to $_FILES i spent hours
pulling my hair out trying to figure out why my arrays were not getting
populated. I too felt like reporting it but decided against is because
someone is sure to say 'this is a feature not a bug' :-))
Nathan Taylor wrot
Jay,
Thank you very much for bringing this up. I think if people cannot be
curteous and cannot obey maliling list rules and etiquette they don't
deserve replies.
Jay Blanchard wrote:
I just had to get it out of my system this morning. No offense intended
to anyone, and not directly aimed at
this is not really about PHP and palm but writing a client for the palm.
You are better off asking this quesition in a palm list.
Charles Kline wrote:
I have a project in mind where I would like to be able to Sync my Palm
with the calendar in my CRM. Anyone have info on doing this?
Thanks,
Cha
The only sure fire way to make sure you sessions do not get killed
without cookies is to append the session identifier to the end of each link.
Adam H. Pendleton wrote:
I am running Apache 2.0.47 with PHP 4.3.3 on a Windows 2000 server,
and I am having some trouble getting cookie-less sessions
Wrong approach all together. Start using CVS
Wei Wang wrote:
>hi,
>
>This may sound very newbie. But since html comment uses which doesn't
>comment out the
>php code. And the php comment /**/ // apparently doesn't work on html. So how do I
>comment out
>a chunk of html/php mixed code?
>
>
>M
Is this part of the 'mailing lists :: guess the missing paragraph'
competition?
Suresh Babu.A [Support] wrote:
Hi Team,
How to track a posting in a faq using mysql.
Thanks in advance.
Suresh A.
--
Raditha Dissanayake
-
Having done some coding for the print industry i can tell you that pm7
may be adobe page maker 7 and p65 could be pagemaker 6.5 no idea about
qxp and .pmd though.
Ed Curtis wrote:
On Mon, 15 Sep 2003, Raditha Dissanayake wrote:
You don't need to look any further than mime.types
You don't need to look any further than mime.types files included in
your apache distro.
Ed Curtis wrote:
I currently limit file types in an upload script by using an allowed
types array
$allowed_types = array("image/jpeg", "image/gif");
I also need to allow files of with the following extentio
data via a PHP form, I want to be able
to set up a system where the user can login and edit their entries only, in
other words they cant edit another users data.
Ryan
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Sorry but your problem isn
Hi,
The php xml modules are installed by default with recent versions of
php. This requires that you have libexpat on your machine. They are
available on most linux distributions cds. If you are on windows you can
dwonload from the site (forgotton the url)
From the type of questions you have a
Wei Wang wrote:
if you are asking questions about specific scripts you will always be
better off in the message boards / mailings lists maintained by the
script owner.
However i will hazard a guess that you have not created the tables in
the db.
>CREATE TABLE guests (
> guest_id
>int(4)
>
Wei Wang wrote:
hi, all,
I have a piece of code stuck at the point of "if (($REQUEST_METHOD=='post'))". "var_dump($REQUEST_METHOD);" shows that the variable
should be $REQUEST_METHOD == 'POST'
why don't you just use the $_REQUEST array instead?
--
http://www.radinks.com/upload
Drag and Drop F
Sorry but your problem isn't very clear.
If you are talking of dreamweaver problem you are better off using their
support forums. Or are you talking about a wiki site?
Ryan Stagg wrote:
How would one go about allowing editable access to only the entry creator
For example:
If I added an entry t
Hi,
you cannot invoke php functions from javascript. You have to pass on any
relevent variables (which can be done with hidden input fields) with
your POST/GET data to the script for processing on the server.
[EMAIL PROTECTED] wrote:
Hello I was wondering if someone could help me out.
Trying t
Hi thomas,
Thomas Weber wrote:
IMAP? We were talking about IRC,
Used imap as an example.
the Internet Relay Chat.
In detail, my problems doesn't even refer to IRC directly, as i am
developing a server for a html-based webchat, but the server-structure and
the messages are nearly the same.
Yes m
x27;s TCP and a very uncomplicated protocol, everything is sent in clear
text. Major problem is the socket-multicasting to keep track of all clients
simultanly.
- Original Message -
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
To: "Thomas Weber" <[EMAIL PROT
Is IRC UDP?
Thomas Weber wrote:
Hi,
i've checked a hundred things before posting this question, but i forgot the
most important thing, the buffer.
The 'eaten' writes were buffered by the network-kernel and sent as bunch of
data. If too much data for the buffer is sent, the write is broken up and
c
Hi,
Ouch tried it again and mozilla had a heart attack and core dumped :-((
Then i tried konqueror browser worked like a charm
Gentlemen, i think others in the group must be pretty annoyed about this
thread shall we hop over to a java group?
Raditha Dissanayake wrote:
Mozilla 1.4 Red Hat 9.0
; it is there
with IE.
Todd
Raditha Dissanayake wrote:
HI,
I tried it on netscape and it works. My jre is 1.4.2. AFAIK this is
the only stable jre after 1.3xx series. It's a simple matter to add a
line of code to the java applet to do the base64 decoding if you are
concerned
Read the apache url redirecting guide. (it's incldued with your apache
download)
John Ryan wrote:
Is it possible with an Apache confiugartion file to redirect users, if their
browser sends a certain accept/type header, and somewhere else if not??
I dont want to do it with PHP
--
http://www
HI,
I tried it on netscape and it works. My jre is 1.4.2. AFAIK this is the
only stable jre after 1.3xx series. It's a simple matter to add a line
of code to the java applet to do the base64 decoding if you are
concerned about compatibility.
On the point raised about activex : The default plug
r of other things that
netscape does not fully support (try loading a page with an iframe tag
in Netscape). You probably ran into another such problem.
-Dan
--
Raditha Dissanayake
--
http://www.radinks.com/sftp/?sg
Lean and mean secure FTP
issues. We apologize for the inconvenience and thank you for your patience.
--
Raditha Dissanayake
--
http://www.radinks.com/sftp/?sg
Lean and mean secure FTP applet in pure java.
Complete with Graphical User Inteface Just 150 kb in
once upon a long ago someone (i belive his name is Hrvoje Niksic) wrote
a program called wget so that people do not have to do all this :-)
Andrea Tricco wrote:
Hi,
I'm using the function "file_get_contents()" to replicate the content of a
remote html page on my server.
But, the function file_ge
Hi,
Goto http://kannel.org and download their sources. They have some sample
PHP scripts to send sms. Obviously you will need a GSM modem or access
to an SMSC to make full use of it.
all the best.
Dave Carrera wrote:
Hi All
Is there a way to send sms messages via php.
I really don’t know any
hi,
AFAIK this is not something that you need to bother with in your php
scripts. this is a web server level issue
Scott Dotson wrote:
I am trying to get the ability to resume broken downloads with a client
(such as FlashGet, GetRight, etc...) I am able to download the complete
file without
If you want to process the conent of a form without passing it back to
the server you definitely need to learn javasript.
Dan J. Rychlik wrote:
Hello,
I have created a db that holds specific information ie a business name. I am running into a problem on a form when you choose the business name
btw have you checked if you are in safe_mode? in php.ini
error level can also be set in php.ini
my guess is that you have a problem in your chroot setup.
best regards
Adam Douglas wrote:
Mmm... okay. I tried that and nothing. Is there no way for me to determine
what the problem is? Error message
What jay has to say + please look at the archives for this month. You
will find this topic discussed quite often.
best regards
Jay Blanchard wrote:
[snip]
I have created an application to read email addresses from a list and to
send emails. The problem now I am facing is, if the list is very lo
Hi Mr Bogomil,
IMHO you should try to do this with most things that look like
it should be delegated to php can in fact be done easily with
or
best regards
raditha
Mr. Bogomil Shopov wrote:
Hi folks
How I can put some php code in a XSL template.
I have a function that returns a value and I
Great to hear.
Reading my previous post, i am suprised you understood it with all the
glaring spelling mistakes :-). Yikes. Sorry about that i typed it in too
much of a hurry.
[EMAIL PROTECTED] wrote:
ok i managed to set the generated error screen to a variable, do the
rollback then die
H,
H,
The mysql_error() fucntion returns the error that took place for the
last call to the db. If you do a roll back that would be considered
another call and mysql_error() would then return the error (is any)
associated with the roll back. If this reason many programmer create a
separate error
I meant to do this:
$szPipe = `/htdocs/gs -q
-dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
/htdocs/Sep08-113523.pdf`;
Adam Douglas wrote:
Backticks is simply the ` sign (usually the character above the tab).
Popularly know as `hair on the ear` in
hi
Backticks is simply the ` sign (usually the character above the tab).
Popularly know as `hair on the ear` in my country :-)
for example if you want to invoke ls from php you just type
$result = `ls`;
hey presto the output from ls is now in your $result variable.
all the best
Adam Douglas wr
Adam Douglas wrote:
1) When I echo out $szPipe I get "Resource id #2".
Sorry i was thinking of backticks. btw have you tried it ? (backticks)
2) Oops, that chrooted in /var/www/. So I thought I should be putting just a
/htdocs/, no?
yeps.
3)Yes I tried running gs in the console as root works f
Hi,
1) please try $szPipe and see if you get any output.
2) if you are jailed in /var/htdocs/ your pathname /htdocs/qs is incorrect.
3) I guess you tried running gs from the jail either as yourself or as
root.
please see if nobody or apache (the webserver's user) can run gostscript.
all the best
Hello,
my comments are below this snippet.
class AGENT{
/*
** 2003-09-04 jb PRIVATE PROPERTIES
*/
var $strCommCode; // agent commission code
--
Hi,
It's not very clear what you are trying to do. From what i understand
from your mail, i think a recursive call to select_names would be the
ideal solution. In these scenario you call select_names() once and from
within the function you call select_name() again for the each of the
matches o
Hi,
Looks like a crash course is XML is in order :-) I suggest you take a
look at the xml parser functions in the manual. to start off with. Then
there are some good tutorials at w3schools.com
all the best
Bc. Radek Krejča wrote:
Hello,
I have following xml file:
http://www.w3.org/2001/XML
printf("%.2f",$number);
Shaun wrote:
Hi,
I am dividing a number by another number and printing the result to the
screen. How can I ensure that the number is rounded up to 2 decimal places?
Thanks for your help
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
--
PHP General Mai
Hi,
the $ sign inside single quotes is just a dollar sign. When you place it
inside double quotes it's the start of a variable name.
This is because what is inside single quotes are unparsed while whats
inside double quotes are parsed. For this reasong if you are having to
print out lengthy stri
Can't resist trowing in my 0.02 either:
As dan pointed out it's so much faster to do things in php. When you
take into consideration the fact that code on windows never work the
way it's supposed you are saving a lot of man hours.
Second point worth mentioning is that a given languages/framewo
Hi,
Done something similar on a pentium pro around a million years ago :-)
gazillion dollar databases would find it hard to compete with mysql on
the speed of select queries. but mysql can't compete on inserts most
notably on tables with lot of indexes.
If you have to insert thousands of rows in
what's the error message?
Ben C. wrote:
I am having problems using the following functions; trim(), ucwords(), and
others. Do I have a setting wrong?
Ben
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Hello,
It's often said that includes should have relative paths instead of
absolute paths. This ensures that your script still works when you move
it to a different server. So if an error has forced you to use rel paths
consider it a blessing in disguise :-)
Ty Lamb wrote:
/index.php
has
incl
Hi,
What do you mean running from the cd? are you using something like
knoppix? The log directory for both apache and mysql definitely needs to
be writable not to mention the data dir for mysql.
Have you tried running your query from the mysql command line client?
Uma Shankari T. wrote:
Hell
make sure it's (unzip) patched there was a recent security issue with
unzip. You can get the latest RPM from redhat. Otherwise someone might
upload a zip file and get control of your server :-)
Richard D. Marriner II wrote:
Umm, I believe somebody already answered...
unzip is what you need...
Hi,
Just a personal opinion only: If you are a die hard OO fan. you are
better of with J2EE. If you were brought up on C, think linux is the
best thing that ever happened to computers, welcome to the world of PHP.
best regards
raditha
[EMAIL PROTECTED] wrote:
I am building a project where I pl
Yes java newsgroups :-)
but seriously there is a good on at sourceforge.
Todd Cary wrote:
I would like to have a HTML editor on a Web site so the user can
create HTML based text. Google brings up too many matches when I type
in "Browser HTML editor Java" that do not match my needs. Does anyone
And i am sorry for being trigger happy.
Erick Okasaki wrote:
Sorry if I was not clear enough but it's a php question because I
want get IP Address from connection ppp0 (in Linux) with some function
in PHP!
thanks
Erick
Original Message
Hardly what you call a php question.
j
Hardly what you call a php question.
just type
ifconfig -a
Erick Okasaki wrote:
Hello List,
How can I get IP Address from my connection ppp0 or ppp1 in Linux?
What 's the function?
thanks
Erick
--
http://www.raditha.com/php/progress.php
A progress bar for PHP file uploads.
--
PHP General Mail
Unfortunetly setting quotes (eg for apache user)doesnt prevent from flooding
out entire disk. For example i can have running a script that will check
user directories every 15 minutes and if some directory will contain large
amount of apache generated files, user account will be disabled and
You are right anil,
I think we should collectively discourage people from attempting this
sort of this. I am no fan of webmin, cpanel or any of the other
vhost/admin stuff but at least they are likely to be more secure than
what can be scratched together in a hurry.
Anil Kumar K. wrote:
Writi
M, very interesting thread, thanx for starting this. Good comments curt.
1. (!!!) Absolutely easily generate new sessions with any content for every
site on server.
It's because of the 'suspect' nature of sessions and cookies that i
never place userid,username or password in sessions
this is in fact pretty easy.
this should get you started
[code]
$files = split("\n",`ls *gif`);
srand((double)microtime()*100);
$num = rand(0, count($files));
echo "$num = $files[$num]";
[/code]
John Taylor-Johnston wrote:
I have a directory jammed-packed with images.
I want t
hi,
This is because the life time of an object is only as long as the page.
Two solutions: store the login attempt count in the cookies. If you want
persistent objects serialize them and save them to disk or db. and
deserialize them again on the next page. This will have to be coupled
with a u
Most common cause of this problem is whitespace before the '
I am getting this error:
Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at
/usr/local/apache/php/includes/2004server.inc:24) in
/usr/local/apache/php/includes/r
Hello
Are you using POST instead of GET?
hecchan wrote:
Hi,
I have a class which write a menu, it works fine with Mozilla and
Opera but with IE (6 on XP) got a extrange behaviour.
Links works and submenus are open, but the second time the page is
loaded I can not see the source and if I try to
Chris is right on both counts. :-)
and this is exactly how i do it in my file upload progress bar.
best regards
raditha
Chris Shiflett wrote:
--- John Bryan <[EMAIL PROTECTED]> wrote:
So looks like I can't have it both ways, i.e. POST and GET
Yes, you can.
The script blah.php can refer
ently as a cgi-type parameter through stdin (i.e. cin), so that when I try to pass the value as a cgi parameter, it gets inserted INTO the file that is being uploaded.
Am I understanding correctly, or did I miss the point ?
Thanks,
JB
On Tuesday, September 02, 2003, at 01:21PM, Raditha Dissanaya
Oh well, and i thought i knew everything about php :-(
Ford, Mike [LSS] wrote:
On 02 September 2003 19:22, Raditha Dissanayake wrote:
Hi,
Had a similar problem when building upload progress bar. Initially i
used cookies but that had a few minor hiccups. What you can do is to
encode your
Hi,
Had a similar problem when building upload progress bar. Initially i
used cookies but that had a few minor hiccups. What you can do is to
encode your variables into the query string. This is accessible as part
of the env. variables. Since you are familiar with C++ you will get the
hang of
hi,
There isn't a specific PHP api for this. But you can execute shell
commands through various mechanisms included exec, backticks etc etc.
All of this is deadly dangerous of course because you need root privileges.
Joe Harman wrote:
Hey guys & gals...
Is there a way to restart Apache with
Lbasic Game Central - http://www.freaksw.com/rbgames
"Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
--------
---
--
Raditha Dissanayake
http://www.radinks.com/sftp/?sg
Lean and mean secure FTP
with "<<<" describes the specific reason your e-mail
could
not be delivered. The next line contains a second error message which is a
general translation for other e-mail servers.
***
Thank you in advance.
David
--
Raditha
d it
will work?
Merlin
Raditha Dissanayake wrote:
There are two magical commands on linux called 'locate' and 'find'
:-) if you have locate just type
locate c-client or some filename associated with the imap lib.
find is more complicated you could try something like
find /
There are two magical commands on linux called 'locate' and 'find' :-)
if you have locate just type
locate c-client or some filename associated with the imap lib.
find is more complicated you could try something like
find / -name 'c-client*' | more
the above will search your whole hard disk so
Hi,
It's not very clear from your message what you are trying to do. If you
are trying to just reload some of the frames instead of the whole
frameset look at the 'target' attribute for 'A' element in html.
Ronald van Raaphorst wrote:
Hi all,
I have header, a menu and a content frame.
The head
Why am i saying 'finder' ? not enough coffee :-) i meant find a.
Raditha Dissanayake wrote:
Hello Ryan,
If you find the php date time functions not to your liking you will
finder more easy to understand version in mysql.
all the best
Ryan A wrote:
Hi,
Thanks for replying.
Am a bi
Hello Ryan,
If you find the php date time functions not to your liking you will
finder more easy to understand version in mysql.
all the best
Ryan A wrote:
Hi,
Thanks for replying.
Am a bit confused even after your example as to how to enter this into the
datetime field in mysql so that i can c
hi Ron,
There's no way you can retrieve the php on a remote server (unless of
course they have a major security flow :-) )
Ron Clark wrote:
Hello all,
Does anyone have a script, or know where to find a working script to pull
backend.php files from a site, parse them into a html type file, and d
Hi,
The best approach for you is to use XSLT. good information about XSLT
can be found on w3shcools.com
briefly what it can do is to take an xml and convert it to virtually any
other format. For this is to happen though you need to have strict XHTML
transistion will not do because it's not alw
Hello David,
looks like a bit of a tough one :-) guess you might be better off trying
one of the qmail groups instead of this one. Sorry my own qmail
expertise isn't as good as it should be.
best regards
raditha
David T-G wrote:
jabber, et al --
...and then [EMAIL PROTECTED] said...
%
% Hello
Hello,
More suprising is that the html you have below works perfectly on my
mozzilla 1.4 running on Red Hat 9 :-) provided i do have this
exact path on my computer. /home/users/grant/Parts.txt
From what you are saying it looks like in your case
'/home/users/grant/Parts.txt' does not exist on yo
You might also want to use addslashes() .
like '%something%' puts a big load on the database server. and it seems
you are doing mulitples of these queries. Please make sure you have the
correct indices on your tables. You might want to look at fulltext
indexing instead.
all the best
murugesan
strcasecmp, strchr, strcmp, strcoll, strcspn, stripos,
stristr, strspn, strstr, to take just a few. A programming language
has already its problems for not being natural, no need to make it
even more so. Second, it the array overkill.
Nevertheless, I love it.
the proper operation,
is it documented anywhere? I've been unable to find it.
--
Jeff Bearer, RHCE
Webmaster, PittsburghLIVE.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Raditha Dissanayake
-
roblem? Does anyone have any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Raditha Dissanayake
-
http://www.radinks.com/sftp/
Lean and mean Secure FTP applet with Gra
701 - 779 of 779 matches
Mail list logo