php-general Digest 4 Feb 2002 08:05:30 - Issue 1151
Topics (messages 83325 through 83367):
Using session functions in PHP4.1.1
83325 by: John Mpaliza
83343 by: Yasuo Ohgaki
83348 by: sagar N chand
Re: PEAR IMAGICK [WAS-> RANT: Why doesn't PHP have built-in support f
Is there a function or class written to convert rtf reliably to html? :)
Let me know,
John
A post & reply would be helpful if you can.
"Jason G." wrote:
> MS Word is a proprietary, binary (i think), format... Have fun.
>
> There may be a solution out there.
>
> If you could convince her to save
I am aware of cURL, but I want to just use the standard PHP stuff if I can
because I plan on releasing this when I'm done, and want to KISS for other
people.
I know people have to compile PHP with sockets, but they will anyways for
this project- I'm going to need socket_listen and socket_creat
Actually there is not a php.ini in MacOS X. When you run phpinfo() see
where the php.ini file should be located and you can put your own there.
Cheers!
Rick
"There are only two ways to live your life. One is as though nothing is a
miracle. The other is as though everything is a miracle." - Alb
A quick note...
If you are not aware of cURL (curl.haxx.se), then you may want to look into it.
If you are, then please disregard this post.
-Jason Garber
At 11:06 PM 2/3/2002 -0800, Evan Nemerson wrote:
>Anyone know if there is a way yet to see if a socket is still connected to a
>host? I wan
Hi,
I use a form on my website for the visitors to send me the feedback and
use the mail() to do this job for me. And I get mails without any
problems I am happy... :-)..
Karthick
> I've tried several PHP form processors, and all of
> them have trouble sending the form contents to a Y
I found this on a web site...
>When using PHP as an Apache module, you can also change the configuration
settings >using directives in Apache configuration files and .htaccess files.
What do you do if you compile apache and php together - ie. not a
module? I compiled using the static method
Anyone know if there is a way yet to see if a socket is still connected to a
host? I want to use a socket to send "GET / HTTP/1.0\r\n\r\n" over a socket,
and retrieve everything the server sends. That part works great, but I can't
figure out when the remote host disconnects.
I have the CVS ver
Ack... I recompiled my server and screwed something up in the process. PHP
files are parsed, but the include_path and auto_prepend variables are now
ignored in my httpd.conf file. Any idea of what I did?
I'm using virtual hosts and have
php_value include_path
php_value auto_prepend
in virtu
does anybody know where the php.ini is on Mac OS X?
I would like to activate gdlibrary.
Thanx for the hint Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
MS Word is a proprietary, binary (i think), format... Have fun.
There may be a solution out there.
If you could convince her to save it in Rich Text Format (rtf) and then
upload it, your life would be much easier...
-Jason Garber
At 01:51 PM 2/4/2002 +0800, Jack wrote:
>Dear all
>I had made
Dear all
I had made a news input page for one of the HR Manger to input the news for
the whole company to read, she is quick comfort with using MS word as a
editor, so is there anyway that the php can read the contents from the MS
Word and display as exactly same format to html?
If there is so,
On Monday 04 February 2002 13:31, John P. Donaldson wrote:
> I'm not actually replacing \n with , I just used
> that as an example. When I tried Martin's solution, I
> got a parse error on this line:
>
> $content = implode($lines, "\n",);
You've got a trailing comma.
--
Jason Wong -> Gremlins
is that a direct copy from your code? - if it is, there's two errors
1. you have a comma just before the closing backet
2. the function is : implode(string glue, array pieces)
so that would be : $content = implode("\n", $lines);
ie. the two arguments are the wrong way around
Martin
-Ori
I'm not actually replacing \n with , I just used
that as an example. When I tried Martin's solution, I
got a parse error on this line:
$content = implode($lines, "\n",);
I checked the manual and it's constructed properly ..
I think. What could be giving me the parse error on
this line. T
nl2br() would serve that purpose as well. See the Strings section of the
Functions Reference in the manual.
Mike Frazer
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $lines = file("filename_here.blah"); // read in file as an array
> $cont
I'm attempting to use the ISAPI interface to PHP but I keep getting
Warning: Failed opening '' for inclusion (include_path='\winbbs') in
Unknown on line 0
no matter what URL I request. The PHP doc's does say the ISAPI has some
bugs and I was wondering if maybe this is one of them.
But, before I
$lines = file("filename_here.blah"); // read in file as an array
$content = implode("\n", $lines); // join it all back together
$new_cont = ereg_replace("from", "to", $content);
fopen(...); fputs(..., $new_content); fclose(...);
if your intent is to replace all new lines with 's then use
I have a file open and can successfully write to it,
but I was to be able to search for a certain string of
text and replace it with a string of text. I can't
figure out how to construct a proper ereg_replace
statement to search through this file and do the
replacing. Examples I've seen are in t
Justin French wrote:
> Hi,
>
> I didn't have much luck finding it... If you have a chance to send me a
> link, that'd be great, otherwise I'll just keep looking :)
>
> Justin
Try link :)
http://www.zend.com/search_code_author.php?author=yohgaki
--
Yasuo Ohgaki
>
>
>
> Yasuo Ohgaki wrote:
i dont know how u r using the thing like PHP on the fucking Win. Moreover
WinMe is the worst of all the OS's. So, better migrate to other OS as soon
as possible.
/sagar
- Original Message -
From: "John Mpaliza" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 1
I found out it was my SMTP server that was actually
having the problem sending to Yahoo accounts, not PHP.
I changed which server my PHP script used to send
mail and it sent it to my Yahoo account no problem.
John
--- Alex Shi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > Monday, February 04, 2002,
Hi,
> Monday, February 04, 2002, 12:17:27 AM, recebi de John P. Donaldson:
>
> John> I've tried several PHP form processors, and all of
> John> them have trouble sending the form contents to a Yahoo
> John> address. When I change the address to something other
> John> than a Yahoo account, it s
Justin French wrote:
> Hi,
>
> When I run phpinfo(), use_trans_sid is set to 1 (assume 1 = enabled) on
> both my test server, and on my live server. Great!
>
> Only trouble is, when I disable cookies in my browser, the sessions are
> lost (in this case, each page asks me to login, rather than o
Try to enable output bufffering to see if it helps.
--
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Mpaliza wrote:
> Hi,
>
> I'm using Win ME-Apache1.3.22-PHP4.1.1 and run this script:
> session_start();
> ?>
> I got this error: Php has caused an error in PHP4TS.DLL and will be closed. If the
>problem continues try to reboot your system.
> And in the Apache log file I got : "Premature en
Hi,
I'd appreciate any pointers you recommend to good sources of
information on how to use PHP and XML.
Thanks,
Peter
---
"Reality is that which, when you stop believing in it, doesn't go
away".
-- Philip K. Dick
--
PHP General Mailing List (http://w
I'm sending Content-type: application/x-gzip to
a PHP script, and I successfully write it to
a file using the HTTP_RAW_POST_DATA variable,
and can then gunzip it. What confuses me is
that I *cannot* use the gzinflate function with
the same compressed data. In other words,
the first method works
Hi,
I just thought i would point out that the entire point of crypt, md5, or
MySQL password() function is to create a hash out of the original
string. However, they are designed so it is computationally infeasible to
take a hash and find out the original string was. Actually, it is
impossib
Monday, February 04, 2002, 12:17:27 AM, recebi de John P. Donaldson:
John> I've tried several PHP form processors, and all of
John> them have trouble sending the form contents to a Yahoo
John> address. When I change the address to something other
John> than a Yahoo account, it sends the form res
I've tried several PHP form processors, and all of
them have trouble sending the form contents to a Yahoo
address. When I change the address to something other
than a Yahoo account, it sends the form results with
no problem. Is there an issue with PHP's mail
function and Yahoo email addresses?
aloo...
"Olev Rumm" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello
I was looking a way to fill a forms on line and send them over via the
server.
Found a good(in my mind) and simple php mail skript
from http://open.a
Hi!
A few colleagues and I found our PHP scripts running very slowly due to
the very processor intensive calculations on a site for a client. By
intensive calculations, I mean encryption, random number generation, and
prime verification, for some cryptographic algorithms. The code was very
object
On Sun, 2002-02-03 at 12:12, Mike Frazer wrote:
> Your reply piqued my curiosity so I whipped together a script that times the
> execution of a foreach(), a while() and a for() loop executing the same
> commands. The results were rather surprising in some ways but not really
> overall.
>
> The w
Ya, that's what I meant
- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Andy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 7:24 AM
Subject: Re: [PHP] Displaying a please wait while doing a file upload?
> Well, although this won't wait unt
Well, although this won't wait until exactly when the image creation is
done, you could use a meta refresh tag to refresh to your new page after a
certain number of seconds...
Create a php page with whatever code you need, and then have something like
this:
Please Wait
Please wait...
T
In <[EMAIL PROTECTED]>, Andy wrote:
> Hi guys,
>
> I think his original question was how to install GD!
>
> It's not a big deal!
> - Install PHP > 4.06
> - edit the php.ini -> delete the comment tags from the gd import module
> - restart your server if it is running not as a CGI extension
>
thanx!!!
"John Lim" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try http://php.net/str_pad
>
> Andy <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi guys,
> >
> > I am trying to force a int to be 8 digits. If i
Hi guys,
I think his original question was how to install GD!
It's not a big deal!
- Install PHP > 4.06
- edit the php.ini -> delete the comment tags from the gd import module
- restart your server if it is running not as a CGI extension
Thats it!!!
For gd2 support take care in PHP4.1.1 th
Hi guys,
I think his original question was how to install GD!
It's not a big deal!
- Install PHP > 4.06
- edit the php.ini -> delete the comment tags from the gd import module
- restart your server if it is running not as a CGI extension
Thats it!!!
For gd2 support take care in PHP4.1.1 th
Hi guys,
I would like to display something like: "please wait, uploading" while I am
doing a image creation which takes a while.
After the work is done, it should redirect to another page displaying
something like upload ok.
As far as I know the HEADER location satement is only valid if there i
In <[EMAIL PROTECTED]>, Michael Kimsal wrote:
>>>Someone seems to have started this, although I'm not sure why he's not
>>>going more object-based.
>>>
>>>
>>>http://pear.php.net/manual/en/packages.imagick.php
>>>
>>>I would prefer something like
>>>
>>>$i = new Imagick();
>>>$i->read("file");
>>>
>>Someone seems to have started this, although I'm not sure why he's not
>>going more object-based.
>>
>>
>>http://pear.php.net/manual/en/packages.imagick.php
>>
>>I would prefer something like
>>
>>$i = new Imagick();
>>$i->read("file");
>>
>>instead of
>>$i= imagick_create();
>>imagick_read
Hi,
I'm using Win ME-Apache1.3.22-PHP4.1.1 and run this script:
I got this error: Php has caused an error in PHP4TS.DLL and will be closed. If the
problem continues try to reboot your system.
And in the Apache log file I got : "Premature end of script headers".
This happens when using functions
php-general Digest 3 Feb 2002 19:53:11 - Issue 1150
Topics (messages 83291 through 83324):
Re: Mysql & php
83291 by: Mike Frazer
Re: file validation
83292 by: Mike Frazer
83303 by: Lars Torben Wilson
83317 by: Mike Frazer
Re: Why doesn't PHP have built-in s
Chris,
Thank you for your help. I actually found an example on web monkey late
last night for .gif and made the translation to .jpg. However, whatever
color text I use, it turns out gray. Any help here would go down nicely.
Hugh
- Original Message -
From: "Chris Williams" <[EMAIL PRO
Hi all,
I would like to know that, in php how to call a remote script, get return
value from that script and, pass parameters to that script?
And one more question: can I throw a php script to linux background,
or preferably use perl script for background running instead?
Thanks for answers in
It wont matter if it is sent in clear text because at that point you are over
https/SSL. The entire stream is encrypted. I understand the need for using the
existing system. I think LDAP does look like a good way to go.
-=>Adam<=-
Quoting James Arthur <[EMAIL PROTECTED]>:
> On Sunday 03 Feb
In <[EMAIL PROTECTED]>, Michael Kimsal wrote:
> Weston Houghton wrote:
>
>> Anybody interested in working on a PEAR module to interface PHP with
>> something like ImageMagick directly? I would love to see it. Maybe if I
>> am unemployed long enough soon I can work on it myself. Not that I
>> rea
Weston Houghton wrote:
> Anybody interested in working on a PEAR module to interface PHP with
> something like ImageMagick directly? I would love to see it. Maybe if I am
> unemployed long enough soon I can work on it myself. Not that I really want
> that to happen...
>
> I think that might be t
On Sunday 03 Feb 2002 17:43, Viper wrote:
> Well it depends what you want to do, Do they need to just get into the app
> or do they need to have different access levels? If they dont need access
> levels just use htaccess that should work out fine.
>
htaccess isn't secure enough, since it sends t
Well it depends what you want to do, Do they need to just get into the app or
do they need to have different access levels? If they dont need access levels
just use htaccess that should work out fine.
-=>Adam<=-
Quoting James Arthur <[EMAIL PROTECTED]>:
> Hi
>
> I have a web site that needs
Your reply piqued my curiosity so I whipped together a script that times the
execution of a foreach(), a while() and a for() loop executing the same
commands. The results were rather surprising in some ways but not really
overall.
The while() loop is, as you stated, is quicker than a foreach() l
Phil <[EMAIL PROTECTED]> wrote:
> Thanx, sounds like the way to go.
> Still curious though whether there is anyway at all to get the original
> password back to the user?
not without storing it unencrypted or cracking the password with a
dictionary attack. as you said, the php crypt() function an
Thanx, sounds like the way to go.
Still curious though whether there is anyway at all to get the original
password back to the user?
Jeff Sheltren <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What you could do is send a newly generated password to them, and
What you could do is send a newly generated password to them, and then
allow them to change the password on your site to something easier to
remember...
Jeff
At 11:56 PM 2/3/2002 +0800, Phil wrote:
>Hi there,
>I'm creating a user/password table that will use either Mysql Password or
>PHP Crypt
Hi there,
I'm creating a user/password table that will use either Mysql Password or
PHP Crypt function to encrypt the data. I know these functions are non
reversible for good reason, but how do I deal with a situation where I want
to email out a forgotton password? How can I get the passwrd back t
Try http://php.net/str_pad
Andy <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi guys,
>
> I am trying to force a int to be 8 digits. If it is only 3 dig filling the
> first ones with 0.
>
> Anyhow I tryed it with type casting, but it does not matter what I t
Could you please tell us:
We would like to redirect the user based on their
Country so we are collecting their IP address. We have
used SmartRedirect PHP software to do this but on some
of our ISP it is not working, it shows you are from
unknown country. We are located at New Delhi, India.
Coul
Could you please tell us:We would like to redirect the
user based on their
Country so we are collecting their IP address. We have
used SmartRedirect PHP software to do this but on some
of our ISP it is not working, it shows you are from
unknown country. We are located at New Delhi, India.
Could yo
> >
> >Is there an easy way to do this sort of stuff on Linux or is it better to
> >just buy off the shelf products that work?
Hi
I hate to do the "my distro is better than yours" thing, but typing "apt-get
install postgresql postgresql-client apache php4 php4-pgsql" at the command
line on a D
Hi
How can I convert the PostgreSQL timestamp to several strings? This sort of
thing:
array($hour,$minute,$second,$day,$month,$year) = convert($timestamp)
Thanks
--jaa
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
I have a web site that needs a secure login system.
Users of the system can SSH in to the server, and POP, IMAP, Postgres and
other services are provided, and I'd like the users to be able to log in to
the site - obviously as securely as possible. Maybe using SSL + sessions?
I have not use
I think you might need to use
$source = ImageCreateFromJPEG('map1.jpg');
I've created several maps using this method, although I am using PNG. You
could see them at our web site but unfortunatly it's not parsing PHP
correctly. Something went wrong during migration, but might be fixed in a
couple
In <[EMAIL PROTECTED]>, Victor Boivie wrote:
> PEAR? I think it would be better if someone did a "real" PHP module for
> ImageMagick, just like PerlMagick is for Perl. There is one at
> http://php.chregu.tv/imagick/, but it's far from complete. If someone
> would like to help him with the project
Thanks Joel. I thought Sandeep meant I should create object A within object
B in order to refer to the method in object A, but I guess that won't work.
David
- Original Message -
From: "Joel Boonstra" <[EMAIL PROTECTED]>
To: "Sandeep Murphy" <[EMAIL PROTECTED]>
Cc: "'David Yee'" <[EMAIL
On Sun, 2002-02-03 at 02:35, Mike Frazer wrote:
> A slightly less cumbersome method than the while() loop below would be a
> foreach() loop:
>
> function check_file($filename) {
> if (!$lines = file($filename)) {
> return false;
> }
> foreach ($lines as $line) {
> $n
Hi
1. Can anyone help with inserting jpeg images into a interbase database
from a php page?
2. What does this error message mean:
Warning: InterBase module: invalid blob id
3.Must the subtype be set to 0 or must it be user-defined in interbase?
ie User defined: "JPEG" BLOB SUB_TYPE -2 S
In article , [EMAIL PROTECTED] says...
>
>
>
> Actually i have stored mysql in my machine in /usr/lib/mysql
>
> when i am tried to connect it is giving this error.
>
> nomysql support.From the prompt itself i can connect to mysql .using php
> script i can't connect.
>
> While in the install
In article , [EMAIL PROTECTED] says...
>
>
> Hello,
>
> I have installed php and mysql in my machine.By default in which path
> php check for mysql
>
> Anyone can know this tell to me as soon as possible
This question is a bit hard to answer without knowing what system
(Windows, *nix etc)
PEAR? I think it would be better if someone did a "real" PHP module for ImageMagick,
just like PerlMagick is for Perl. There is one at http://php.chregu.tv/imagick/, but
it's far from complete. If someone would like to help him with the project then it
would be great.
ImageMagick is so much ea
Hello,
B Richards wrote:
>
> How many emails per hour can people generate on a typical dedicated server?
> on qmail? on smtp?
It depends on many things. Anyway, queueing is one thing and delivering
is another. Queuing and delivering from the same machine is usually slow
because it requires the
Hello,
B Richards wrote:
>
> How many emails per hour can people generate on a typical dedicated server?
> on qmail? on smtp?
It depends on many things. Anyway, queueing is one thing and delivering
is another. Queuing and delivering from the same machine is usually slow
because it requires the
Good day, morning, night? It's dark, so that makes it sleepy bye time.
Bit before I do, I'm trying to work this out.
I have a little bit of code to print Next n>> articles in my database.
Can someone help me straighten out these lines of code, pretty please
... before I go fleeping nuts :)
if(!$r
74 matches
Mail list logo