hi all,
I was just wondering if anyone has had any success using mime_magic to
guess the content type of MS Word documents..? The extension works for
gif's & jpeg's, but mime_content_type() returns "text/plain" for Word
and Excel docs.
I'm using php 5.0.4 on Windows, and the mime.magic file tha
i'm compiling php5.1 using
php zend_vm_gen.php --with-vm-kind=GOTO (or SWITCH)
and make
it takes me 300 virtual mem to compile zend_execute.c without ending,
hav eto CTRL+c to break
CFLAGS:
-g3 -O3 -Wall -march=pentium3 -pipe
any idea?
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
Hello,
on 06/13/2005 02:28 PM Kall, Bruce A. said the following:
Is there a way to post a form to a url without having a user submit from
the form?
I have a php web page that is a detailed form with a lot of fields. If
the user does some work on this form and let's it sit, their session can
Hi, perhaps someone might be able to look at this code - it works when I
run it from the command line, but not when viewed through a web page. I
am running IIS 6 on Windows 2003 server.
Thanks
Justin
Activate;
# This is your mailbox name just like it appears in your Folders view.
It might be
On Mon, 2005-06-13 at 17:26, Chris Shiflett wrote:
> Kall, Bruce A. wrote:
> > I have a php web page that is a detailed form with a lot of fields. If
> > the user does some work on this form and let's it sit, their session can
> > time out (I had this happen to the user after it sat for 2 hours).
ALERT!
This e-mail, in its original form, contained one or more attached files that
were infected with a virus, worm, or other type of security threat. This e-mail
was sent from a Road Runner IP address. As part of our continuing initiative to
stop the spread of malicious viruses, Road Runner s
Although this isn't a validator, I recently found this site which seems
to hold a lot of good information for supporting a wide range of
browsers (especially some of the dinosaurs).
http://www.quirksmode.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
jack jackson wrote:
Hello,
Recently with the help of several of you I got a script working. It's
complex, I'm still new, some parts of it came from other authors and I
adapted it, and generally despite the fact that it seems to work
perfectly at this point, I am certain that there is bloat, repet
Finally, the newsgroup start working once again...
The problem was
"if (xml_error_string($xml_parser)) {"
which I was told should be
"if (xml_get_error_code($xml_parser) != XML_ERROR_NONE) {"
It solve my problem now.
Now how do I parse the DTD's entity, element, etc along with the PHP's
Kall, Bruce A. wrote:
I have a php web page that is a detailed form with a lot of fields. If
the user does some work on this form and let's it sit, their session can
time out (I had this happen to the user after it sat for 2 hours). Is
there some way to have a timer in the page and have partial
I did this using PHP and Javascript not too long ago. My solution may
not be elegant but it works.
I set up an inline frame on a page that had my large form. I set the
soruce of the frame to my processing page and set the display style of
the frame to none using CSS. Then for all the form elem
Good point. Only problem is, if someone hit enter a-million times,
you would end up with a-million spaces where the "\n" characters were.
To take care of that repetition, maybe something like:
while (strpos($textarea_text, "\n\n")) {
.
}
would be one way you could do it.
$new_str =
On Mon, June 13, 2005 10:21 am, Scott Fletcher said:
> I'm not sure what's wrong with PHP.. I ran the XML file through the
> Mozilla
> and it validate just fine. I get XML parse error but it gave no reason
> for
> the errors.
>
> The source code here is
> [code]
> $data = "Were changing";
>
> $xm
On Mon, June 13, 2005 12:06 pm, Paul Nowosielski said:
> I'm having a perplexing problem. I'm gather data through a
> html from field and dumping it to MySQL.
>
> I want to display the data as a long string with no carriage returns or
> line breaks in a dhtml div window.
What styles have you ap
Check out the "xmlhttp" object in Javascript:
http://jibbering.com/2002/4/httprequest.html
On 6/13/05, Kall, Bruce A. <[EMAIL PROTECTED]> wrote:
> This is perhaps a javascript question
>
> Is there a way to post a form to a url without having a user submit from
> the form?
>
> I have a php
This is perhaps a javascript question
Is there a way to post a form to a url without having a user submit from
the form?
I have a php web page that is a detailed form with a lot of fields. If
the user does some work on this form and let's it sit, their session can
time out (I had this h
Right.. But the browser also should be ignoring the carriage returns
as well, which makes me think the div is set to "white-space: pre;" or
something. He said the text is being formatted in a div exactly how
it is entered into the system. By default, a div does not render any
carriage returns.
> Good point. Only problem is, if someone hit enter a-million times,
> you would end up with a-million spaces where the "\n" characters were.
> To take care of that repetition, maybe something like:
>
>
> while (strpos($textarea_text, "\n\n")) {
> .
> }
>
>
> would be one way you cou
Good point. Only problem is, if someone hit enter a-million times,
you would end up with a-million spaces where the "\n" characters were.
To take care of that repetition, maybe something like:
while (strpos($textarea_text, "\n\n")) {
.
}
would be one way you could do it.
On 6/13/05
> Use the PHP str_replace function before writing it to the DB. Replace
> all "\n" characters with an empty string "".
>
> http://us2.php.net/manual/en/function.str-replace.php
I think it might be better to replace all "\n" characters with spaces " ",
otherwise you will end up with sentences tha
Use the PHP str_replace function before writing it to the DB. Replace
all "\n" characters with an empty string "".
http://us2.php.net/manual/en/function.str-replace.php
On 6/13/05, Paul Nowosielski <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a perplexing problem. I'm gather data through a
Hi,
I'm having a perplexing problem. I'm gather data through a
html from field and dumping it to MySQL.
I want to display the data as a long string with no carriage returns or
line breaks in a dhtml div window.
The problem I'm have is that the form data is remembering the carriage
returns. I
I've tested it under solaris 9 and it failed 3 tests:
=
FAILED TEST SUMMARY
-
Bug #31213 (Sideeffects caused by bug #29493)
[ext/standard/tests/array/bug31213.ph
I'm not sure what's wrong with PHP.. I ran the XML file through the Mozilla
and it validate just fine. I get XML parse error but it gave no reason for
the errors.
The source code here is
[code]
$data = "Were changing";
$xml_parser = xml_parser_create('ISO-8859-1');
xml_parser_set_option($xml_pa
Hello!
The PHP Team just released it's first release candidate for PHP 4.4.0.
This is solely a bug-fix only release, the increased middle digit is
needed because this release changes PHP's Internal API that causes
third-party binary extensions to be incompatible with PHP 4.3.x.
This release ad
> Amazing.
>
> Thanks for sharing that. It's a great example. :-)
You're very welcome! If it helps just one other developer avoid the same
pitfall, then today is a very good day. :-)
> Exactly, and this is why it's a good practice to use a seed when you
> generate MD5s for passwords.
Which is e
Hi Richard,
Thanks for the response. I'll try out the fifo.
Tom
[EMAIL PROTECTED] wrote:
>
> On Sun, June 12, 2005 12:57 pm, Tom Fishwick said:
> > I have a script that spawns off a bunch of children with pcntl_fork(),
> > but I can't figure out how to connect up a pipe from the parent to ea
Oh, forgot to add the "!" to the "#/usr/local/bin/php".. Since it's my
first time in shell scripting with php so I wasn't thinking correctly...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi! I'm trying to run PHP as a shell script but I got the error
message.
Hello,
Monday, June 13, 2005, 5:02:40 PM, you wrote:
IG> Is there a big difference between me including a file by putting
IG> the url in the include() such as
IG> include("http://www.examplesite.com/examplefile.php) and putting
IG> the server path such as
IG> include("number/www.examplesite.com/p
* Chris Drozdowski <[EMAIL PROTECTED]>:
> I need some help regarding documenting code. Say you have a
> function/method that takes an object as a parameter and/or returns an
> object.
>
> When documenting, do you specify the specific class of the object when
> listing the datatype in the docbloc
* "I. Gray" <[EMAIL PROTECTED]>:
> Is there a big difference between me including a file by putting the url
> in the include() such as
> include("http://www.examplesite.com/examplefile.php) and putting the
> server path such as
> include("number/www.examplesite.com/public_html/examplefile.php")
Murray @ PlanetThoughtful wrote:
The app in question was storing the md5 value of 4-digit PINs in the
background database, and the owners of the app were quietly confident that
this meant the PINs were 'encrypted' and 'secure'.
Amazing.
Thanks for sharing that. It's a great example. :-)
Of c
() is meaningless in an include. But in PHP you can put () around just
about anything you want. Just like you can do: $a = ($b); There is no
point in the brackets there. The PHP parser simply uses brackets to
create precedence groups. So yes, you can do include("foo.php") if you
want, but you
Hi
Just a quickie.
Is there a big difference between me including a file by putting the url
in the include() such as
include("http://www.examplesite.com/examplefile.php) and putting the
server path such as
include("number/www.examplesite.com/public_html/examplefile.php") ?
I want to get in
Hi Cris,
I think object is necessary for PHPDoc standart (or similar);) But a
detailed description of what object contains will be very helpfull.
Unfortunatly you should make it in a separate file.
--
Bogomil B. Shopov
http://purplerain.org
Reply --->
Chris Drozdowski wrote:
> I
Jackson,
Yeah, what you can do is place all your form values you just got into
an array, and then act on each of them in turn by looping through the
array when it comes to repetitive jobs, such as the
mysql_real_escape_string(trim($_POST['variable'])) part of the code I
referred to earlier.
You c
> In that framework there is no such thing as "decrypting" an MD5 digest,
> because an MD5 digest is not an encrypted version of the message to
> start with. No amount of CPU power will change this basic fact --
> though CPU power can be used to do a brute force search for strings
> which will gen
I originally submitted this to the PHP DB mailing list. Hopefully
someone on this list not on the other can give me some help.
My company runs a Linux based PHP website with a MySQL database backend.
We also have several MSSQL databases deployed throughout the
organization. One of our MSSQL dat
Thanks, Chris, I see what you're getting at. I'm not sure I
understand what you mean about looping through the array in the area
you specified- isn't that just the definitions of the vars? Or is that
what you meant and I'm missing the point!!?
On 6/13/05, Chris Ramsay <[EMAIL PROTECTED]> wrote:
Hey there Jackson,
The first thing I would consider would be to see if you can classify
the code into chunks that do a certain job, and then rewrite them as
functions. I would also consider looping through arrays for repetitive
jobs (lines 258 -> 270 for example).
Down the line you could consider
Hello,
Recently with the help of several of you I got a script working. It's
complex, I'm still new, some parts of it came from other authors and I
adapted it, and generally despite the fact that it seems to work
perfectly at this point, I am certain that there is bloat, repetition
and simply usele
Richard Lynch wrote:
On Fri, June 10, 2005 3:01 pm, Jason Barnett said:
That is incredibly interesting stuff, many thanks for that link! So the
position seems to be that it may not be feasible to reverse MD5, but it
is now feasible to create forged documents / binaries / whatever that
result i
On 6/13/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> To find out how your PHP was compiled create a test page with this
> only...
>
>
> phpinfo();
>
> ?>
>
> And then load the page from your web server. It will return a wealth of
> information to you. As far as Oracle compatability it would
FYI for those in the tri-state area.
> -Original Message-
> From: Hans Zaunere [mailto:[EMAIL PROTECTED]
> Sent: Sunday, June 12, 2005 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: [nyphp-announce] IBM's PHP Strategy - New York PHP June Meeting
>
> New York PHP June Meeting
> --
[snip]
How do I find out how my PHP was compiled? The documentation states:
You have to compile PHP with the option --with-oracle[=DIR], where
DIR defaults to your environment variable ORACLE_HOME.
But I'm using PHP from the Red Hat default install (I didn't compile
it).
Also, do you know if th
On 6/10/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Fri, June 10, 2005 8:48 am, Shane Presley said:
> > Where can I find some info on integrating Oracle and PHP?
>
> http://php.net/oracle
>
> pretty much covers it.
Thanks! You're right, that looks pretty straight forward. Although I
do h
On 13 Jun 2005, at 10:52, Marcus Bointon wrote:
I just tried compiling on a clean install of 10.4, with a clean
install of fink (I'm using some fink packages like apache2, JPEG,
PNG, etc) and I'm still getting the ld problem I mentioned. Think I
may have to report it as a bug and see what c
hi
i am new to php and am building my first php extension. i have a code
in cpp that uses pthreads for carrying out the job. i tried to convert
this into a php extension but was unable to do so despite a number of
tries.
i am able to compile the extension that i build but am unable to load it.
the
On 12 Jun 2005, at 04:17, Richard Lynch wrote:
I vaguely recall an issue with mb_* where people saw this nifty new
feature and turned it on having no idea what it was, and, well, they
didn't really want that feature turned on at all...
This could be the same thing.
Or not.
Try ./configure --w
ALERT!
This e-mail, in its original form, contained one or more attached files that
were infected with a virus, worm, or other type of security threat. This e-mail
was sent from a Road Runner IP address. As part of our continuing initiative to
stop the spread of malicious viruses, Road Runner s
50 matches
Mail list logo