php-general Digest 25 Jan 2001 18:46:34 -0000 Issue 476
Topics (messages 36575 through 36680):
Re: warning 1 is not mysql result index
36575 by: Jacky.lilst
36585 by: Christopher Allen
Re: Ideas?? (OT- MySQL)
36576 by: Matthew Kendall
mysql auto increment question
36577 by: David Banning
36578 by: Pavel Jartsev
finding the difference
36579 by: Website4S.aol.com
36599 by: Steve Edberg
How to make links?
36580 by: neXus
setting register_globals off
36581 by: Catalin Borcea
36589 by: Philip Olson
Which one is better?Session or Cookies?
36582 by: Hendry Sumilo
36584 by: Thomas Weber
Date -1
36583 by: David Smith
Re: Integration of PHP with MS Outlook?
36586 by: Jon Haworth
36627 by: Andrew Hill
Re: Funny php://stdout behaviour
36587 by: ARTEK
36588 by: ARTEK
Informix prep error
36590 by: Juraj Hasko
I have a problem with uploading files, can anybody help me!!!
36591 by: Securez
36593 by: Eric Dahnke
36603 by: Securez
html_mime_mail.class - - help
36592 by: Eric Dahnke
Zend hit
36594 by: Uioreanu Calin
Encoder price too high (was: Zend hit)
36595 by: Adrian Teasdale
36596 by: Adam Wright
36604 by: Owen Leonard
Strange problem
36597 by: Jeroen Jochems
36614 by: Hardy Merrill
36619 by: Jeroen Jochems
36622 by: Jeroen Jochems
Re: multiple function returns
36598 by: Steve Edberg
36625 by: Hrishi
Sorry
36600 by: Thomas Wentzel
Compiler? (Was Re: [PHP] PHP site on CD-ROM)
36601 by: Angus Mann
36602 by: Adam Wright
36612 by: Zeev Suraski
36616 by: Jim Jagielski
Re: Extending PHP
36605 by: Thomas Wentzel
how display msg(5 secs) and then redirect?
36606 by: Hardy Merrill
36607 by: Jon Kjær Amundsen
Persistent connections and transactions
36608 by: Frank Joerdens
36621 by: Martin A. Marques
36666 by: Frank Joerdens
Re: Zend hit (Encoder price)
36609 by: Sander Pilon
36613 by: Teodor Cimpoesu
36615 by: Jim Jagielski
36652 by: szii.sziisoft.com
36657 by: Jim Jagielski
36662 by: szii.sziisoft.com
36668 by: Michael A. Peters
36670 by: Jim Winstead
36674 by: Rasmus Lerdorf
Genuine Opportunity
36610 by: NEWS!!
36611 by: Ernest E Vogelsinger
36618 by: CC Zona
whois
36617 by: AJDIN BRANDIC
36620 by: Andy Woolley
36623 by: Ernest E Vogelsinger
36624 by: Stig Venaas
36649 by: AJDIN BRANDIC
36656 by: AJDIN BRANDIC
Re: Urgent help needed, sound scary when anyone did that on title :-)
36626 by: Shaun Thomas
Re: Zend hit (Encoder price) (Freelance Encoding?)
36628 by: Wandrer
Re: Cookie semi-security.
36629 by: April
Best way to describe Doc as HTML
36630 by: Karl J. Stubsjoen
36653 by: php3.developersdesk.com
MySQL email function
36631 by: Kenneth R Zink II
36636 by: Jon Haworth
How do I to declare a function or procedure in PHP???
36632 by: Bruno Freire
36634 by: Sam Masiello
36635 by: April
SQL Server DB to mySQL DB
36633 by: Jason Bouwmeester
36637 by: Pavel Kalian
36640 by: Christopher Allen
myODBC
36638 by: Jason Bouwmeester
36641 by: cmoewes.moewes.com
36642 by: cmoewes.moewes.com
36644 by: Jason Bouwmeester
undefined symbol...
36639 by: Thomas Wentzel
Zend Debuger
36643 by: Andrew Sitnikov
36645 by: Jim Jagielski
date
36646 by: Randy Johnson
36650 by: php3.developersdesk.com
36661 by: Hardy Merrill
Urgent answers needed for FILE UPLOAD problem....
36647 by: Tim Meader
How do I see the data in list()?
36648 by: Scott Fletcher
36658 by: Pavel Jartsev
36667 by: Steve Edberg
can't upload files if extension has more than one dot.
36651 by: david klein
Outputting a 2 digit number < 10
36654 by: Jamie
36664 by: Pavel Jartsev
trouble with updating the id numbers
36655 by: Jason Jacobs
A second question about http File Upload...
36659 by: Tim Meader
Re: how to rename a database
36660 by: php3.developersdesk.com
[newbie]subtracting date
36663 by: Matthew Ley
36676 by: Hardy Merrill
Re: Greek PHP mailing list
36665 by: Carsten Gehling
I still don't get it
36669 by: Carsten Gehling
Search Engine...
36671 by: php4.mailbr.com.br
36672 by: Jason Jacobs
36677 by: Marko Perich
Re: pdflib: unable to generate on the fly, need to write to file
36673 by: Uwe Steinmann
Read Vs. Include
36675 by: Karl J. Stubsjoen
telnet timeout
36678 by: Pablo Martin De Natale
Anyone who can help me making a loop of this?
36679 by: Christian Sakshaug
Drop zero&point
36680 by: Ethan Nelson
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
still did not work. Keep returning the same error when I do this:
$HotelName = mysql_fetch_row($resultHotel,1) or die(mysql_error());
And once again I am very sure there is data in the table.
and the error keep saying that : 1 is not Mysql index.
I don't see why? can anyone tell?
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
----- Original Message -----
From: Christopher Allen <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 12:39 AM
Subject: Re: [PHP] warning 1 is not mysql result index
>
>
> I want to get the result from first row (the one next from ID field) of
the
> table using
> $HotelName = mysql_result($resultHotel,0,1) or die(mysql_error());
>
> A suggestion:
> Why don't you use mysql_fetch_row or any other function that reaches
> beyond just getting 1 field?
> this would be easier perhaps for you visualize the data you are trying to
> get.
>
> http://www.php.net/manual/en/function.mysql-fetch-row.php
>
>
>
>
>
> still did not work. Keep returning the same error when I do this:
> $HotelName = mysql_fetch_row($resultHotel,1) or die(mysql_error());
what was your connection statement and query to the db? I would look to
these ass the culprit....
heres an example :
mysql_connect("localhost", "$username", "$pass" );
mysql_select_db( "$db_name") or die( print "Unable to select database");
$query1 =" SELECT * FROM $table WHERE ID=$last_id";
$result = MYSQL_QUERY($query1);
$row = mysql_fetch_object ($result)
$fname = $row->firstname;
$dog_tag = $row->ID;
Ofcourse you need to check for errors etc..
Good Luck!
<[EMAIL PROTECTED]> wrote ...
> I am creating a web site which allows users to post projects and then
> others to place bids. I am setting up two tables in MySQL 'Projects'
> & 'Bids' my problem is how best to cross reference. What I was
> thinking of doing is creating a number of fields in the Projects table...
>
> and then inserting the BidID from the bids table into Bid1, and if
> that is already used then it will go into Bid2. But how many Bid#
> shall I create?? I`m sure there must be a faster method than this,
> anyone have any suggestions??
This is a standard question where you have two tables that need to be linked
in a many-to-many relationship. The answer is that you need a third table,
called for example ProjectBids. It has two columns, one for Bid ID and one
for Project ID. Each row links one bid to one project. You can enter as many
rows as you like, so each bid can be linked to one or more projects, and
each project can be linked to one or more bids.
But are you sure you have a many-to-many relationship? It sounds like each
bid might be associated with just one project. In that case you could just
have a column in the Bid table that contains the Project ID.
I am working with php-mysql
and am inserting into mysql using a NULL value,
which allows mysql to auto-insert (increment)
a number - how could I find out what the value was
mysql inserted, say on the next line of code after the insert?
David Banning wrote:
>
> I am working with php-mysql
> and am inserting into mysql using a NULL value,
> which allows mysql to auto-insert (increment)
> a number - how could I find out what the value was
> mysql inserted, say on the next line of code after the insert?
http://www.php.net/manual/en/function.mysql-insert-id.php
--
Pavel a.k.a. Papi
I have a date and time stored in the following format:
day:month:year:hour:minutes
Example 27:01:2001:08:13
I want to work out the difference between that and the current time on my
server, but I can`t find any math functions in the PHP manual that allows you
to work out the diference. In the end I hope to be able to display '2 days 23
hours and 55 minutes' type results, similar to the way in which eLance.com
shows the time remaining on a project. Anyone have any suggestion if it is at
all possible?
Thanks
Ade
At 3:16 AM -0500 1/25/01, [EMAIL PROTECTED] wrote:
>I have a date and time stored in the following format:
>
>day:month:year:hour:minutes
>
>Example 27:01:2001:08:13
>
>I want to work out the difference between that and the current time on my
>server, but I can`t find any math functions in the PHP manual that allows you
>to work out the diference. In the end I hope to be able to display '2 days 23
>hours and 55 minutes' type results, similar to the way in which eLance.com
>shows the time remaining on a project. Anyone have any suggestion if it is at
>all possible?
>
>Thanks
>Ade
>
Take a look under date/time functions:
http://www.php.net/manual/en/ref.datetime.php
You want to convert your stored time into a Unix timestamp (that is,
seconds since midnight 1 jan 1970), subtract the unix timestamp of
the current time, and then display the result in your desired format:
$Deadline = ' 27:01:2001:08:13';
$Bits = explode(':', $Deadline);
$TimeDiff =
mktime($Bits[3],$Bits[4],$Bits[5],$Bits[1],$Bits[0],$Bits[2])
- time();
# $TimeDiff is now the time difference, expressed in seconds.
# Now, use modulo operator repeatedly to get day, hour & minute values.
# BTW, there are 86400 seconds/day, 3600 seconds/hour.
$NDays = $TimeDiff % 86400;
$R = $TimeDiff - ($NDays * 86400);
$NHours = $R % 3600;
$R = $R - ($NHours * 3600);
$NMinutes = round($R/60);
echo "You have $NDays days, $NHours hours and $NMinutes left!";
If you're feeling obfuscatory, you could compact the calculations
into (I think):
$NHours = ($R = $TimeDiff - (($NDays = $TimeDiff % 86400) *
86400)) % 3600;
$NMinutes = round(($R - ($NHours * 3600))/60);
Why you would _want_ to do this, I don't know. I suppose if you're an
ex-FORTRAN programmer frustrated by the lack of assigned and computed
GOTOs and want to take it out on others, maybe. OK, now I'm rambling.
And showing my age...
- steve
Usual untested, off-top-of-head, no-warranty code caveats apply.
--
+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg University of California, Davis |
| [EMAIL PROTECTED] Computer Consultant |
| http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+
How do make admin site that lists htm documents from directory and i can
define link name to each of these?
So when user comes, he sees link list to these documents, with names i
defined.
Can I set "register_globals=off" using a runtime configuration directive
(something like <?php_register_globals_off?>)?
TIA
-- Catalin Borcea --
\\\|///
\\ - - //
( @ @ )
-----oOOO----(_)----OOOo----
Hi Catalin,
I'm trying to decipher what can and cannot be set with ini_set myself and
am slowly figuring it out :-) This cannot be set this way but rather it
could be set through .htaccess so :
this works in .htaccess :
php_value register_globals off
this will not work in script :
ini_set("register_globals","off");
The latter will set the "local value" but it won't be of any use, it will
remain "on" although if you do ini_get("register_globals") right below it
it'll report them as "off" when in fact they are "on" There you have it.
The answer is "NO" as, as quoted from a similar question awhile ago :
"Directives that affect actions that are taken before a script is
parsed, such as mangling EGPCS data, can not be changed by the script."
- Rasmus
This certainly falls into that category.
Regards,
be outside the box.
Philip Olson
http://www.cornado.com/
On Thu, 25 Jan 2001, Catalin Borcea wrote:
> Can I set "register_globals=off" using a runtime configuration directive
> (something like <?php_register_globals_off?>)?
>
> TIA
> -- Catalin Borcea --
> \\\|///
> \\ - - //
> ( @ @ )
> -----oOOO----(_)----OOOo----
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Dear everyone,
I want to know which approach is bettter?Using cookies or session to store
user's data?
i have tried using cookies ,but some computers can't accept that,then i move
to session register,but my supervisor ask me to put cookies as well,
i dunno what is the purpose of using cookies instead i can use session.
can anyone help me to answer why have to use cookies?and for what?
cause i know that some user doesn't want to enable cookies
thank you very much
Hendry Sumilo
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi,
i think i many cases cookies are better, because the are stored in the
computers memory for a very long time if needed and is not destroyed after
the session timeout or changeing the IP.
For example Amazon stores the cart in session, but the login-data is stored
in a cookie so you don't need to relogin every time you change you IP.
-----Ursprüngliche Nachricht-----
Von: Hendry Sumilo [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 25. Januar 2001 09:37
An: [EMAIL PROTECTED]
Betreff: [PHP] Which one is better?Session or Cookies?
Dear everyone,
I want to know which approach is bettter?Using cookies or session to store
user's data?
i have tried using cookies ,but some computers can't accept that,then i move
to session register,but my supervisor ask me to put cookies as well,
i dunno what is the purpose of using cookies instead i can use session.
can anyone help me to answer why have to use cookies?and for what?
cause i know that some user doesn't want to enable cookies
thank you very much
Hendry Sumilo
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I am trying to show the records created from the previous day. How can I make it show
the date before today? My date field is like 2001-01-24 16:13:51. Below shows the
current day...
$FileDate = date ("Y-m-d");
$connection = mysql_connect ("localhost", "*****", "******");
if ($connection == false){
echo mysql_errno().": ".mysql_error()."<BR>";
exit;
}
$query = "select * from warbirds_db WHERE FileDate LIKE '%$FileDate%' ORDER BY FileID
DESC";
$result = mysql_db_query ("combatfs", $query);
It IS Exchange Server, but this doesn't look promising.
My guess is your guess is right, but I was hoping it was wrong, hence the
original post... :-)
Thanks for the thoughts anyway.
Cheers
Jon
-----Original Message-----
From: Alex Black [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2001 20:25
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Integration of PHP with MS Outlook?
if you're using exchange server, I _think_ that runs on top of SQL server.
so, yes, if all the above is true, and assuming it's possible to figure out
the schema and what all the fields are for. then you could have php talk to
SQL server, and insert records.
my _guess_ is that I'm probably wrong, and outlook uses some terrible
internal db that's hyper proprietary, which doesn't accept connections :)
_alex
--
Alex Black, Head Monkey
[EMAIL PROTECTED]
The Turing Studio, Inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522
> From: [EMAIL PROTECTED] ("Chris Lee")
> Newsgroups: php.general
> Date: 24 Jan 2001 10:10:06 -0800
> Subject: Re: [PHP] Integration of PHP with MS Outlook?
>
> Well, php is server side, so wahtever you want todo serverside php can
> probably try todo. is outlook express on the server? if not I doubt you'll
> have any luck at all.
>
> You might be able to do this is if you had php dynamically write VBscript
> and email that to the client. I dont know about that.
>
> PHP on a windows box can use windows DOM, if outlook express was on the
> server then you might be able to use this too, I cant say for sure. All I
> can say for sure is that php is serverside, so if ou want php todo
anything
> but serverside your looking in the wrong spot.
>
> Chris Lee
> Mediawaveonline.com
>
>
>
>
> "Jon Haworth" <[EMAIL PROTECTED]> wrote in message
> 431205EC9190D4119E2800D0B720FA3F397343@BOOTROS">news:431205EC9190D4119E2800D0B720FA3F397343@BOOTROS...
>> Hi list,
>>
>> Is it possible to get PHP to create entities in Outlook, specifically
> tasks
>> and calendar entries?
>>
>> TIA
>> Jon
>>
>>
>> Please visit us on the Internet:
>> http://www.witanjardine.co.uk
>>
>> 'The information included in this e-mail is of a confidential nature and
> is
>> intended only for the addressee. If you are not the intended addressee,
> any
>> disclosure, copying or distribution by you is prohibited and may be
>> unlawful. Disclosure to any party other than the addressee, whether
>> inadvertent or otherwise is not intended to waive privilege of
>> confidentiality'
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Jon,
OpenLink's Virtuoso database is, among other things, both a POP server and
SMTP proxy. PHP works fine with Virtuoso via ODBC, so you can drop a
Virtuoso in the mix and gain the ability to hit your mail data directly.
http://www.openlinksw.com/virtuoso
Best regards,
Andrew
----------------------------------------------------
Andrew Hill
Director Technology Evangelism
OpenLink Software
http://www.openlinksw.com
XML & E-Business Infrastructure Technology Provider
> -----Original Message-----
> From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 4:13 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Integration of PHP with MS Outlook?
>
>
> It IS Exchange Server, but this doesn't look promising.
>
> My guess is your guess is right, but I was hoping it was wrong, hence the
> original post... :-)
>
> Thanks for the thoughts anyway.
>
>
> Cheers
> Jon
>
>
> -----Original Message-----
> From: Alex Black [mailto:[EMAIL PROTECTED]]
> Sent: 24 January 2001 20:25
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Integration of PHP with MS Outlook?
>
>
> if you're using exchange server, I _think_ that runs on top of SQL server.
>
> so, yes, if all the above is true, and assuming it's possible to
> figure out
> the schema and what all the fields are for. then you could have
> php talk to
> SQL server, and insert records.
>
> my _guess_ is that I'm probably wrong, and outlook uses some terrible
> internal db that's hyper proprietary, which doesn't accept connections :)
>
> _alex
>
>
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
> > From: [EMAIL PROTECTED] ("Chris Lee")
> > Newsgroups: php.general
> > Date: 24 Jan 2001 10:10:06 -0800
> > Subject: Re: [PHP] Integration of PHP with MS Outlook?
> >
> > Well, php is server side, so wahtever you want todo serverside php can
> > probably try todo. is outlook express on the server? if not I
> doubt you'll
> > have any luck at all.
> >
> > You might be able to do this is if you had php dynamically
> write VBscript
> > and email that to the client. I dont know about that.
> >
> > PHP on a windows box can use windows DOM, if outlook express was on the
> > server then you might be able to use this too, I cant say for
> sure. All I
> > can say for sure is that php is serverside, so if ou want php todo
> anything
> > but serverside your looking in the wrong spot.
> >
> > Chris Lee
> > Mediawaveonline.com
> >
> >
> >
> >
> > "Jon Haworth" <[EMAIL PROTECTED]> wrote in message
> > 431205EC9190D4119E2800D0B720FA3F397343@BOOTROS">news:431205EC9190D4119E2800D0B720FA3F397343@BOOTROS...
> >> Hi list,
> >>
> >> Is it possible to get PHP to create entities in Outlook, specifically
> > tasks
> >> and calendar entries?
> >>
> >> TIA
> >> Jon
> >>
> >>
> >> Please visit us on the Internet:
> >> http://www.witanjardine.co.uk
> >>
> >> 'The information included in this e-mail is of a confidential
> nature and
> > is
> >> intended only for the addressee. If you are not the intended
> addressee,
> > any
> >> disclosure, copying or distribution by you is prohibited and may be
> >> unlawful. Disclosure to any party other than the addressee, whether
> >> inadvertent or otherwise is not intended to waive privilege of
> >> confidentiality'
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >>
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
Hi Dotan:
PHP Version 4.0.1pl2
Ruben.
>> I actually was getting prompted to download the .php file sometimes...
>
>So, the user would be able to open the file in, say, VI and see your code? Big
>>security
>hole, no? Of which versions of php4 was this characteristic?
>
>Dotan Cohen
>-------------------------------------------
> MySQL php4
> 50 megs $9.99 http://TerribleHost.com
>-------------------------------------------
Hi Toby:
Yes, that's the way I did, but it's not so clean, you have to open each time you
write!
--
Saludos, Rubén Blanco.
______________________________________________________
A r t e k - 928.52.20.77 - http://www.artek.es
>> >One thing that occurs to me -- stdout starts off by being
>the browser, so
>> >it's kinda funky to open it -- You've already got it
>open... I *think* it
>> >really only makes sense to fopen() stdout from the
>command line. At least,
>> >I'm not clear on what it would mean to open it from a
>HTTP environment...
>>
>> You may be right, it's quite weird. The use it was
>intended for was to generate
>> an HTML page on the fly or a static one, according to
>certain conditions.
>
>Perhaps, then, you might use a function which would decide
>what to do and use the appropriate method... for ex:
>
>function foo($out) {
> if (USE_STDOUT) {
> echo $out;
> } else
>
> fopen($file, $mode);
> // write to file and close it
> }
>}
>
>Just an idea; may not be anything like what you need but I
>thought I'd throw it out there ;)
--Toby
Hi,
I'm trying to develop some intranet system based on Informix DB. Standard
connection works fine but when I try to exec any SQL I've got a error
message.Can someone help me ? I use Ifx IDS 7.3, PHP 4.0.4pl1 on Win2k and
IIS 5.0. If I use connection trough ODBC it works fine. Here is sample of my
code :
$conn = ifx_connect("db@server", "myname", "mypasswd")
or die("Couldn't create connection.");
echo $conn;
$sql = "SELECT * FROM piny ORDER BY klapka"; //line 12
$ifx_prep=ifx_prepare($sql,$conn);
and output is :
Resource id #1
Warning: Describe fails (E [SQLSTATE=37 000 SQLCODE=-410]) in
c:\inetpub\wwwroot\php\bribor.php on line 12
Have you any idea how to solve my problem ?
Thank you in advance.
Ing. Juraj Ha¹ko
System Administrator
CAC LEASING Slovakia, a.s.
<mailto:[EMAIL PROTECTED]>
WWW: www.cacleasing.sk <http://www.cacleasing.sk>
I have a form that permit a user to upload files, but if the file is 1 or 2
Mb the time excess the script live time,
how i can change this, keeping the global value for script live time.
And if i want to permit a user to upload a file, wath is the best mayway to
do this, at this moment i need to make a chmod 701 to dir on which the user
want to upload files.
Can anybody help me??
you could maybe use the sleep function.
and for the directory question chown nobody.nobody dir/
or whatever user your webserver runs under.
Securez wrote:
> I have a form that permit a user to upload files, but if the file is 1 or 2
> Mb the time excess the script live time,
> how i can change this, keeping the global value for script live time.
>
> And if i want to permit a user to upload a file, wath is the best mayway to
> do this, at this moment i need to make a chmod 701 to dir on which the user
> want to upload files.
>
> Can anybody help me??
The seep function, it can sleep for a number of seconds, if i have
configured into php.ini the live time of a script to 30 sec. and if the
upload's time is more greather than 30 sec, the script dies.
What means the sleep function?
Anyone familiar with this class willing to help out. Would
appreciate it.
when i run the following (example.php) script, i always get what looks
like the rfc822 body of the message within the e-mail, but never the
html or text body body parts. first i'll show the output of the script,
then the example.php script. html_mime_mail.class is attached.
notice how the mime-version definition and boundary is within the
message body, also notice how the text/html part has base64 encoding?
this is on netscape 6, but repeatable with outlook express.
again, thanks if you actually trace through this, or recognize the error
otherwise. - eric
######## output (msg body) #########
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_2ad7f0cbb98266e56a24391bd135d9a4"
This is a MIME encoded message.
--=_2ad7f0cbb98266e56a24391bd135d9a4
Content-Type: multipart/alternative;
boundary="=_22bf429aee349f53ea3e34f8bb0149b3"
--=_22bf429aee349f53ea3e34f8bb0149b3
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: base64
U3VjY2Vzcw==
--=_22bf429aee349f53ea3e34f8bb0149b3
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: base64
PEhUTUw+PEJPRFkgQkFDS0dST1VORD1iYWNrZ3JvdW5kLmdpZj5lcmljZXJpY2VyaWM8L0JPRFk+
PC9IVE1MPg==
--=_22bf429aee349f53ea3e34f8bb0149b3--
--=_2ad7f0cbb98266e56a24391bd135d9a4--
######## example.php script #########
<?php
/***************************************
** Title.........: HTML Mime Mail class
** Version.......: 1.33
** Author........: Richard Heyes <[EMAIL PROTECTED]>
** Filename......: example.php3
** Last changed..: 24/10/2000
** Notes.........: Based upon mime_mail.class
** by Tobias Ratschiller <[EMAIL PROTECTED]>
** and Sascha Schumann <[EMAIL PROTECTED]>.
***************************************/
error_reporting(63);
include('class.html.mime.mail.inc');
/***************************************
** Example of usage.
***************************************/
/***************************************
** Read the file background.gif into
** $backgrnd.
***************************************/
/***************************************
**
** !! Important !!
**
** If running this script upon Windows
** then you may need to change the fopen()
** mode from 'r' to 'rb'.
** Thanks to Thomas Unger for this nugget.
***************************************/
//$filename = 'background.gif';
//$backgrnd = fread($fp = fopen($filename, 'r'),
filesize($filename));
//fclose($fp);
/***************************************
** Read the file test.zip into $attachment.
***************************************/
//$filename = 'example.zip';
//$attachment = fread($fp = fopen($filename, 'r'),
filesize($filename));
//fclose($fp);
/***************************************
** Create the mail object. Optional headers
** argument. Do not put From: here, this
** will be added when $mail->send
** Does not have to have trailing \r\n
** but if adding multiple headers, must
** be seperated by \r\n.
***************************************/
$mail = new html_mime_mail('X-Mailer: Html Mime Mail Class');
/***************************************
** If sending an html email, then these
** two variables specify the text and
** html versions of the mail. Don't
** have to be named as these are. Just
** make sure the names tie in to the
** $mail->add_html() command further down.
***************************************/
$text = "Success";
$html = "<HTML><BODY
BACKGROUND=background.gif>ericericeric</BODY></HTML>";
/***************************************
** Add the text, html and embedded images.
** Each embedded image has to be added
** using $mail->add_html_image() BEFORE
** calling $mail->add_html(). The name
** of the image should match exactly
** (case-sensitive) to the name in the html.
***************************************/
//$mail->add_html_image($backgrnd, 'background.gif', 'image/gif');
$mail->add_html($html, $text);
/***************************************
** If not sending an html email, then
** this is used to set the plain text
** body of the email.
***************************************/
//$mail->set_body('ftfuygfyugyguilgulghlgjhlg'."\n\n\n".'jhlkgjguilguilguil
ghjli');
/***************************************
** This is used to add an attachment to
** the email.
***************************************/
//$mail->add_attachment($attachment, 'example.zip',
'application/octet-stream');
/***************************************
** Set Character Set
***************************************/
$mail->set_charset('iso-8859-1', TRUE);
/***************************************
** Builds the message.
***************************************/
$mail->build_message();
/***************************************
** Sends the message. $mail->build_message()
** is seperate to $mail->send so that the
** same email can be sent many times to
** differing recipients simply by putting
** $mail->send() in a loop.
***************************************/
$mail->send('TO NAME', '[EMAIL PROTECTED]', 'FROM NAME',
'FROM ADDRESS', 'SUBJECT LINE');
?>
<?php
/***************************************
** Title.........: HTML Mime Mail class
** Version.......: 1.33
** Author........: Richard Heyes <[EMAIL PROTECTED]>
** Filename......: html_mime_mail.class
** Last changed..: 31/08/2000
** Notes.........: Based upon mime_mail.class
** by Tobias Ratschiller <[EMAIL PROTECTED]>
** and Sascha Schumann <[EMAIL PROTECTED]>.
** See http://www.heyes-computing.net/scripts/
** for full tar/zip if you haven't got one.
***************************************/
class html_mime_mail{
var $mime;
var $html;
var $body;
var $do_html;
var $multipart;
var $html_text;
var $html_images;
var $headers;
var $parts;
var $charset;
var $charsetlist;
/***************************************
** Constructor function. Sets the headers
** if supplied.
***************************************/
function html_mime_mail($headers = ''){
$this->html_images = array();
$this->headers = array();
$this->parts = array();
$this->charsetlist = array('iso' => 'us-ascii',
'big5' => 'big5',
'gb' => 'gb2312');
$this->charset = 'us-ascii';
if($headers == '') return TRUE;
if(is_string($headers)) $headers = explode("\r\n", trim($headers));
for($i=0; $i<count($headers); $i++){
if(is_array($headers[$i])) for($j=0; $j<count($headers[$i]);
$j++) if($headers[$i][$j] != '') $this->headers[] = $headers[$i][$j];
if($headers[$i] != '') $this->headers[] = $headers[$i];
}
}
/***************************************
** Accessor function to set the body text.
** Body text is used if it's not an html
** mail being sent.
***************************************/
function set_body($text = ''){
if(is_string($text)){
$this->body = $text;
return TRUE;
}
return FALSE;
}
/***************************************
** Accessor function to return the mime
** class variable. Purely for debug.
***************************************/
function get_mime(){
if(!isset($this->mime)) $this->mime = '';
return $this->mime;
}
/***************************************
** Function to set a header. Shouldn't
** really be necessary as you could use
** the constructor and send functions,
** it's here nonetheless. Takes any number
** of arguments, which can be either
** strings or arrays full of strings.
** this function is php4 only and will
** return false otherwise. Will return
** true upon finishing.
***************************************/
function add_header(){
if((int)phpversion() < 4) return FALSE;
$args = func_get_args();
for($i=0; $i<count($args); $i++){
if(is_array($args[$i])) for($j=0; $j<count($args[$i]); $j++)
if($args[$i][$j] != '') $this->headers[] = $args[$i][$j];
if($args[$i] != '') $this->headers[] = $args[$i];
}
return TRUE;
}
/***************************************
** Accessor function to set the content charset.
** Matt add 2000/10/19
***************************************/
function set_charset($charset = '', $raw = FALSE){
if($raw == TRUE){
$this->charset = $charset;
return TRUE;
}
if(is_string($charset)){
while(list($k,$v) = each($this->charsetlist)){
if($k == $charset){
$this->charset = $v;
return TRUE;
}
}
}
return FALSE;
}
/***************************************
** Adds a html part to the mail.
** Also replaces image names with
** content-id's.
***************************************/
function add_html($html, $text){
$this->do_html = 1;
$this->html = $html;
$this->html_text = $text;
if(is_array($this->html_images) AND count($this->html_images) > 0){
for($i=0; $i<count($this->html_images); $i++) $this->html =
ereg_replace($this->html_images[$i]['name'], 'cid:'.$this->html_images[$i]['cid'],
$this->html);
}
}
/***************************************
** Builds html part of email.
***************************************/
function build_html($orig_boundary){
$sec_boundary = '=_'.md5(uniqid(time()));
$thr_boundary = '=_'.md5(uniqid(time()));
if(count($this->html_images) == 0){
$this->multipart.= '--'.$orig_boundary."\r\n";
$this->multipart.= 'Content-Type:
multipart/alternative;'.chr(13).chr(10).chr(9).'boundary="'.$sec_boundary."\"\r\n\r\n\r\n";
$this->multipart.= '--'.$sec_boundary."\r\n";
$this->multipart.= 'Content-Type: text/plain;
charset="'.$this->charset.'"'."\r\n";
$this->multipart.= 'Content-Transfer-Encoding:
base64'."\r\n\r\n";
$this->multipart.=
chunk_split(base64_encode($this->html_text))."\r\n\r\n";
$this->multipart.= '--'.$sec_boundary."\r\n";
$this->multipart.= 'Content-Type: text/html;
charset="'.$this->charset.'"'."\r\n";
$this->multipart.= 'Content-Transfer-Encoding:
base64'."\r\n\r\n";
$this->multipart.=
chunk_split(base64_encode($this->html))."\r\n\r\n";
$this->multipart.= '--'.$sec_boundary."--\r\n\r\n";
}else{
$this->multipart.= '--'.$orig_boundary."\r\n";
$this->multipart.= 'Content-Type:
multipart/related;'.chr(13).chr(10).chr(9).'boundary="'.$sec_boundary."\"\r\n\r\n\r\n";
$this->multipart.= '--'.$sec_boundary."\r\n";
$this->multipart.= 'Content-Type:
multipart/alternative;'.chr(13).chr(10).chr(9).'boundary="'.$thr_boundary."\"\r\n\r\n\r\n";
$this->multipart.= '--'.$thr_boundary."\r\n";
$this->multipart.= 'Content-Type: text/plain;
charset="'.$this->charset.'"'."\r\n";
$this->multipart.= 'Content-Transfer-Encoding:
base64'."\r\n\r\n";
$this->multipart.=
chunk_split(base64_encode($this->html_text))."\r\n\r\n";
$this->multipart.= '--'.$thr_boundary."\r\n";
$this->multipart.= 'Content-Type: text/html'."\r\n";
$this->multipart.= 'Content-Transfer-Encoding:
base64'."\r\n\r\n";
$this->multipart.=
chunk_split(base64_encode($this->html))."\r\n\r\n";
$this->multipart.= '--'.$thr_boundary."--\r\n\r\n";
for($i=0; $i<count($this->html_images); $i++){
$this->multipart.= '--'.$sec_boundary."\r\n";
$this->build_html_image($i);
}
$this->multipart.= "--".$sec_boundary."--\r\n\r\n";
}
}
/***************************************
** Adds an image to the list of embedded
** images.
***************************************/
function add_html_image($file, $name = '', $c_type='application/octet-stream'){
$this->html_images[] = array( 'body' => $file,
'name' => $name,
'c_type' => $c_type,
'cid' => md5(uniqid(time())) );
}
/***************************************
** Adds a file to the list of attachments.
***************************************/
function add_attachment($file, $name = '', $c_type='application/octet-stream'){
$this->parts[] = array( 'body' => $file,
'name' => $name,
'c_type' => $c_type );
}
/***************************************
** Builds an embedded image part of an
** html mail.
***************************************/
function build_html_image($i){
$this->multipart.= 'Content-Type: '.$this->html_images[$i]['c_type'];
if($this->html_images[$i]['name'] != '') $this->multipart .= ';
name="'.$this->html_images[$i]['name']."\"\r\n";
else $this->multipart .= "\r\n";
$this->multipart.= 'Content-Transfer-Encoding: base64'."\r\n";
$this->multipart.= 'Content-ID:
<'.$this->html_images[$i]['cid'].">\r\n\r\n";
$this->multipart.=
chunk_split(base64_encode($this->html_images[$i]['body']))."\r\n";
}
/***************************************
** Builds a single part of a multipart
** message.
***************************************/
function build_part($i){
$message_part = '';
$message_part.= 'Content-Type: '.$this->parts[$i]['c_type'];
if($this->parts[$i]['name'] != '')
$message_part .= '; name="'.$this->parts[$i]['name']."\"\r\n";
else
$message_part .= "\r\n";
// Determine content encoding.
if($this->parts[$i]['c_type'] == 'text/plain'){
$message_part.= 'Content-Transfer-Encoding: base64'."\r\n\r\n";
$message_part.=
chunk_split(base64_encode($this->parts[$i]['body']))."\r\n";
}elseif($this->parts[$i]['c_type'] == 'message/rfc822'){
$message_part.= 'Content-Transfer-Encoding: 7bit'."\r\n\r\n";
$message_part.= $this->parts[$i]['body']."\r\n";
}else{
$message_part.= 'Content-Transfer-Encoding: base64'."\r\n";
$message_part.= 'Content-Disposition: attachment;
filename="'.$this->parts[$i]['name']."\"\r\n\r\n";
$message_part.=
chunk_split(base64_encode($this->parts[$i]['body']))."\r\n";
}
return $message_part;
}
/***************************************
** Builds the multipart message from the
** list ($this->_parts).
***************************************/
function build_message(){
$boundary = '=_'.md5(uniqid(time()));
$this->headers[] = 'MIME-Version: 1.0';
$this->headers[] = 'Content-Type:
multipart/mixed;'.chr(13).chr(10).chr(9).'boundary="'.$boundary.'"';
$this->multipart = "This is a MIME encoded message.\r\n\r\n";
if(isset($this->do_html) AND $this->do_html == 1)
$this->build_html($boundary);
if(isset($this->body) AND $this->body != '') $this->parts[] =
array('body' => $this->body, 'name' => '', 'c_type' => 'text/plain');
for($i=(count($this->parts)-1); $i>=0; $i--){
$this->multipart.= '--'.$boundary."\r\n".$this->build_part($i);
}
$this->mime = $this->multipart."--".$boundary."--\r\n";
}
/***************************************
** Sends the mail.
***************************************/
function send($to_name, $to_addr, $from_name, $from_addr, $subject = '',
$headers = ''){
if($to_name != '') $to = '"'.$to_name.'" <'.$to_addr.'>';
else $to = $to_addr;
if($from_name != '') $from = '"'.$from_name.'" <'.$from_addr.'>';
else $from = $from_addr;
if(is_string($headers)) $headers = explode("\r\n", trim($headers));
for($i=0; $i<count($headers); $i++){
if(is_array($headers[$i])) for($j=0; $j<count($headers[$i]);
$j++) if($headers[$i][$j] != '') $xtra_headers[] = $headers[$i][$j];
if($headers[$i] != '') $xtra_headers[] = $headers[$i];
}
if(!isset($xtra_headers)) $xtra_headers = array();
mail($to, $subject, $this->mime, 'From: '.$from."\r\n".implode("\r\n",
$this->headers)."\r\n".implode("\r\n", $xtra_headers));
}
/***************************************
** Use this method to deliver using direct
** smtp connection. Relies upon Manuel Lemos'
** smtp mail delivery class available at:
** http://phpclasses.upperdesign.com
**
** void smtp_send( string *Name* of smtp object,
** string From address,
** array To addresses,
** string Subject,
** array Extra headers)
***************************************/
function smtp_send($smtp_obj, $from_addr, $to_addr, $subject, $xtra_headers =
''){
global $$smtp_obj;
$smtp_obj = $$smtp_obj;
$headers = $this->headers;
$headers[] = 'From: '.$from_addr;
$headers[] = 'Subject: '.$subject;
if(is_array($xtra_headers)) for(reset($xtra_headers); list(,$header) =
each($xtra_headers); ) $headers[] = $header;
// the following: sendmessage(string from address, array to addresses,
array headers, string body)
$smtp_obj->sendmessage($from_addr, $to_addr, $headers, $this->mime);
}
/***************************************
** Use this method to return the email
** in message/rfc822 format. Useful for
** adding an email to another email as
** an attachment. there's a commented
** out example in example.php.
**
** string get_rfc822(string To name,
** string To email,
** string From name,
** string From email,
** [string Subject,
** string Extra headers])
***************************************/
function get_rfc822($to_name, $to_addr, $from_name, $from_addr, $subject = '',
$headers = ''){
// Make up the date header as according to RFC822
$date = 'Date: '.date('D, d M y H:i:s');
if($to_name != '') $to = 'To: "'.$to_name.'" <'.$to_addr.'>';
else $to = $to_addr;
if($from_name != '') $from = 'From: "'.$from_name.'" <'.$from_addr.'>';
else $from = $from_addr;
if(is_string($subject)) $subject = 'Subject: '.$subject;
if(is_string($headers)) $headers = explode("\r\n", trim($headers));
for($i=0; $i<count($headers); $i++){
if(is_array($headers[$i])) for($j=0; $j<count($headers[$i]);
$j++) if($headers[$i][$j] != '') $xtra_headers[] = $headers[$i][$j];
if($headers[$i] != '') $xtra_headers[] = $headers[$i];
}
if(!isset($xtra_headers)) $xtra_headers = array();
return
$date."\r\n".$from."\r\n".$to."\r\n".$subject."\r\n".implode("\r\n",
$this->headers)."\r\n".implode("\r\n", $xtra_headers)."\r\n\r\n".$this->mime;
}
} // End of class.
?>
Hello,
What do you think about Zend position?
http://php.weblogs.com/
http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
Cordialement,
Uioreanu Calin
-------------------------------------
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: +4094477589
Web: http://www.ecomert.f2s.com
DMS Team Cluj-Napoca Romania
------------------------------------------------
"Uioreanu Calin" <[EMAIL PROTECTED]> wrote in message
> Hello,
>
> What do you think about Zend position?
I thought I would reply to the list on this one, basically to see if I am in
the minority (and if so, I will shut up!)...
Firstly, many people who use PHP do so to make money - I know I do!
Therefore, I don't see anything wrong with the guys at Zend developing
products that make my life easier, make PHP a better product and they can
get paid for doing so.
However, although I have said the above, I do feel that the price points
that have been chosen are very disapointing, especially for the Encoder
Unlimited which is priced at $6000. The guys at Zend have raised
expectations for their products since they launched their site and I have
been looking forward to the Encoder (as it is now called) for most of that
time. I can only think that it is the much larger companies that can afford
this kind of price and I now feel that I cannot have a "feature" that I had
been waiting to use for some time. Cold Fusion has a method of encryting
it's code, and it comes like that out of the box (and at a much cheaper
price). What the guys at Zend are basically saying is that if you want to
use the better product (ie PHP) and want the encryption functionality found
in products like Cold Fusion, then you are going to have to pay handsomely
for it! I would definitely have paid $1000 for the Unlimited Encoder, but
no more than that.
What does everyone else think? Am I being unfair here in my assessment?
I know that there has been an argument on the Zend site that "until 2 days
ago, you were happy using PHP", but I disagree with that because I've been
waiting so long for the Encoder knowing I needed it, and delaying on
releasing a couple of low-cost ($20 each) apps until it was ready
Finally, is there anything else out there either a) in the open source
community or b) commercially available at a more sensible price? If not,
are there people on this list who could band together to develop something
that competes against it?
Any replies always appreciated :)
Ade
We are working on extending the APC cache (http://apc.communityconnect.com)
with an encoder, and already have a pretty much functioning version (though
its a bit of hack job at the moment :). I think the patches we made were
sent to the dev list, but I can send them around at request.
adamw
----- Original Message -----
From: "Adrian Teasdale" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Uioreanu Calin" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 10:54 AM
Subject: [PHP] Encoder price too high (was: Zend hit)
>
> "Uioreanu Calin" <[EMAIL PROTECTED]> wrote in message
> > Hello,
> >
> > What do you think about Zend position?
>
> I thought I would reply to the list on this one, basically to see if I am
in
> the minority (and if so, I will shut up!)...
>
> Firstly, many people who use PHP do so to make money - I know I do!
> Therefore, I don't see anything wrong with the guys at Zend developing
> products that make my life easier, make PHP a better product and they can
> get paid for doing so.
>
> However, although I have said the above, I do feel that the price points
> that have been chosen are very disapointing, especially for the Encoder
> Unlimited which is priced at $6000. The guys at Zend have raised
> expectations for their products since they launched their site and I have
> been looking forward to the Encoder (as it is now called) for most of that
> time. I can only think that it is the much larger companies that can
afford
> this kind of price and I now feel that I cannot have a "feature" that I
had
> been waiting to use for some time. Cold Fusion has a method of encryting
> it's code, and it comes like that out of the box (and at a much cheaper
> price). What the guys at Zend are basically saying is that if you want to
> use the better product (ie PHP) and want the encryption functionality
found
> in products like Cold Fusion, then you are going to have to pay handsomely
> for it! I would definitely have paid $1000 for the Unlimited Encoder, but
> no more than that.
>
> What does everyone else think? Am I being unfair here in my assessment?
>
> I know that there has been an argument on the Zend site that "until 2 days
> ago, you were happy using PHP", but I disagree with that because I've been
> waiting so long for the Encoder knowing I needed it, and delaying on
> releasing a couple of low-cost ($20 each) apps until it was ready
>
> Finally, is there anything else out there either a) in the open source
> community or b) commercially available at a more sensible price? If not,
> are there people on this list who could band together to develop something
> that competes against it?
>
> Any replies always appreciated :)
>
> Ade
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> Cold Fusion has a method
> of encrypting
> it's code, and it comes like that out of the box
For what it's worth, ColdFusion's encryption tool isn't much help.
There's a decryption tool widely available. So one question is, does
$6000 buy you real (effective) encryption or not?
-- Owen
----
The Little Czech Primer
http://www.czechprimer.org
When I try to download a big file (like 5meg) with fopen() I get some strange errors:
- not enough space for lowio initialization
- not enough space for stdio initialization
- pure virtual function call
- not enough space for _onexit/atexit table
- unable to open console device
- unexpected heap error
- unexpected multithread lock error
- not enough space for thread data abnormal program termination
- not enough space for environment
- not enough space for arguments
I use the following code
while (!feof($file)) {
$line = fgets($file, 10000);
fputs($localfile,"$line");
}
This always happens when he downloaded 981kb. Anyone know how to solve this?
10xzs
- floating point not loaded
The first thing I'd check is the space on the client machine
trying to do the download - that machine may be running out
of space. I can't remember exactly how the browser handles
this, but the client machine may need 2 times the size of the
file to be downloaded - it might first create a temporary file,
and then when the download is done, copy the temporary file to the
real file.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Jeroen Jochems [[EMAIL PROTECTED]] wrote:
> When I try to download a big file (like 5meg) with fopen() I get some strange errors:
>
> - not enough space for lowio initialization
> - not enough space for stdio initialization
> - pure virtual function call
> - not enough space for _onexit/atexit table
> - unable to open console device
> - unexpected heap error
> - unexpected multithread lock error
> - not enough space for thread data abnormal program termination
> - not enough space for environment
> - not enough space for arguments
>
> I use the following code
>
> while (!feof($file)) {
> $line = fgets($file, 10000);
> fputs($localfile,"$line");
> }
>
> This always happens when he downloaded 981kb. Anyone know how to solve this?
>
> 10xzs
> - floating point not loaded
No it has got about 10gig free space!
----- Original Message -----
From: Hardy Merrill <[EMAIL PROTECTED]>
To: Jeroen Jochems <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 2:50 PM
Subject: Re: [PHP] Strange problem
> The first thing I'd check is the space on the client machine
> trying to do the download - that machine may be running out
> of space. I can't remember exactly how the browser handles
> this, but the client machine may need 2 times the size of the
> file to be downloaded - it might first create a temporary file,
> and then when the download is done, copy the temporary file to the
> real file.
>
> HTH.
>
> --
> Hardy Merrill
> Mission Critical Linux, Inc.
> http://www.missioncriticallinux.com
>
> Jeroen Jochems [[EMAIL PROTECTED]] wrote:
> > When I try to download a big file (like 5meg) with fopen() I get some
strange errors:
> >
> > - not enough space for lowio initialization
> > - not enough space for stdio initialization
> > - pure virtual function call
> > - not enough space for _onexit/atexit table
> > - unable to open console device
> > - unexpected heap error
> > - unexpected multithread lock error
> > - not enough space for thread data abnormal program termination
> > - not enough space for environment
> > - not enough space for arguments
> >
> > I use the following code
> >
> > while (!feof($file)) {
> > $line = fgets($file, 10000);
> > fputs($localfile,"$line");
> > }
> >
> > This always happens when he downloaded 981kb. Anyone know how to solve
this?
> >
> > 10xzs
> > - floating point not loaded
>
Or does anyone know a better way to download files?
----- Original Message -----
From: Hardy Merrill <[EMAIL PROTECTED]>
To: Jeroen Jochems <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 2:50 PM
Subject: Re: [PHP] Strange problem
> The first thing I'd check is the space on the client machine
> trying to do the download - that machine may be running out
> of space. I can't remember exactly how the browser handles
> this, but the client machine may need 2 times the size of the
> file to be downloaded - it might first create a temporary file,
> and then when the download is done, copy the temporary file to the
> real file.
>
> HTH.
>
> --
> Hardy Merrill
> Mission Critical Linux, Inc.
> http://www.missioncriticallinux.com
>
> Jeroen Jochems [[EMAIL PROTECTED]] wrote:
> > When I try to download a big file (like 5meg) with fopen() I get some
strange errors:
> >
> > - not enough space for lowio initialization
> > - not enough space for stdio initialization
> > - pure virtual function call
> > - not enough space for _onexit/atexit table
> > - unable to open console device
> > - unexpected heap error
> > - unexpected multithread lock error
> > - not enough space for thread data abnormal program termination
> > - not enough space for environment
> > - not enough space for arguments
> >
> > I use the following code
> >
> > while (!feof($file)) {
> > $line = fgets($file, 10000);
> > fputs($localfile,"$line");
> > }
> >
> > This always happens when he downloaded 981kb. Anyone know how to solve
this?
> >
> > 10xzs
> > - floating point not loaded
>
At 9:08 PM -0800 1/24/01, jeremy brand wrote:
>$array[0] will be the lang_pref and $array[1] will be the
>currency_pref.
>
>Jeremy
An easy way to read the returned array values into scalar variables is:
list($lang_pref, $currency_pref) = PrefChange($language,
$currency, $state);
You can only do this if your PrefChange function _always_ returns the
same number of elements (two here; it could be any number). If you
have a function that - for example - returns a 2-element array or
FALSE if there's an error, then you have to do something a little
more complex:
$Stuff = PrefChange($language, $currency, $state);
if (is_array($Stuff))
{
# ...do stuff with $Stuff !
} else {
# ...show error message
}
- steve
>Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
>http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> http://www.JEEP-FOR-SALE.com/ -- I need a buyer
> Get your own Free, Private email at http://www.smackdown.com/
>
>On Thu, 25 Jan 2001, Jamie wrote:
>
>> Date: Thu, 25 Jan 2001 13:04:27 +0800
>> From: Jamie <[EMAIL PROTECTED]>
>> To: PHP <[EMAIL PROTECTED]>
>> Subject: [PHP] multiple function returns
>>
>> Can anyone help me I'm trying to read two results from a function by passing
>> them out via an array but I'm not sure how to access them once I have done
>> that. In the PHP manual it shows a list call which I can't seem to even find
>> what the hell it does the code below runs without any errors but does not
>> seem to work.
>>
>> here the function gest passed the language and currency preference and a
>> variable (1,0) to decide what it will do with them - update the preferences
>> of the user or read out and define the preferences. (once updated I want it
>> to read out the prefs aswell)
>>
>> function PrefChange($lang,$curry,$state){
>> global $DB_Server, $HTTP_Host, $DB_Login, $DB_Password, $DB_Name, $DocRoot ;
>>
>> if ($state){//read preferences from page
>> if (!($result = mysql_db_query($DB_Name,"SELECT language_pref,
>> currency_pref FROM users WHERE user_id ='$cookie_user'"))){
>> DisplayErrMessage(sprintf("internal error %s %s %s %d:%s\n",$DB_Server,
>> $DB_Login, $DB_Password,
>> mysql_errno(), mysql_error()));
>> while ($row = mysql_fetch_array($results)){
>> $lang_pref = $row["language_pref"];
>> $currancy_pref = $row["currency_pref"];
>> return array($lang_pref,$currancy_pref);
>> }
>> }
>> } else {///update preferences from page
>> if (!($result = mysql_db_query($DB_Name,"UPDATE users SET
>> language_pref='$lang' AND currency_pref='$curry' WHERE
>> user_id='$cookie_user'"))){
>> DisplayErrMessage(sprintf("internal error %s %s %s %d:%s\n",$DB_Server,
>> $DB_Login, $DB_Password,
>> mysql_errno(), mysql_error()));
>> PrefChange(0,0,1) ;
>> }
>> }
>> }
>>
>>
>> an example of what I'd like to do when calling the function (here I'm only
>> reading the prefrences from the DB ), a select box that is showing the
>> preference that is chosen with the preference read from the above function
>> and the list created by the function below
>>
>> <select name="form_lang_pref" style="font-family:verdana,
>> Arial;font-size:8pt" CLASS:menu">
>> <?
>> list ($form_language_pref, $form_currency_pref) = PrefChange(0,0,1);
>>
>> $select_id = $form_language_pref;
>> $db = mysql_connect("$DB_Server", "$DB_Login, $DB_Password");
>> mysql_select_db("$DB_Name",$db);
>> $results = mysql_query("SELECT * FROM language ORDER BY language
>> ",$db);
>>
>> while ($row = mysql_fetch_array($results)){
>> $rowid = $row["language_id"];
>> $name = $row["language"];
>> if ($rowid == $select_id) {
> > echo("<option SELECTED value=\"$id\">$name</option>\n");
>> } else {
>> echo("<option value=\"$id\">$name</option>\n");
>> }
>> // endwhile;
>> }
>> echo("</select>");
>> ?>
> >
>
--
+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg University of California, Davis |
| [EMAIL PROTECTED] Computer Consultant |
| http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+
On 25 Jan 2001 13:04:27 +0800, Jamie wrote:
> return array($lang_pref,$currancy_pref);
if you make this return array("language" => $lang_pref, "currency" =>
$currency_pref)
you can store the value and reference it by name (eg)
$prefs=your_func($whatever);
echo "language pref: ".$prefs["language"];
echo "currency pref: ".$prefs["currency"];
hope this helps.
Hrishi
For the inconvenience...
I had some trouble with my mailclient yesterday... This is just a test to check if my
new mailer is any better...
Sorry...
At 22:35 18/01/01 -0800, Rasmus Lerdorf wrote:
>You would need to go through a web server for it to work.
I seem to recall seeing something on the Zend site a while back about a
"compiler" for PHP that was in the pipeline. After the store was launched I
can't find anything. Am I imagining things, or does it look like Zend
pulled the plug? Did anyone else in here see it? :)
Thanks,
Angus.
>On Fri, 19 Jan 2001, Philip Apostol wrote:
>
> > Can I run a PHP/Apache/MySQL services on a CD-ROM. We have PHP scripts
> that
> > handle queries on a large database. We would like to distribute it on a
> > CD-ROM so they could access the database offline. Is it possible? Or are
> > there any similar solutions for this? Im thinking of a text-file database
> > and access it via javascript but have no much time to study on
> this. If php
> > can be run on the cd-rom, that would be a better solution. But any
> > solution you posted here will be highly appreciated. Thanks in advance.
> >
> > Philip
The compiler has become the encoder, because it's rather hard to meet the
expectations of a 'compiler' (many would expect it to produce binaries and
heavily optimised code). Encoder makes more sense, based on what the product
does.
adamw
----- Original Message -----
From: "Angus Mann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 11:41 AM
Subject: [PHP] Compiler? (Was Re: [PHP] PHP site on CD-ROM)
> At 22:35 18/01/01 -0800, Rasmus Lerdorf wrote:
>
> >You would need to go through a web server for it to work.
>
> I seem to recall seeing something on the Zend site a while back about a
> "compiler" for PHP that was in the pipeline. After the store was launched
I
> can't find anything. Am I imagining things, or does it look like Zend
> pulled the plug? Did anyone else in here see it? :)
>
> Thanks,
>
> Angus.
>
>
>
> >On Fri, 19 Jan 2001, Philip Apostol wrote:
> >
> > > Can I run a PHP/Apache/MySQL services on a CD-ROM. We have PHP
scripts
> > that
> > > handle queries on a large database. We would like to distribute it on
a
> > > CD-ROM so they could access the database offline. Is it possible? Or
are
> > > there any similar solutions for this? Im thinking of a text-file
database
> > > and access it via javascript but have no much time to study on
> > this. If php
> > > can be run on the cd-rom, that would be a better solution. But any
> > > solution you posted here will be highly appreciated. Thanks in
advance.
> > >
> > > Philip
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
The Encoder does in fact all of the optimizations of the Zend Optimizer
(including ones that aren't enabled in the plug-in Zend Optimizer, because
performing them every time may take more than what they would save,
something that is not an issue in a one time compilation.
The reason it's not named 'Compiler' is indeed because people usually (and
erroneously) expect all compilers to produce machine language code.
Zeev
At 13:41 25/1/2001, Adam Wright wrote:
>The compiler has become the encoder, because it's rather hard to meet the
>expectations of a 'compiler' (many would expect it to produce binaries and
>heavily optimised code). Encoder makes more sense, based on what the product
>does.
>
>adamw
>
>----- Original Message -----
>From: "Angus Mann" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, January 25, 2001 11:41 AM
>Subject: [PHP] Compiler? (Was Re: [PHP] PHP site on CD-ROM)
>
>
> > At 22:35 18/01/01 -0800, Rasmus Lerdorf wrote:
> >
> > >You would need to go through a web server for it to work.
> >
> > I seem to recall seeing something on the Zend site a while back about a
> > "compiler" for PHP that was in the pipeline. After the store was launched
>I
> > can't find anything. Am I imagining things, or does it look like Zend
> > pulled the plug? Did anyone else in here see it? :)
> >
> > Thanks,
> >
> > Angus.
> >
> >
> >
> > >On Fri, 19 Jan 2001, Philip Apostol wrote:
> > >
> > > > Can I run a PHP/Apache/MySQL services on a CD-ROM. We have PHP
>scripts
> > > that
> > > > handle queries on a large database. We would like to distribute it on
>a
> > > > CD-ROM so they could access the database offline. Is it possible? Or
>are
> > > > there any similar solutions for this? Im thinking of a text-file
>database
> > > > and access it via javascript but have no much time to study on
> > > this. If php
> > > > can be run on the cd-rom, that would be a better solution. But any
> > > > solution you posted here will be highly appreciated. Thanks in
>advance.
> > > >
> > > > Philip
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Zeev Suraski <[EMAIL PROTECTED]>
CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
Angus Mann wrote:
>
> At 22:35 18/01/01 -0800, Rasmus Lerdorf wrote:
>
> >You would need to go through a web server for it to work.
>
> I seem to recall seeing something on the Zend site a while back about a
> "compiler" for PHP that was in the pipeline. After the store was launched I
> can't find anything. Am I imagining things, or does it look like Zend
> pulled the plug? Did anyone else in here see it? :)
>
The Compiler underwent a name change only... It's now called the
Encoder. The reason is because, well, a compiler implies a
translation from source text to machine code as well as
a required process to allow that source text to be executable.
So the Encoder is not a compiler per se... Even when it
was called the Compiler it wasn't one, because you don't need
one for PHP. People thought that you did, and so to avoid
confusion and misconceptions the name was changed.
PS: I'm also [EMAIL PROTECTED]
--
===========================================================================
Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/
"Casanova will have many weapons; To beat him you will
have to have more than forks and flatulence."
Hi Rasmus,
Thank you for the link - and sorry about the empty messages ;-)
The slides did help to some extend. But I'm only able to compile as
described in slide 28.
When I try to compile it as a shared module no .so file is generated. I
do however get the following warnings:
*** Warning: This library needs some functionality provided by -lstocks.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module stocks. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
The dlopening appliations is that PHP itself?
BR
Thomas
Rasmus Lerdorf wrote:
>
> > After 3½ day with the same stupid problem I am borderline crazy and
> > beginning to get REALLY fed up with PHP ;-)
> > Could it be a bug in the ext_skel "and friends" utilities???
>
> No, they work quite well. Try going to http://conf.php.net and pick the
> New York Linuxworld Advanced presentation near the bottom. Then go to
> slide #26. This is a walkthrough of building a simple extension which
> adds functions for the external libstocks.a library
> (http://libstocks.sourceforge.net/)
>
> Grab the library and try each step and see if you get a working extension
> at the end of it. I have actually given this talk a couple of times and
> performed each step right in front of everybody and ended up with a
> perfectly working extension.
>
> -Rasmus
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
How do you display a "you are being redirected to xyz page" page
for some period of time(5 seconds?) and then redirect to another
page without the user having to click on a link or a button?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
I don't think you can do it in php since that headers should be send before
any other output to the browser, but you can use metatags like this:
<meta HTTP-EQUIV="refresh" CONTENT="5;url=http://the-other-page.dk">
as you maybe can see the content tell's the browser that it should wait 5
seconds, and then go to the other url.
Jon A
At 07:58 25-01-01 -0500, Hardy Merrill wrote:
>How do you display a "you are being redirected to xyz page" page
>for some period of time(5 seconds?) and then redirect to another
>page without the user having to click on a link or a button?
>
>TIA.
>
>--
>Hardy Merrill
>Mission Critical Linux, Inc.
>http://www.missioncriticallinux.com
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
On the PostgreSQL lists there has been some discussion recently as to
the mechanism behind, benefits and drawbacks, of persistent connections.
In particular a scenario similar to the following was brought up:
Browser A connects to Apache child N, and calls a web page that calls a
script which issues SQL commands that involve opening and committing a
transaction:
- begin work;
- do some selects, inserts, deletes, updates . . .
Now, the question is: Is it conceivable that in the meantime, whilst
Browser A is waiting for the output from the script, that Browser B
talks to same Apache child, uses the same persistent connection, and
messes up the transaction that Browser A initiated in some unpredictable
way?
- do more selects, inserts, deletes, updates . . .
- commit work;
My guess would be that the Apache child wouldn't allow Browser B to talk
to it whilst Browser A is waiting for output from the script and that
that means that everything is fine and hunky-dory . . . I'm not sure though,
and there is nagging trace of murkiness.
Cheers, Frank
El Jue 25 Ene 2001 10:21, Frank Joerdens escribió:
> On the PostgreSQL lists there has been some discussion recently as to
> the mechanism behind, benefits and drawbacks, of persistent connections.
> In particular a scenario similar to the following was brought up:
>
> Browser A connects to Apache child N, and calls a web page that calls a
> script which issues SQL commands that involve opening and committing a
> transaction:
>
> - begin work;
> - do some selects, inserts, deletes, updates . . .
>
> Now, the question is: Is it conceivable that in the meantime, whilst
> Browser A is waiting for the output from the script, that Browser B
> talks to same Apache child, uses the same persistent connection, and
> messes up the transaction that Browser A initiated in some unpredictable
> way?
No, and thats why in the postgres list we talked about persistent connections
not having much benefits. That is because the connection is persistent to the
httpd child that called it and not to all.
> - do more selects, inserts, deletes, updates . . .
> - commit work;
Any way, for the SQL statements you wrote here, Browser B cound never (and
this is because postgres won't let it) mess with the transaccion browser A is
doing.
> My guess would be that the Apache child wouldn't allow Browser B to talk
> to it whilst Browser A is waiting for output from the script and that
> that means that everything is fine and hunky-dory . . . I'm not sure
> though, and there is nagging trace of murkiness.
Now be carefull. http connection open and close, they do not stay open, so if
you try to execute different SQL statments with different httpd connections,
your gonna have trouble (the sql server won't let you, because there is
another transaction been executed).
Saludos... :-)
--
System Administration: It's a dirty job,
but someone told I had to do it.
-----------------------------------------------------------------
Martín Marqués email: [EMAIL PROTECTED]
Santa Fe - Argentina http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------
On Thu, Jan 25, 2001 at 11:18:49AM -0300, Martin A. Marques wrote:
[ . . . ]
> No, and thats why in the postgres list we talked about persistent connections
> not having much benefits. That is because the connection is persistent to the
> httpd child that called it and not to all.
Well, yes, but as long as the child lives, it'll be connected which
means that every subsequent request to this child involving a database
connection won't have to suffer the connection startup cost. If you have
a rather inexpensive query, and a lot of web apps use simple,
straightforward selects that are very inexpensive, then the connection
startup overhead contributes more to the performance hit than the actual
query.
[ . . . ]
> Now be carefull. http connection open and close, they do not stay open, so if
> you try to execute different SQL statments with different httpd connections,
> your gonna have trouble (the sql server won't let you, because there is
> another transaction been executed).
Hmm. Say the Apache child is idle (under which cirumstances exactly does
it consider itself 'idle'?), receives a request for a page which
executes a query (because it contains php code that does). This takes a
while. In the meantime, while the SQL server is chugging away running
the query, will the Apache child not accept further http requests? How
does the Apache child know that it is waiting for the query to complete?
This is what I don't know about the mechanism.
Regards, Frank
>
> Hello,
>
> What do you think about Zend position?
> http://php.weblogs.com/
> http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
>
I think that if Zend wants to sell it for $6000, then they have all right
to. These guys have worked hard, and they deserve some cash for it.
If people can't afford it at $6000, then that's their problem. Software is
intellectual property, it shouldn't be free, and authors should be able to
charge any price for it they want to charge for it.
But, I don't think it's a wise decision to sell it at $6000, personally I
think I would sell it between $1000 and $4000, but that's just me. ($6000 is
a bit on the high side, considering what alternatives one haves for that
price, and considering that anyone who paid $1000 a year back (I recall
something about 'sponsoring') gets it all.)
-S
Hi Sander!
On Thu, 25 Jan 2001, Sander Pilon wrote:
>
> >
> > Hello,
> >
> > What do you think about Zend position?
> > http://php.weblogs.com/
> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
> >
>
> I think that if Zend wants to sell it for $6000, then they have all right
> to. These guys have worked hard, and they deserve some cash for it.
>
> If people can't afford it at $6000, then that's their problem. Software is
> intellectual property, it shouldn't be free, and authors should be able to
> charge any price for it they want to charge for it.
>
> But, I don't think it's a wise decision to sell it at $6000, personally I
> think I would sell it between $1000 and $4000, but that's just me. ($6000 is
> a bit on the high side, considering what alternatives one haves for that
> price, and considering that anyone who paid $1000 a year back (I recall
> something about 'sponsoring') gets it all.)
>
Also, there are Perl,Python,Java. All have `encoders', all free.
ain't it cool when you have choices :)
-- teodor
Sander Pilon wrote:
>
>
> >
> > Hello,
> >
> > What do you think about Zend position?
> > http://php.weblogs.com/
> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
> >
>
> I think that if Zend wants to sell it for $6000, then they have all right
> to. These guys have worked hard, and they deserve some cash for it.
>
> If people can't afford it at $6000, then that's their problem. Software is
> intellectual property, it shouldn't be free, and authors should be able to
> charge any price for it they want to charge for it.
>
There is, of course, the Encoder SE available via the commercial
subscription plan...
The Encoder is designed for (mostly) companies who design, develop
and sell PHP applications. Up to now, PHP has not been a viable
solution for distributed web apps, instead relying on companies
having to either become mini-ASPs, or taking the risk and
distributing the actual PHP scripts. And the sad fact is that
for many companies, they will disregard Licenses or NDAs or
agreements at the drop of a hat. So there has been resistance
to using PHP for apps designed for distro.
The Enocoder solves that.
If the solution that the Encoder provides isn't something you need,
they you don't need to pay :) If you want to distribute your
code for free, then most likely you'll be also sending the
text script, so you don't need the Encoder. If you are a small
shop, and want to dip your toes, the Commercial Subscription
allows you to distributed and sell your encoded apps at a
very reasonable price point...
By the by, my other hat is [EMAIL PROTECTED], in the interests of
full disclosure. But feedback is always welcome!
--
===========================================================================
Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/
"Casanova will have many weapons; To beat him you will
have to have more than forks and flatulence."
IMHO, if you want to sell it then it's your right. You coded it, you own
it, you
get to sell it.
But I do know that for $6,000 I sure as hell am not buying it.
Maybe for a couple hundred...but $6,000? No way. I'd have to have
some seriously proprietary kickass scripts that cost me a huge investment
in time/money to develop to blow $6,000 just on keeping people from
copying/tweaking them. Even then, they're just scripts. It'd be nice for
some encapsulated functionality, say, for database access, but
still, for $6,000 + runtime client? Nah, PHP code's just not that complex
and for $6,000 I can set up a number of unique users in the database.
-Szii
At 08:56 AM 1/25/2001 -0500, Jim Jagielski wrote:
>Sander Pilon wrote:
>>
>>
>> >
>> > Hello,
>> >
>> > What do you think about Zend position?
>> > http://php.weblogs.com/
>> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
>> >
>>
>> I think that if Zend wants to sell it for $6000, then they have all right
>> to. These guys have worked hard, and they deserve some cash for it.
>>
>> If people can't afford it at $6000, then that's their problem. Software is
>> intellectual property, it shouldn't be free, and authors should be able to
>> charge any price for it they want to charge for it.
>>
>
>There is, of course, the Encoder SE available via the commercial
>subscription plan...
>
>The Encoder is designed for (mostly) companies who design, develop
>and sell PHP applications. Up to now, PHP has not been a viable
>solution for distributed web apps, instead relying on companies
>having to either become mini-ASPs, or taking the risk and
>distributing the actual PHP scripts. And the sad fact is that
>for many companies, they will disregard Licenses or NDAs or
>agreements at the drop of a hat. So there has been resistance
>to using PHP for apps designed for distro.
>
>The Enocoder solves that.
>
>If the solution that the Encoder provides isn't something you need,
>they you don't need to pay :) If you want to distribute your
>code for free, then most likely you'll be also sending the
>text script, so you don't need the Encoder. If you are a small
>shop, and want to dip your toes, the Commercial Subscription
>allows you to distributed and sell your encoded apps at a
>very reasonable price point...
>
>By the by, my other hat is [EMAIL PROTECTED], in the interests of
>full disclosure. But feedback is always welcome!
>
>--
>===========================================================================
> Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/
> "Casanova will have many weapons; To beat him you will
> have to have more than forks and flatulence."
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
[EMAIL PROTECTED] wrote:
>
> But I do know that for $6,000 I sure as hell am not buying it.
> Maybe for a couple hundred...but $6,000? No way. I'd have to have
> some seriously proprietary kickass scripts that cost me a huge investment
> in time/money to develop to blow $6,000 just on keeping people from
> copying/tweaking them. Even then, they're just scripts. It'd be nice for
> some encapsulated functionality, say, for database access, but
> still, for $6,000 + runtime client? Nah, PHP code's just not that complex
> and for $6,000 I can set up a number of unique users in the database.
>
> -Szii
>
Well, without the Encoder the entire *possibility* of "seriously proprietary
kickass scripts" that people distribute and sell is out of the question.
Who said it was for the small developer? For them, there's the
Commercial Subscription plan. The Encoder is for companies whose
business is selling such PHP apps (among other good solutions
as well).
And the Encoder allows for better separation of business and
presentation logic... hell, you could even implement a sort
of business logic PHP "servlet".
--
===========================================================================
Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/
"Casanova will have many weapons; To beat him you will
have to have more than forks and flatulence."
You are entirely correct. However, I (personally) feel that by pricing it so
high you're targeting a very small niche market at a higher rate. Pricing it
in the "$300.00" range would not cost you that niche - but it would gain you
the "x-million" users/freelance developers. Sure, $6,000 is 20x $300, but
it's ONLY x20. When you're talking about a userbase on the 'net, x20 is
NOTHING. "Go big and expensive" seems the "old way" and "go small and
dominate the market" seems the new...um, paradigm. (Yes, I just wanted
to say that word. For all it's overuse, I think it just looks neat.)
If it's available, what is Zend's sales projection for this thing?
And has Zend acknowledged the possibility that by pricing it
so high they're ENCOURAGING competition/extensions from
the Open crowd? Price it lower and people who would otherwise
balk and write their own would just buy it. Like me. I don't have a viable
use for it atm, but the possibility's there. So what're my options?
Pay you 6k, or code one? Encoding modules aren't rocket science,
but I'd have to learn the Zend plugin/module API. Company 1 wants it,
pays 3k for a coder, and then releases it. *blink* Now Company 1 has
saved/invested 3k, and the Open community has the tool. Maybe Company1
charges $50.00 for it to recover costs. Now the vaunted Zend Encoder's
trying to compete and is still priced at $6,000. Sure, you may get a few
sales before someone drops a replacement but you'd get a whole lot more
by lowering the price, claiming market share and then you'd be better
positioned when the (obviously in the works) Open community spits one
out.
Just some thoughts....
-Szii
At 12:09 PM 1/25/2001 -0500, Jim Jagielski wrote:
>[EMAIL PROTECTED] wrote:
>>
>> But I do know that for $6,000 I sure as hell am not buying it.
>> Maybe for a couple hundred...but $6,000? No way. I'd have to have
>> some seriously proprietary kickass scripts that cost me a huge investment
>> in time/money to develop to blow $6,000 just on keeping people from
>> copying/tweaking them. Even then, they're just scripts. It'd be nice for
>> some encapsulated functionality, say, for database access, but
>> still, for $6,000 + runtime client? Nah, PHP code's just not that complex
>> and for $6,000 I can set up a number of unique users in the database.
>>
>> -Szii
>>
>
>Well, without the Encoder the entire *possibility* of "seriously proprietary
>kickass scripts" that people distribute and sell is out of the question.
>Who said it was for the small developer? For them, there's the
>Commercial Subscription plan. The Encoder is for companies whose
>business is selling such PHP apps (among other good solutions
>as well).
>
>And the Encoder allows for better separation of business and
>presentation logic... hell, you could even implement a sort
>of business logic PHP "servlet".
>--
>===========================================================================
> Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/
> "Casanova will have many weapons; To beat him you will
> have to have more than forks and flatulence."
>
My question is-
Does the encoder license permit a company to purchase the license, and then optionally
encode php for third parties?
Can I, for example, encode purchase the encoder, and then make a deal with John who
can't afford the encoder to encode John's web application for $150 and give John the
encoded version?
The answer, unfortunately, is no, at least as I read the commercial license.
This is really too bad, if you ask me- as there are a lot of really bright kids out
there who have seen that the Open Source model, while very noble and absolutely loved,
doesn't always pay. Why then, should they develop using php if they are not capable of
protecting their code if that's their choice?
They'll be using Java or C/C++ or perl (which can be encoded for a lot less).
There needs to be a solution where those who do not yet have big bucks can take
advantage of the encoder to protect what their mind has conceived. Otherwise, they
won't use php (or their code will be ripped off if its really really good) and zend
will lose future market as these brilliant minds move towards affordable technology to
protect what their intellectual work.
Charge $6000 to the big companies, I have no problem with that. I personally would be
willing to pay that if web applications was my business. But at the same time, allow
those who don't necessarily need to have the encoder but just want some code encoded
to have an affordable solution.
On Thursday, January 25, 2001, at 05:26 AM, Sander Pilon wrote:
>
> >
> > Hello,
> >
> > What do you think about Zend position?
> > http://php.weblogs.com/
> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
> >
>
> I think that if Zend wants to sell it for $6000, then they have all right
> to. These guys have worked hard, and they deserve some cash for it.
>
> If people can't afford it at $6000, then that's their problem. Software is
> intellectual property, it shouldn't be free, and authors should be able to
> charge any price for it they want to charge for it.
>
> But, I don't think it's a wise decision to sell it at $6000, personally I
> think I would sell it between $1000 and $4000, but that's just me. ($6000 is
> a bit on the high side, considering what alternatives one haves for that
> price, and considering that anyone who paid $1000 a year back (I recall
> something about 'sponsoring') gets it all.)
>
> -S
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
Abriasoft Senior Developer
(510) 623-9726x357
Fax: (510) 249-9125
please, please take this discussion elsewhere.
if you have questions for the zend guys about their pricing and want to
lecture them on what you think the right pricing is, there are a number
of message boards on their site that are more suitable.
if you want to explore alternatives to the zend cache and encoder
products, take a look at the bware 'afterburner' cache and apc (whose
next release will have encoder-like functionality). search freshmeat for
more information on those projects. there is a mailing list set up for
the discussion of apc, at least.
jim
> Well, without the Encoder the entire *possibility* of "seriously proprietary
> kickass scripts" that people distribute and sell is out of the question.
Let's not go overboard here. You can build and sell serious stuff without
an encoder. Obfuscating the code is not a requirement for all people. A
usage license attached to the code that specifies what the client can do
with it is often all it should take. If you really are building serious
stuff that you sell to serious customers, then they are not likely to
violate a license to save a few hundred dollars.
If there are some things you really need to hide, and perhaps also really
need to make fast, then write yourself a PHP extension in C that
implements this critical logic and load that. This gives you a nice
performance boost and you can still let your customer modify the
look-and-feel part of the application.
And yes, the Zend encoder is another approach, but saying it is out of the
question to do anything like this without the encoder is a bit misleading
as far as I am concerned.
-Rasmus
Please see bottom of message for remove instructions. What you are about
to read is tried,
true, poven and effective. Have you ever tried or consideredmaking money using the
medium of the internet? Are you marketing or promoting a business opportunity or
product
online? There is a LOT of money to be made on the internet and in reality, almost
anyone
can do it!
Why not get your share? Read on if you would like to know exactly how to begin making
money online
almost right away!
FREEDOM - Working on the internet allows you the freedom to work at home or
wherever else you keep a computer with an internet connection.
FLEXIBILITY - Work when you want, choose your own hours! No time clocks here! Spend
more time with your family, supplement your current income or maybe even quit your job
to
work full time on the internet! Two years ago I began searching the internet for
online
business opportunities, my aim was to to supplement my fairly average working wage.
With
no previous
experience or knowledge, I didn't know if it was actually possible to make money on
line at
all. I had heard
all kinds of stories of untold riches and instant moneymakers, no doubt you have
yourself.
It's not hard
to find all kinds of business opportunities, a simple engine search on "business
opportunity"
will bring up thousands. After joining various business opps, bieng scammed and
reading
LOTS of
information I came to a conclusion : There definately IS money to be made on the
internet,
in fact there
are HUGE amounts but lets not get carried away. The secret is to have the right
system,
you must use the right method for marketing and promoting your business. Stay well
away
from
deals which sound too good to be true, more often than not they are scams. It's not
hard to
get
suckered in by flashy ads promising the earth in return for very little effort.
METHOD - You must promote your business to as many people as you can, the more
exposure the more money you will generate. Classified sites, FFA sites and search
engine
submissions are all great to mess around with but are not worth the time you put in.
Replies,
hits and sales from these advertising methods are dismal to say the least. Opt in
lists are
much the
same, so many people use these methods that the chances of your sales ad bieng noticed
are
slim.
The moment I discovered BULK EMAILING my profits soared literally overnight. Bulk
mailing reaches your your target customers and reaches them quickly and efficiently.
Within
a few weeks I had recieved my first paycheck and I was hooked!
To save you the gruelling and lengthy task of learning to make money online, I have
outlined the full and detailed system for you. I would gaurantee this information, but
I am not
charging for it anyway! Its yours FREE!
- First you need the right business opportunity or product to sell. You can search
around for
one yourself, BE AWARE of scams. I will refer you to a great business opp later in
this
message.
- You need to write a killer ad to grab peoples attention, try different ads and gauge
the
responses. .
- To send bulk mail you need a reliable bulk mailing programme, I will refer you to a
great
one later in this message. Once again, there are many different programmes around and
some are better than others. They can range in cost from FREE to $3000. The free
programmes
tend to be slow and unreliable, they also blatantly expose your dialup ISP causing
more
problems
than they are worth. The best solution is a low cost mailer which masks your dialup
ISP and
sends about
5000 emails per hour. I will refer you to the best bulk mail programme for your
purposes later
in
this message.
- You need loads and loads of fresh (preferrably targeted) email adresses to send your
ad to.
No doubt you will find offers all over the place selling email lists. DO NOT buy these
lists
whatever you do. A great one I have seen is 1 000 000 email adresses for $30, most of
these adresses are old and full of undeliverables. I will tell you how to get your
adresses
later in this message.
- You need a free webbased email account, there are hundreds just do an engine search
or
go to: http://www.fepg.net/search.html
Try to get a POP3 accessable one, this means that you can access your webmail from
your
computers mail programme eg, outlook, eudora. The reason for the webbased email is to
recieve removal requests and enquiries. You must always supply a valid email adress
with
any bulk mail you send out.You must always honour removal requests and give people an
option to be
removed from any possible future mailing.
-POP 3 Adress Extractor - The process of collecting adresses from removal requests is
very
lengthy and tedious work nevertheless must be done after EVERY mailing. Personally, I
laboured through this task every day to compile my remove lists. After stumbling
across a
POP 3 extractor, things instantly became MUCH easier! This simple programme runs from
your desktop. It logs into your POP 3 accessable email account and collects all email
adresses
from all of the messages and then saves them into a file. There is no simpler way to
collect
your remove adresses! It even deletes the messages as it collects the adresses from
them,
your
inbox is left empty and ready for next time.This programme saves you countless hours
and
lets you
spend more time on other tasks. POP 3 Extractor normally sells for over $50, if you
would
like it
FREE please read on!
- You will need a list management programme. These programmes are designed
specifically
for bulk mail lists. They allow you to manage, organise, clean removes, and save your
lists.
Your remove's can be easily stored and new lists can be purged of these unwanted
adresses!
They are worth thier weight in gold! For a FREE email list manager please read on!
- You need free webspace. You should never link directly to your business URL from
your
email ad. Some people like to complain to the webhost of the business that you are
spamming and try to have you booted off. To pevent bieng booted off, get yourself some
free webspace.
Design a simple page linking to your product or business URL, it's very easy to set up
a
webpage
as most hosts offer design wizrds to guide you through. If you get booted off your
free
website,
simply sign up for another!Link to your free webspace in your initial email ad.
To find a free website go to http://www.freewebspace.net/ or find your own through an
engine search.
If you prefer you can ask the reader to reply to your ad with a request for "more
info"
instead of sending them to a website. You can then direct them to your business site
directly as you have proof of thier request ( always keep the request message as
proof, you
can also follow
them up later with a follow up ad)
-You need a "throwaway" dialup ISP. There are people out there who will check you
email
properties to find out who your ISP is. They will then complain to your ISP and they
may
close your account. ISP's don't like people sending bulk mail as it uses up a lot of
server
space,
remember you will be sending up to 20 000 emails per night. Personally I like to send
a
maximum of 10 000
per night, it seems to keep the complaints to a reasonable level.
This occasionally happens so it is a good idea to have a disposable account to use for
your
mailing. Then if it is shut down you still have your main, everyday account still.
Then you
can simply search around for another disposable! There are hundreds around, they vary
depending on where you are.It is up to you to search these out.
Using the above methods you WILL see results right away. Your degree of success
depends on the grab of you ad, your product and your persistance. It took me a couple
of
years to perfect these methods, it will take you a lot less than after reading this!
Even if you are a newby (beginner) you will see results in a short period of time. The
best
advice
I can give now is to take your time. There is no need to rush into it, take your time
and set
up everything properly. Things run much more smoothly if you plan. If you fail to
plan, you
plan to fail!
As I promised earlier I can supply you with the following:
BUSINESS OPPORTUNITY
BULK EMAIL PROGRAMME
FREE POP 3 EXTRACTOR
FRESH EMAIL LISTS
FREE LIST MANAGEMENT PROGRAMME
I will be happy to send you the BEST available!
You won't have to hunt around trying this and that, you will start from scratch with
the BEST
system.To separate window shopperts from time wasters I am asking a $10 fee for the
information. It is a small price to pay for the solid backbone you will recieve for
your
business. The
information you have read so far is worth well over $10 itself! You will recieve your
information by email
within 12 hours of payment.I will be available to answer any questions and get you up
and
running, you won't be left on your own. I want you to succeed! To make your secure
payment online
go to: http://www.geocities.com/starterkit2000au/EXEL.html
Join my free newsletter MoneyTree for tips and hints, you can also place a free 100
word
ad for joining.To subscribe, send an email to [EMAIL PROTECTED] with "subscribe"
as
the
subject.
This message was posted as you have visited my site or requested information from me
at
some time.
To unsubscribe from any possible future mailing, send an email to
[EMAIL PROTECTED] with "unsubscribe" as the subject
Hi Postmaster,
how about letting onl people post to the list who are subscribed to?
At 01:00 26.01.2001, NEWS!! said:
--------------------[trash]--------------------
> Please see bottom of message for remove instructions. What you are about
>to read is tried,
>true, poven and effective. Have you ever tried or consideredmaking money
>using the
>medium of the internet? Are you marketing or promoting a business
>opportunity or product
--------------------[trash]--------------------
...ebird
>O Ernest E. Vogelsinger
(\) http://www.1-at-web.at/
^ ICQ# 13394035
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ernest E Vogelsinger) wrote:
> Hi Postmaster,
>
> how about letting onl people post to the list who are subscribed to?
For some of us (who don't abuse the list by posting spam), the news
interface to such a busy list is a godsend. Forcing everyone to subscribe
would only penalize many legitimate readers/posters while presenting little
real obstacle to the spammers. Similar garbage has appeared on every
mailing list I've ever been on. Even the moderated ones let ones slip
through from time-to-time. There must be a more effective solution. Does
Ezmlm support some form of spam-filtering, perhaps?
--
CC
Perhaps not 100% php but still!
Is there any way I could ping all whois servers that exist. Something
like whois.* ??? I am trying to ind a whois server that holds .ba domain
names information. I found some research and found that it should be
held at whois.ripe.net but I have tried and nothing found. I have tried
whois.nic.ba and no luck. .ba is for Bosnia and Herzegovina? Is there a
european server/db that holds all euro domain info??
Thanks
Ajdin
Ajdin,
I know this is a little off topic but for your information 'whois.ripe.net'
provide information for the .ba TLD
I too am looking for a database of Top Level Domains around the world so if
anyone knows of one I would be very much obliged If I could have a copy.
Kind Regards
Andy Woolley
www.databasewatch.com
----- Original Message -----
From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 2:08 PM
Subject: [PHP] whois
> Perhaps not 100% php but still!
>
> Is there any way I could ping all whois servers that exist. Something
> like whois.* ??? I am trying to ind a whois server that holds .ba domain
> names information. I found some research and found that it should be
> held at whois.ripe.net but I have tried and nothing found. I have tried
> whois.nic.ba and no luck. .ba is for Bosnia and Herzegovina? Is there a
> european server/db that holds all euro domain info??
>
> Thanks
>
> Ajdin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
At 15:13 25.01.2001, Andy Woolley said:
--------------------[snip]--------------------
>I know this is a little off topic but for your information 'whois.ripe.net'
>provide information for the .ba TLD
>
>I too am looking for a database of Top Level Domains around the world so if
>anyone knows of one I would be very much obliged If I could have a copy.
--------------------[snip]--------------------
http://www.cert.org/tech_tips/whois_by_domain.txt
# This document contains pointers to domain name registry databases
# that can be used to locate point of contact information for Internet
# sites.
Specifically this is registered for "ba":
Top-level domain : ba
Description : Bosnia and Herzegowina
NIC handle : ba6-dom
WHOIS server :
RWHOIS server :
Web-based query :
E-mail query :
Last updated : 21 Jun 2000 12:54:00 -0400
More about "ba": a query for "handle ba6-dom" at the network solutions
whois server(funny enough it can be found there)
Registrant:
Bosnia-Hercegovina top-level domain (BA6-DOM)
University Teleinformatic centre - UTIC
Skenderija 68
Sarajevo, Bosnia-Hercegovina 71000
BA
Domain Name: BA
Administrative Contact:
Delalic, Sedad (SD13173) [EMAIL PROTECTED]
UTIC
Skenderija 70
Sarajevo, Bosnia-Herzegovina 71000
BA
+387 71 667 830 (FAX) +387 71 213 773
Technical Contact:
Okanovic, Vensada (VO574) [EMAIL PROTECTED]
UTIC
Skenderija 70
Sarajevo, Bosnia-Herzegovina 71000
BA
+387 71 667 830 (FAX) +387 71 213 773
Record last updated on 19-Oct-1999.
Record expires on 04-Jun-2001.
Record created on 14-Aug-1996.
Database last updated on 24-Jan-2001 09:55:19 EST.
Domain servers in listed order:
NS.BA 195.130.35.5
SAVA.UTIC.NET.BA 195.130.35.3
NS.EU.NET 192.16.202.11
NS.RIPE.NET 193.0.0.193
AUTH03.NS.UU.NET 198.6.1.83
MUNNARI.OZ.AU 128.250.1.21
...ebird
>O Ernest E. Vogelsinger
(\) http://www.1-at-web.at/
^ ICQ# 13394035
On Thu, Jan 25, 2001 at 03:37:26PM +0100, Ernest E Vogelsinger wrote:
> At 15:13 25.01.2001, Andy Woolley said:
> --------------------[snip]--------------------
> >I know this is a little off topic but for your information 'whois.ripe.net'
> >provide information for the .ba TLD
> >
> >I too am looking for a database of Top Level Domains around the world so if
> >anyone knows of one I would be very much obliged If I could have a copy.
There's a very cool service out there, you can go to for instance
ba.whois-servers.net to find server for .ba.
So you can basically go to ${TLD}.whois-servers.net to find server for
$TLD.
Stig
On Thu, 25 Jan 2001, Andy Woolley wrote:
> Ajdin,
>
> I know this is a little off topic but for your information 'whois.ripe.net'
> provide information for the .ba TLD
Ripe has only 10 .ba domains registred in their db :(. It is not up to date.
Ajdin
>
> I too am looking for a database of Top Level Domains around the world so if
> anyone knows of one I would be very much obliged If I could have a copy.
>
> Kind Regards
>
> Andy Woolley
> www.databasewatch.com
>
> ----- Original Message -----
> From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 25, 2001 2:08 PM
> Subject: [PHP] whois
>
>
> > Perhaps not 100% php but still!
> >
> > Is there any way I could ping all whois servers that exist. Something
> > like whois.* ??? I am trying to ind a whois server that holds .ba domain
> > names information. I found some research and found that it should be
> > held at whois.ripe.net but I have tried and nothing found. I have tried
> > whois.nic.ba and no luck. .ba is for Bosnia and Herzegovina? Is there a
> > european server/db that holds all euro domain info??
> >
> > Thanks
> >
> > Ajdin
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
All of them servers give my error 111, not authorised :(. Dead end again
:). I have been trying to do sort this out but no luck.
Any way
Thanks
On Thu, 25 Jan 2001, Ernest E Vogelsinger wrote:
> At 15:13 25.01.2001, Andy Woolley said:
> --------------------[snip]--------------------
> >I know this is a little off topic but for your information 'whois.ripe.net'
> >provide information for the .ba TLD
> >
> >I too am looking for a database of Top Level Domains around the world so if
> >anyone knows of one I would be very much obliged If I could have a copy.
> --------------------[snip]--------------------
>
> http://www.cert.org/tech_tips/whois_by_domain.txt
>
> # This document contains pointers to domain name registry databases
> # that can be used to locate point of contact information for Internet
> # sites.
>
> Specifically this is registered for "ba":
>
> Top-level domain : ba
> Description : Bosnia and Herzegowina
> NIC handle : ba6-dom
> WHOIS server :
> RWHOIS server :
> Web-based query :
> E-mail query :
> Last updated : 21 Jun 2000 12:54:00 -0400
>
>
> More about "ba": a query for "handle ba6-dom" at the network solutions
> whois server(funny enough it can be found there)
>
> Registrant:
> Bosnia-Hercegovina top-level domain (BA6-DOM)
> University Teleinformatic centre - UTIC
> Skenderija 68
> Sarajevo, Bosnia-Hercegovina 71000
> BA
>
> Domain Name: BA
>
> Administrative Contact:
> Delalic, Sedad (SD13173) [EMAIL PROTECTED]
> UTIC
> Skenderija 70
> Sarajevo, Bosnia-Herzegovina 71000
> BA
> +387 71 667 830 (FAX) +387 71 213 773
> Technical Contact:
> Okanovic, Vensada (VO574) [EMAIL PROTECTED]
> UTIC
> Skenderija 70
> Sarajevo, Bosnia-Herzegovina 71000
> BA
> +387 71 667 830 (FAX) +387 71 213 773
>
> Record last updated on 19-Oct-1999.
> Record expires on 04-Jun-2001.
> Record created on 14-Aug-1996.
> Database last updated on 24-Jan-2001 09:55:19 EST.
>
> Domain servers in listed order:
>
> NS.BA 195.130.35.5
> SAVA.UTIC.NET.BA 195.130.35.3
> NS.EU.NET 192.16.202.11
> NS.RIPE.NET 193.0.0.193
> AUTH03.NS.UU.NET 198.6.1.83
> MUNNARI.OZ.AU 128.250.1.21
>
>
> ...ebird
>
> >O Ernest E. Vogelsinger
> (\) http://www.1-at-web.at/
> ^ ICQ# 13394035
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
On Thu, 25 Jan 2001, Jacky@lilst wrote:
> $sql1 = "insert into firsttable (firstname, lastname) values('Jack','Chan')";
> $resultsql1 = mysql_query($sql1);
> $sqlLastID = "select LAST_INSERT_ID() from firsttable";
> $resultlast = mysql_query($sqlLastID);
> $FirstLast = mysql_result($resultlast,0,0);
<snip>
First of all, let's rewrite your code.
<?PHP
// I'm assuming these two lines are in your code, just not
// in your post. Pay special note to the $CONN variable.
$CONN = mysql_connect("host", "user", "pass");
mysql_select_db("somedatabase", $CONN);
// Notice here that I don't care about the result mysql
// sends back. On inserts, it doesn't matter. Also
// notice that I'm telling mysql which connection to use.
$sql =
"INSERT INTO firsttable (firstname,lastname)\n".
"VALUES ('Jack', 'Chan')";
mysql_query($sql, $CONN);
// Now, we'll get your last insert. Notice that I changed
// your mysql_result into a mysql_fetch_array? The code is
// just a tad more scalable that way - in case you want the
// ID and something else if you redo your code.
$sql =
"SELECT LAST_INSERT_ID() AS nLast\n".
" FROM firsttable";
$result = mysql_query($sql, $CONN);
$row = mysql_fetch_array($result);
// ALWAYS clean up after a select. Especially if you do more than
// one in a page.
mysql_free_result($result);
// Here's your last insert id.
$nLastInsert = $row["nLast"];
?>
It's *very important* that you specify which connection you want mysql to
use! I can't stress this enough. If more than one connection gets opened
(you use phplib for instance, it opens its own connection), and if you
don't specify which you're using, you'll get random results, and you'll
interfere with the *other* connection. Just because PHP says the
connection is optional doesn't mean it always is. Use it anyway.
I say this because you had a later post complaining about how mysql said
you didn't select a database. Maybe you didn't.
This goes for everyone here. Not specifying which connection is in use is
*sloppy* and may lead to bugs you can't track down! At the last place I
worked, we started using phplib after everything was written, and it
*broke everything* because nobody was paying attention to the connections
they opened. We had to audit the code for days to track everything down.
Do yourself a favor *right now* and grep -r your codebase for all database
related functions. (grep -ir "mysql_" *) and FIX THEM NOW. That way,
you'll be safe knowing that it's *your* connection that's in use.
And always remember, mysql_error($CONN) is your friend.
Cheers!
--
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Shaun M. Thomas INN Database Programmer |
| Phone: (309) 743-0812 Fax : (309) 743-0830 |
| Email: [EMAIL PROTECTED] AIM : trifthen |
| Web : www.townnews.com |
| |
| "Most of our lives are about proving something, either to |
| "ourselves or to someone else." |
| -- Anonymous |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
At 02:26 PM 1/25/01 +0100, you wrote:
> > Hello,
> > What do you think about Zend position?
> > http://php.weblogs.com/
> > http://zend.com/phorum/read.php?num=3&id=6277&loc=0&thread=6277
>
>I think that if Zend wants to sell it for $6000, then they have all right
>to. These guys have worked hard, and they deserve some cash for it.
This looks like a niche that someone can fill. I'm hoping that someone by
now has purchased the Zend Encoder Unlimited ($6K!) and would be willing to
do a 'one-off' encoding for other people for a small price ($10-30). If
that is the case, and someone is willing to do that, I would be grateful if
they would contact me as I have a few 'free-scripts' that need encoding.
Paul
Next stupid question: How do you enable track_vars when you don't have
access to any configuration files? Can it be done with an .htaccess or in
the script itself?
Also, if running Apache/php4/etc. on your home (windows 98 & 2000) computers
just for development purposes, if you go to http://localhost/etc and a
script attempts to set a cookie, will it work properly? I'm having a lot of
trouble with getting cookies to appear at all before uploading, yet this
isn't happneing on my hosting account (unix/apache/php3).
----- Original Message -----
From: "Toby Butzon" <[EMAIL PROTECTED]>
To: "April" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 4:07 PM
Subject: Re: [PHP] Cookie semi-security.
> Enable track_vars in php's config and use
> $PHP_COOKIE_VARS['cookie_id'] to get the value of the
> cookie.
>
> --Toby
>
> ----- Original Message -----
> From: "April" <[EMAIL PROTECTED]>
> To: "PHP General" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 24, 2001 5:06 PM
> Subject: [PHP] Cookie semi-security.
>
>
> > Stupid question, but I'm stumped.
> >
> > I'm passing a persons id through a cookie, then using that
> to determine if
> > they're allowed to be doing what they're trying to do
> (change listings,
> > etc.). Right now, I'm getting the value of the cookie by
> just accessing
> > $cookie_id, without anything fancy. The problem is, if
> someoen just denies a
> > cookie and adds ?cookie_id=9 at the end, they might as
> well be the person
> > with an id of 9. Is there a way for me to check and be
> sure that that
> > value came from a cookie, and not the url bar?
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
Hello, So I think I've found 3 ways to describe the HTML Doc as "HTML".
Which one is the best?
1) Via MetTag (this was generated in Dreamweaver):
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
2) Print Statement at top of page:
print "Content-type: text/html\n\n";
3) Using the PHP Header command:
header( "Content-type: test/html" );
What do you think?
Addressed to: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Thu, 25 Jan 2001
08:36:43 -0700
>
> Hello, So I think I've found 3 ways to describe the HTML Doc as
> "HTML". Which one is the best?
>
> 1) Via MetTag (this was generated in Dreamweaver):
>
> <head> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"> </head>
>
> 2) Print Statement at top of page:
>
> print "Content-type: text/html\n\n";
>
> 3) Using the PHP Header command:
>
> header( "Content-type: test/html" );
>
> What do you think?
>
4) Do nothing. text/html is the default content type for php. A
Content-type: text/html header is sent for you unless you specify
something else.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
How would I go about pulling e-mail addresses from a database and sending
and e-mail using that list?
Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094
'87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!!
http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!!
http://www.s-series.org/htm/firestorm/firestorm.htm
Racing by the Grace of God!!
Something like this (OTOH so may need some tweaking but should be generally
ok):
<?php
$counter = 0;
$starttime = time();
$subject = "Spam!";
$message = "This is a genuine money-making opportunity.\n";
$message .= "blah blah blah blah\n";
$query = mysql_query("SELECT * FROM TheNameOfTheTableFullOfEmailAddresses",
$db);
if ($result = mysql_fetch_array($query)) {
do {
$counter++;
$mailto = $result["EmailAddressField"];
mail ("$mailto", "$subject", "$message");
} while ($result = mysql_fetch_array($query));
$endtime = time();
$timetaken = $endtime - $starttime;
?>
<p><b>Done!</b></p>
<p><?php echo $counter; ?> e-mails sent in <?php echo $timetaken; ?>
seconds.</p>
<?php
}
?>
HTH
Jon
-----Original Message-----
From: Kenneth R Zink II [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2001 15:28
To: PHP
Subject: [PHP] MySQL email function
How would I go about pulling e-mail addresses from a database and sending
and e-mail using that list?
Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094
'87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!!
http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!!
http://www.s-series.org/htm/firestorm/firestorm.htm
Racing by the Grace of God!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Please ,
I don't know how to declare a function....how is the scope??
In C++ is for example...
Void test(int a, int b)
{
.....
}
But...
In php???? HOW DO I DECLARE A FUNCTION OR PROCEDURE????
Bruno....Brazil
Hello Bruno!
See the following URL in the PHP manual:
http://www.php.net/distributions/bigmanual.html#functions
HTH
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]
-----Original Message-----
From: Bruno Freire [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 11:40 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] How do I to declare a function or procedure in PHP???
Please ,
I don't know how to declare a function....how is the scope??
In C++ is for example...
Void test(int a, int b)
{
.....
}
But...
In php???? HOW DO I DECLARE A FUNCTION OR PROCEDURE????
Bruno....Brazil
function function_name($input, $inputtwo) {
// stuff goes in here.
}
and then call it with:
function_name($input, $inputtwo);
----- Original Message -----
From: "Bruno Freire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 10:39 AM
Subject: [PHP] How do I to declare a function or procedure in PHP???
> Please ,
> I don't know how to declare a function....how is the scope??
>
> In C++ is for example...
>
> Void test(int a, int b)
> {
> .....
>
> }
>
> But...
>
> In php???? HOW DO I DECLARE A FUNCTION OR PROCEDURE????
>
> Bruno....Brazil
>
Is there an easy way to do this? I know that SQL Server can export a comma
delimited file, can mySQL import this? I imagine the PHP will be easy to
modify as long as the field names are the same.
Thanks,
jb
Jason Bouwmeester
New Media Consultant
InterVisual
Suite 200, 709 - 11th Ave SW
Calgary, AB T2R 0E3
Ph: 403.264.9199
Fax: 403.264.9225
www.intervisual.com
"Internet Solutions Developer"
1. Generate SQL script for your database in the MS SQL Server Enterprise
Manager
2. Modify generated SQL to be compatible with MySQL
3. Run the script on your MySQL server
Pretty easy if you aren't using any feature of MS SQL that MySQL doesn't
support (for example stored procedures)
Another way is to connect both the servers to Access using ODBC and just
copy the tables - it's the easiest way to do that but resulting MySQL tables
are quite screwed up.
Pavel
----- Original Message -----
From: "Jason Bouwmeester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 4:44 PM
Subject: [PHP] SQL Server DB to mySQL DB
> Is there an easy way to do this? I know that SQL Server can export a comma
> delimited file, can mySQL import this? I imagine the PHP will be easy to
> modify as long as the field names are the same.
>
> Thanks,
> jb
>
> Jason Bouwmeester
> New Media Consultant
> InterVisual
>
> Suite 200, 709 - 11th Ave SW
> Calgary, AB T2R 0E3
> Ph: 403.264.9199
> Fax: 403.264.9225
> www.intervisual.com
> "Internet Solutions Developer"
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Just did this to a 65mb fixed width file.
What I did was get it into a csv file via perl :)
Then I created the db table.
Then I used:
load data infile "/file.csv" into table blah fields terminated by ',' ;
then go ahead and create any indexes etc...
!works slick!
> Is there an easy way to do this? I know that SQL Server can export a comma
> delimited file, can mySQL import this? I imagine the PHP will be easy to
> modify as long as the field names are the same.
myODBC - what is that useful for, or is there anywhere I can get
documentation or a description on it?
Thanks again,
jb
-----Original Message-----
From: Pavel Kalian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 8:55 AM
To: Jason Bouwmeester
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] SQL Server DB to mySQL DB
1. Generate SQL script for your database in the MS SQL Server Enterprise
Manager
2. Modify generated SQL to be compatible with MySQL
3. Run the script on your MySQL server
Pretty easy if you aren't using any feature of MS SQL that MySQL doesn't
support (for example stored procedures)
Another way is to connect both the servers to Access using ODBC and just
copy the tables - it's the easiest way to do that but resulting MySQL tables
are quite screwed up.
Pavel
----- Original Message -----
From: "Jason Bouwmeester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 4:44 PM
Subject: [PHP] SQL Server DB to mySQL DB
> Is there an easy way to do this? I know that SQL Server can export a comma
> delimited file, can mySQL import this? I imagine the PHP will be easy to
> modify as long as the field names are the same.
>
> Thanks,
> jb
>
> Jason Bouwmeester
> New Media Consultant
> InterVisual
>
> Suite 200, 709 - 11th Ave SW
> Calgary, AB T2R 0E3
> Ph: 403.264.9199
> Fax: 403.264.9225
> www.intervisual.com
> "Internet Solutions Developer"
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
myODBC lets you connect to a mysql databas3e via the ODBC protocol. So
you can create a mysql database connection (on a windows machine) and
use that connection in a MSAccess environment. Or pull data directly
from mysql into an Excel spreadsheet. Plus i am sure ASP and stuff
like that can use it as well (by why would you care about ASP???) ;)
On Thu, Jan 25, 2001 at 09:08:36AM -0700, Jason Bouwmeester wrote:
> myODBC - what is that useful for, or is there anywhere I can get
> documentation or a description on it?
>
> Thanks again,
> jb
>
> -----Original Message-----
> From: Pavel Kalian [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 8:55 AM
> To: Jason Bouwmeester
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] SQL Server DB to mySQL DB
>
>
> 1. Generate SQL script for your database in the MS SQL Server Enterprise
> Manager
> 2. Modify generated SQL to be compatible with MySQL
> 3. Run the script on your MySQL server
>
> Pretty easy if you aren't using any feature of MS SQL that MySQL doesn't
> support (for example stored procedures)
>
> Another way is to connect both the servers to Access using ODBC and just
> copy the tables - it's the easiest way to do that but resulting MySQL tables
> are quite screwed up.
>
> Pavel
>
> ----- Original Message -----
> From: "Jason Bouwmeester" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 25, 2001 4:44 PM
> Subject: [PHP] SQL Server DB to mySQL DB
>
>
> > Is there an easy way to do this? I know that SQL Server can export a comma
> > delimited file, can mySQL import this? I imagine the PHP will be easy to
> > modify as long as the field names are the same.
> >
> > Thanks,
> > jb
> >
> > Jason Bouwmeester
> > New Media Consultant
> > InterVisual
> >
> > Suite 200, 709 - 11th Ave SW
> > Calgary, AB T2R 0E3
> > Ph: 403.264.9199
> > Fax: 403.264.9225
> > www.intervisual.com
> > "Internet Solutions Developer"
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
Christopher R. Moewes-Bystrom
[EMAIL PROTECTED]
http://www.moewes.com
http://www.linuxnovice.org
myODBC lets you connect to a mysql databas3e via the ODBC protocol. So
you can create a mysql database connection (on a windows machine) and
use that connection in a MSAccess environment. Or pull data directly
from mysql into an Excel spreadsheet. Plus i am sure ASP and stuff
like that can use it as well (by why would you care about ASP???) ;)
On Thu, Jan 25, 2001 at 09:08:36AM -0700, Jason Bouwmeester wrote:
> myODBC - what is that useful for, or is there anywhere I can get
> documentation or a description on it?
>
> Thanks again,
> jb
>
> -----Original Message-----
> From: Pavel Kalian [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 8:55 AM
> To: Jason Bouwmeester
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] SQL Server DB to mySQL DB
>
>
> 1. Generate SQL script for your database in the MS SQL Server Enterprise
> Manager
> 2. Modify generated SQL to be compatible with MySQL
> 3. Run the script on your MySQL server
>
> Pretty easy if you aren't using any feature of MS SQL that MySQL doesn't
> support (for example stored procedures)
>
> Another way is to connect both the servers to Access using ODBC and just
> copy the tables - it's the easiest way to do that but resulting MySQL tables
> are quite screwed up.
>
> Pavel
>
> ----- Original Message -----
> From: "Jason Bouwmeester" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 25, 2001 4:44 PM
> Subject: [PHP] SQL Server DB to mySQL DB
>
>
> > Is there an easy way to do this? I know that SQL Server can export a comma
> > delimited file, can mySQL import this? I imagine the PHP will be easy to
> > modify as long as the field names are the same.
> >
> > Thanks,
> > jb
> >
> > Jason Bouwmeester
> > New Media Consultant
> > InterVisual
> >
> > Suite 200, 709 - 11th Ave SW
> > Calgary, AB T2R 0E3
> > Ph: 403.264.9199
> > Fax: 403.264.9225
> > www.intervisual.com
> > "Internet Solutions Developer"
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
Christopher R. Moewes-Bystrom
[EMAIL PROTECTED]
http://www.moewes.com
http://www.linuxnovice.org
Thanks, was just trying to figure out what I really needed to
download/install to run mySQL with PHP on my W2K box.
jb
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 9:26 AM
To: Jason Bouwmeester; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] myODBC
myODBC lets you connect to a mysql databas3e via the ODBC protocol. So
you can create a mysql database connection (on a windows machine) and
use that connection in a MSAccess environment. Or pull data directly
from mysql into an Excel spreadsheet. Plus i am sure ASP and stuff
like that can use it as well (by why would you care about ASP???) ;)
On Thu, Jan 25, 2001 at 09:08:36AM -0700, Jason Bouwmeester wrote:
> myODBC - what is that useful for, or is there anywhere I can get
> documentation or a description on it?
>
> Thanks again,
> jb
>
> -----Original Message-----
> From: Pavel Kalian [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 8:55 AM
> To: Jason Bouwmeester
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] SQL Server DB to mySQL DB
>
>
> 1. Generate SQL script for your database in the MS SQL Server Enterprise
> Manager
> 2. Modify generated SQL to be compatible with MySQL
> 3. Run the script on your MySQL server
>
> Pretty easy if you aren't using any feature of MS SQL that MySQL doesn't
> support (for example stored procedures)
>
> Another way is to connect both the servers to Access using ODBC and just
> copy the tables - it's the easiest way to do that but resulting MySQL
tables
> are quite screwed up.
>
> Pavel
>
> ----- Original Message -----
> From: "Jason Bouwmeester" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 25, 2001 4:44 PM
> Subject: [PHP] SQL Server DB to mySQL DB
>
>
> > Is there an easy way to do this? I know that SQL Server can export a
comma
> > delimited file, can mySQL import this? I imagine the PHP will be easy to
> > modify as long as the field names are the same.
> >
> > Thanks,
> > jb
> >
> > Jason Bouwmeester
> > New Media Consultant
> > InterVisual
> >
> > Suite 200, 709 - 11th Ave SW
> > Calgary, AB T2R 0E3
> > Ph: 403.264.9199
> > Fax: 403.264.9225
> > www.intervisual.com
> > "Internet Solutions Developer"
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
Christopher R. Moewes-Bystrom
[EMAIL PROTECTED]
http://www.moewes.com
http://www.linuxnovice.org
Hi,
I've had alot of difficulties in compiling a module in PHP.
Finally I'm almost there (I think).
I've followed Lerdorf's libstock example. But whenever I try to run
stocks.php (from Netscape)...
I get this in apaches errorlog:
undefined symbol: zend_hash_internal_poiner_ex
The stocks example only uses zend_hash_internal_pointer_reset_ex, so I
guess that the latter is a macro for the former...
Anyhoo... Does anybody know how to resolve this issue???
TIA
Thomas
Hello php-general,
I have some problem with Zend debuger:
debug.php
<?
for ($i=0;$i<10;$i++){
echo $i."\n";
}
?>
Configuration:
Server: Apache1.3.14_Linux2.2.17_PHP 4.0.4pl1+Zend Debuger
From phpinfo()
-----------------------------------------------------------------|
| This program makes use of the Zend scripting language engine: |
| Zend Engine v1.0.4, Copyright (c) 1998-2000 Zend Technologies |
| with Zend IDE Debug Server v1.0.0, Copyright (c) 1999-2001, by |
| Zend Technologies |
-----------------------------------------------------------------|
Client: Zend IDE on Win2000
1.When i try debug local file:
IDE error message: "connection failed Unexpected end of file from server"
2.When i try start debuging with browser:
http://host/~user/debug.php?start_debug=1&debug_port=10000&debug_host=MY_IP&debug_start_session=1
Browser:
The page cannot be displayed
3.Remove start_debug=1 from url:
Browser:
0 1 2 3 4 5 6 7 8 9
Best regards,
Andrew Sitnikov
e-mail : [EMAIL PROTECTED]
GSM: (+372) 56491109
Andrew Sitnikov wrote:
>
> Hello php-general,
>
> I have some problem with Zend debuger:
>
> debug.php
> <?
> for ($i=0;$i<10;$i++){
> echo $i."\n";
> }
> ?>
>
What happens if you modify it as:
debug.php
<html><body>
<?
for ($i=0;$i<10;$i++){
echo $i."\n";
}
?>
</body></html>
> Configuration:
> Server: Apache1.3.14_Linux2.2.17_PHP 4.0.4pl1+Zend Debuger
> From phpinfo()
> -----------------------------------------------------------------|
> | This program makes use of the Zend scripting language engine: |
> | Zend Engine v1.0.4, Copyright (c) 1998-2000 Zend Technologies |
> | with Zend IDE Debug Server v1.0.0, Copyright (c) 1999-2001, by |
> | Zend Technologies |
> -----------------------------------------------------------------|
>
> Client: Zend IDE on Win2000
>
> 1.When i try debug local file:
> IDE error message: "connection failed Unexpected end of file from server"
>
> 2.When i try start debuging with browser:
>
>http://host/~user/debug.php?start_debug=1&debug_port=10000&debug_host=MY_IP&debug_start_session=1
>
> Browser:
> The page cannot be displayed
>
> 3.Remove start_debug=1 from url:
>
> Browser:
> 0 1 2 3 4 5 6 7 8 9
>
>
> Best regards,
> Andrew Sitnikov
> e-mail : [EMAIL PROTECTED]
> GSM: (+372) 56491109
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
===========================================================================
Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/
"Casanova will have many weapons; To beat him you will
have to have more than forks and flatulence."
I am wondering if it would be more efficient to store the integer value that
the php function time() returns when a transaction is inserted into the
database and then when querying the database to get certain transactions
just use basic math functions to get the certain transactions.
For example in I wanted to get all the transactions from the last 31 days
lets say there was 980026719 seconds since 1970 and the number of seconds
from the last 31 days is 2678400
select from table where time_of_trans >(980026719-2678400)
I know that the syntax isn't correct, I am just curious if this would be the
most efficient way to do this?
thanks
Randy
Addressed to: "Randy Johnson" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Randy Johnson" <[EMAIL PROTECTED]> Thu, 25 Jan 2001
11:25:52 -0500
> I am wondering if it would be more efficient to store the integer
> value that the php function time() returns when a transaction is
> inserted into the database and then when querying the database to get
> certain transactions just use basic math functions to get the certain
> transactions.
>
> For example in I wanted to get all the transactions from the last 31
> days
>
> lets say there was 980026719 seconds since 1970 and the number of
> seconds from the last 31 days is 2678400
>
If you are going to the trouble of using a database, go with it all the
way and use the date datatype it provides, along with the date
functions in the database.
>
> select from table where time_of_trans >(980026719-2678400)
SELECT whatever
FROM table
WHERE time_of_trans > SUBDATE( NOW(), INTERVAL 1 MONTH );
I can assure you considerable thought has been given to the storage of
data in the database, and the optimization of queries. The format you
enter and display is not what gets stored in the tables for a date.
One cool thing about this, it also works from the command line
interpreter, and you don't have to figure out what the current time()
is if you want to run a query by hand.
Take a look at this page if you are using MySQL.
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
Date_Format() is veryhandy!
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
[EMAIL PROTECTED] [[EMAIL PROTECTED]] wrote:
> Addressed to: "Randy Johnson" <[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
>
> ** Reply to note from "Randy Johnson" <[EMAIL PROTECTED]> Thu, 25 Jan 2001
>11:25:52 -0500
>
> > I am wondering if it would be more efficient to store the integer
> > value that the php function time() returns when a transaction is
> > inserted into the database and then when querying the database to get
> > certain transactions just use basic math functions to get the certain
> > transactions.
> >
> > For example in I wanted to get all the transactions from the last 31
> > days
> >
> > lets say there was 980026719 seconds since 1970 and the number of
> > seconds from the last 31 days is 2678400
> >
>
>
> If you are going to the trouble of using a database, go with it all the
> way and use the date datatype it provides, along with the date
> functions in the database.
But when you start using database date functions, which are
definitely different between databases, you are making your
code dependent on the particular database you write it for -
then to migrate to another database would be a major rework.
If you use a method like unix timestamp for doing your date
math with just standard > or < SQL comparison operators, then
your code is much more database independent, and switching
to a different database becomes much easier. This is just
my 2cents.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
>
>
> >
> > select from table where time_of_trans >(980026719-2678400)
>
> SELECT whatever
> FROM table
> WHERE time_of_trans > SUBDATE( NOW(), INTERVAL 1 MONTH );
>
> I can assure you considerable thought has been given to the storage of
> data in the database, and the optimization of queries. The format you
> enter and display is not what gets stored in the tables for a date.
>
>
> One cool thing about this, it also works from the command line
> interpreter, and you don't have to figure out what the current time()
> is if you want to run a query by hand.
>
> Take a look at this page if you are using MySQL.
>
>
> http://www.mysql.com/doc/D/a/Date_and_time_functions.html
>
>
> Date_Format() is veryhandy!
>
>
>
>
>
> Rick Widmer
> Internet Marketing Specialists
> http://www.developersdesk.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello all. I've spent the past month or two implementing a file upload
utility for the web based on PHP's http upload method. It works fine for
smaller files, and it's been working fine for files I've tried up to and
including 400 megs at a time. The problem I'm having is that we want to
roll this out on a center-wide scale, but that would most likely mean files
up to 1Gig being uploaded at a time. Is this possible through the http
upload process. I've been unsuccessful thus far to upload a file this large
for some reason. Upon checking the Apache error_log, I found the following
message:
FATAL: erealloc(): Unable to allocate 112568001 bytes
[error] PHP Warning: File Upload Error - No Mime boundary found after start
of file header in unknown line 0
Now, am I correct in thinking that the second line is merely a result of
the failed upload? If so, then I suppose that can be disregarded, but which
program is generating the erealloc(), Apache or PHP?
I've been following threads on File Upload for quite a while now, and all
relevent settings in the php.ini are set correctly to allow file uploads of
this size (at least in theory). All settings having to do with upload
limits are set at "2000000000", however, no documentation states what value
this setting stands for (kb, Mb, etc.), so this SHOULD roughly be equal to
2Gigs, assuming that it defaults to bytes. Also the timeout has been set to
86400 seconds, ie a 24hour period.
The current box this is running on is a Ultra 5 running Solaris 7, Apache
1.3.14, with PHP 4.0.4. It has 256 megs of ram, and the partition being
used for this test phase is 18 gigs, so size shouldn't be an issue. The
temp upload directory in the php.ini has also been set to use a temp folder
on this same partition.
PLEASE, any suggestions you have would be MUCH appreciated. Thank you in
advance for any and all replies. Hope to hear something soon!
Hi!
When I use the echo to see what is inside the list(). Instead I got the
message on screen saying "ArrayArray".
The array are being assigned first then then list come second. ie.
$test = array();
$test1 = array()
list($test,$test1);
---------------
When I do "echo list($test,$test1);", it doesn't work.
What are the better way to see the data in the array?
Thanks,
Scott
Scott Fletcher wrote:
>
> ...
>
> What are the better way to see the data in the array?
>
Maybe var_dump().
http://www.php.net/manual/en/function.var-dump.php
--
Pavel a.k.a. Papi
At 11:33 AM -0500 1/25/01, Scott Fletcher wrote:
>Hi!
>
> When I use the echo to see what is inside the list(). Instead I got the
>message on screen saying "ArrayArray".
>
> The array are being assigned first then then list come second. ie.
>
> $test = array();
> $test1 = array()
>
> list($test,$test1);
>
>---------------
> When I do "echo list($test,$test1);", it doesn't work.
>
> What are the better way to see the data in the array?
>
Are these actual program snippets? If they are then
(1) '$test1 = array()' line is missing a trailing ';'
(2) The statement 'list($test,$test1);', to the best of my knowledge,
does nothing in this context.
(3) From your echo statement, you should see the output
'list(Array,Array)' - functions and language constructs aren't
evaluated in double-quoted strings; only variables.
It would make more sense to me to have something like
$test = array('bean', 'noodle', 'wednesday');
$test1 = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot');
$foo = array($test, $test1);
Then you could display these values like so:
If you have PHP4, use print_r() or var_dump():
echo print_r($foo);
See
http://www.php.net/manual/en/function.print-r.php
http://www.php.net/manual/en/function.var-dump.php
I haven't used either of these functions, so I don't know exactly
what the output looks like. It says var_dump() was available in PHP 3
after 3.0.5, but I'm not entirely sure that's true. If it is, it must
have been undocumented for a while.
An alternative display method would be something like (a little more
cumbersome, but works in PHP3 & 4):
for ($i=0; $i<count($foo); $i++)
{
while(list($Key,$Val) = each($foo[$i]))
{
echo "foo[$i][$Key] = $Val<br>\n";
}
}
Also, instead of the
$test = array('bean', 'noodle', 'wednesday');
$test1 = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot');
$foo = array($test, $test1);
way of declaring the $foo array, you could also say
$foo = array(
array('bean', 'noodle', 'wednesday'),
array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot')
)
or
$foo[0] = array('bean', 'noodle', 'wednesday');
$foo[1] = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot');
See
http://www.php.net/manual/en/language.types.array.php
for more information.
- steve
--
+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg University of California, Davis |
| [EMAIL PROTECTED] Computer Consultant |
| http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+
Hello!
I am trying to upload the files to the sever. For files that has only one
dot such as abc.txt and 123.doc, it works fine. But when uploading files
that have more than one dot such as 123.txt.pdf, there's problem, and I
tried to echo the $userfile[i], and it is "none". Codes are attached as
following:
<FORM name="test" method="post" action="meeting_addDocs.php"
enctype="multipart/form-data">
<tr align="center">
<td valign="top" colspan="2">
<input type="file" name="userfile[]" size="18">
</td>
<td valign="top" colspan="2">
<input type="file" name="userfile[]" size="18">
</td>
</tr>
</FORM>
Thank you very much in advance.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
I need to enable a user to insert an 'NEWS' item into a mySQL table one of
the definable limits for the user is to be the date that the news is to be
displayed. Currently the collum is in a 'date' format and should be stored
in a YYYYMMDD - being Australian we are used to the exact reverse of that so
I though it best to produce a series of three select options in html and
then joing the values before inserting them
$form_date = $form_date_Year . $form_date_month . $form_date_day;
CRUX: the looping format I'm using to make the options needs to output a 2
digit number as a single digit like 1 as compared to 01 will invalidate the
date
Sample of a loop I use to output an option
<? echo"<select name=\"form_date_day\">";
$day = (date ("d"));
$daysinmonth = (date("t"));
for ($i=00;$i<$daysinmonth;$i++){
if ($i == $day) {
echo("<option SELECTED value=\"$i\">$i</option>\n");
} else {
echo("<option value=\"$i\">$i</option>\n");
}
}
echo"</select>"
?>
Any help will be apreciated
Jamie
Jamie wrote:
>
> ...
>
> <? echo"<select name=\"form_date_day\">";
> $day = (date ("d"));
> $daysinmonth = (date("t"));
> for ($i=00;$i<$daysinmonth;$i++){
> if ($i == $day) {
> echo("<option SELECTED value=\"$i\">$i</option>\n");
> } else {
> echo("<option value=\"$i\">$i</option>\n");
> }
> }
> echo"</select>"
> ?>
>
> ...
Maybe this for-cycle is doing what u want
(if i didn't misunderstood your question).
<?
for ($i=1; $i<$daysinmonth+1; $i++){
$i2 = sprintf( "%02d", $i );
echo "<option value=\"".$i2."\"".( $i2 == $day ? ' selected' : ''
).">$i2\n";
}
?>
Hope this helps.
--
Pavel a.k.a. Papi
Hi all. In the project I'm working on, I've got a table with ids that are
written based on how many records are in the table. i.e., the first record
has an ID of 1, the 50th is 50, etc. When a row gets deleted (I created a
web interface, I don't want all these members using phpMyAdmin), the ID's of
all the records after it are supposed to be decremented by one. I thought
it was working, but yesterday it didn't. Can anyone see what I'm doing
wrong?
***********
if ($delete == 1){
#delete the row
$worked = mysql_query("delete from $tablename where
$fields[0]=\"$editval\" ", $database);
if (!$worked){
echo "couldn't delete anything<p>";
}//end if
$connection = @mysql_connect("localhost",$PHP_AUTH_USER,$PHP_AUTH_PW);
$database = @mysql_select_db($databasename, $connection);
$del = mysql_query("select * from $tablename where RestID =
$restidval", $database);
while ($Info_Array = mysql_fetch_array($del)){
#update the ids of each record
if($Info_Array[$v] > $editval){ #v is a fieldname (specifically
the id) defined above
mysql_query("update $tablename set $fields[0] =
($fields[0]-1) where $fields[0] = \"$Info_Array[$v]\" ", $database);
}//end if
}//end while
$delete=0; #reset the delete flag
}//end if
***********
Assume that all the variables have the values they're supposed to (cuz last
I checked, they do. :))
Thanks for your help. Again.
Jason
In my previous message I stated how some uploads were failing past a
certain size. What I want to know is, is it possible to force PHP to write
the uploaded contents as it receives them, or must they all be written at
the end? In other words, does the file you are currently uploading have to
completely fit into Memory (physical or virtual) before it can be written
to disk? There is a perl script available that allows for file uploads that
lets you write to disk as it's uploaded, instead of in one fell swoop at
the end. Is this functionality available in PHP, and if so, where might I
find it? I've never seen any mention of this ability in the documentation
unfortunately.
Addressed to: "Chris Doyle" <[EMAIL PROTECTED]>
"Fang Li" <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
** Reply to note from "Chris Doyle" <[EMAIL PROTECTED]> Thu, 25 Jan 2001 09:38:55
+1000
To be completely safe:
cd /var/mysql # or where ever your databases are stored.
mysqladmin -p shutdown # shut down database to make sure all
# tables are flushed, and closed
mv OldDbName NewDbName # rename the directory
safe_mysqld & # restart mysqld
mysql -p # Reassign the permissions
>REVOKE all users of the old table name
>GRANT all users of the new table name
>
> Prehaps you can rename the database file in mysql/bin ie.
> database_name.sql to new_database_name.sql and that will work?
>
> ----- Original Message ----- From: "Fang Li" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]> Sent: Thursday, January 25, 2001 7:20
> AM Subject: [PHP] how to rename a database
>
>
> >
> > Does anyone know how to rename a database in MySQL?
> > Thanks!
> >
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
I am working on a project where I need a function that will take the current
date and subtract however many days off of it a client specifies. Would
anybody know a way I can set this up? I pretty new at this so my vocabulary
is very basic.
For PHP's data and time functions, see this page:
http://www.php.net/manual/en/html/ref.datetime.html
You didn't mention a database - are you going to be selecting
records in a database based on a date?
I haven't seen this anywhere in the documentation, but my
favorite way of doing date math, and the way I've seen other
people do it also, is to convert your dates to unix timestamps -
that is, convert each date to the number of seconds since 1970,
then subtract or add, then convert the result back into a date.
$today_seconds = time(); // get current unix timestamp
$num_days = 5;
$num_days_seconds = (60*60*24*$num_days);
$date_before_seconds = $today_seconds - $num_days_seconds;
// now convert new date seconds back into a date
$date_before = date("m-d-Y", $date_before_seconds);
Or use this that I found in the "date" documentation:
$five_days_ago_seconds = mktime (0,0,0,date("m"),date("d")-5,date("Y"));
$date_5_days_ago = date("m-d-Y", $five_days_ago_seconds);
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Matthew Ley [[EMAIL PROTECTED]] wrote:
> I am working on a project where I need a function that will take the current
> date and subtract however many days off of it a client specifies. Would
> anybody know a way I can set this up? I pretty new at this so my vocabulary
> is very basic.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
From: "Brian White" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 4:55 AM
> >At least you're not sitting in high school calculus and actually
> >understanding everything on the board, but not being able to use any of
it
> >because Texas Instruments is the only company that's figured out how to
do
> >algebraic manipulation, and you can't exactly run a server on your
> >calculator. =)
>
> Are you sure - I thought HP calculators could do it as well?
Ah now, but who would use a HP, when you've got your trusty TI? :-)
(JUST a joke - I can already see the clouds of war in the horizon. A war
that is way older than VI/Emacs...)
- Carsten
I've brought this up in reference to other questions but haven't got a
straight answer.
Suppose I've created a session variable: session_register("foo") and receive
a posted form with the input field "bar".
If register_globals = off, I can only access the form-field like this:
$HTTP_POST_VARS["bar"]
and the session-variable like this:
$HTTP_SESSION_VARS["foo"]
If I set register_globals = on, the form-field can be accessed in two ways:
$bar
and the previous
$HTTP_POST_VARS["bar"]
but the session-variable only with:
$foo
and a new array $GLOBALS["foo"]
My question: What happened to $HTTP_SESSION_VARS? And why, since
$HTTP_POST_VARS is still accessible?
- Carsten
Hello...
I would like to code a search engine to use just inside my home
page...Anyone has an idea where can I find informations about how is the
process to code a search engine with PHP??
Thank you
Felipe Lopes
MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!
go to www.devshed.com
Look in their PHP section, and there should be something there.
-j
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 3:47 PM
Subject: [PHP] Search Engine...
> Hello...
> I would like to code a search engine to use just inside my home
> page...Anyone has an idea where can I find informations about how is the
> process to code a search engine with PHP??
> Thank you
>
> Felipe Lopes
>
> MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
> Faça já o seu. É gratuito!!!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I am using htdig from htdig.org.
It is an external program that executes like a cgi.
It is simple, fast and configurable.
I recommend it.
Hope it helps
Marko.
On Wed, Jan 24, 2001 at 11:21:28AM -0600, Dominic wrote:
> I have successfully installed pdflib with PHP4.0.4pl1 and all the
> necessary components. However, I don't know how to output a generated
> pdf to the browser without writing it to disk first and then reading it
> in. Below are the examples that I use.
>
> This example tries to directly output the pdf to the browser and doesn't
> work. The browser says "An error has occured while trying to use this
> document."
In case you use pdflib 3.03 check the pdflib page for a patch.
There is a bug if you create documents in memory.
Uwe
--
[EMAIL PROTECTED]
Tel: +2331 987 4528 Fax: +2331 987 375
Hello,
I want to *read* a file into a page and not process any PHP. I'm just
reading an HTML file. I though it was simple, I thought I had it figured
out, but now when I try, I get the following error:
Fatal error: Call to unsupported or undefined function read() in
/var/www/wherever.com/betastore/iscookies.php on line 41
Here is the code (line 41 is superceded by a +):
37: # display no cookies message
38: function NoCookies() {
39: global $DOCUMENT_ROOT;
40: $LocalScript = $DOCUMENT_ROOT . "/betastore";
41: read ($LocalScript . "/thispage.html");
42: }
Thanks for any help.
Hi, anybody knows where can i change the telnet timeout on a linux red
hat 6.2?
Thanks
Pablo
Anyone who can help me making a loop of this?
http://www.sakshaug.net/phps/loop.txt
I have tried many things, but I can't get it perfect...
Best Regards, Christian Sakshaug
--
Email: [EMAIL PROTECTED]
Web: www.sakshaug.net
Tel: +47 913 95 618
Hello,
I've got 4.25, 4.50 and 4.00.
I want to format them so that they give back 4.24, 4.5 and 4
I've already seen a pattern replacement that looks close to what I want, but
not quite.
Thanks ahead of time
Ethan