OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com

GIUGNO: INVITO AD UNA VISITA
 
Gentile Sig.re/ra buongiorno,

vorrei invitarLa ad una visita del nostro sito www.prosoft.it  e, per non farLe inutilmente perdere del tempo, mi permetto di sottoporLe un' offerta speciale dei nostri prodotti.

BIGLIETTI DA VISITA (Cod.7K0001) una buona procedura in italiano che si può utilizzare per mettere a punto rapidamente, ma in modo accurato, biglietti da visita, che mancano sempre quando è necessario, ma anche badge, biglietti di auguri e comunicazioni in genere. Si possono poi stampare con una qualsiasi stampante a colori nel formato desiderato anche in più pezzi per pagina.
Il programma può essere acquistato da Lei in questo caso a l. 19.900 iva compresa, invece di l. 29.000

L' ordine può essere fatto sia dal nostro sito, indicando però il codice sconto GIU3IN98 per i Biglietti da visita, perché altrimenti non verranno applicati i prezzi riservati. Oppure con un' email diretta:

mailto:prosoft.it?subject= ACQUISTO COD.GIU3IN98">moniaprosoft.it?subject= ACQUISTO COD.GIU3IN98  per l' acquisto dell' offerta relativa ai Biglietti da visita

In questo caso si ricordi di specificare i Suoi dati come ragione sociale, indirizzo, ecc., tipo di spedizione e pagamento. L' ordine, per posta (l. 8.900 pacchetto raccomandato) o per corriere espresso(l.19.000 iva compresa), verrà evaso entro 24 ore. 
Restando a disposizione per ogni chiarimento, vogliamo sottolineare che
suggerimenti e consigli sono sempre graditi.

Cordiali saluti
Direzione Clienti
Taviti Monia
www.prosoft.it



NOTA IMPORTANTE
Prosoft rispetta il Suo tempo online e la Sua Privacy. Se preferisce non essere informato in futuro sulle novità ed offerte può inviare un messaggio di posta elettronica, cliccando semplicemente sul collegamento:
prosoft.it?subject=STOP NEW" eudora="autourl">Mailto:moniaprosoft.it?subject=STOP NEW
Ha ricevuto questo messaggio perchè registrato nel nostro database. Se così non fosse La preghiamo di scusarci e di segnalarcelo con lo STOP NEW. Grazie.


attached mail follows:


In PHP I try to run a shell command with the following source code:

$fotonaam = 'convert -font arial -pointsize 20 -gravity center -fill white -draw "text 5,5 VERKOCHT" image.jpg image2.jpg'; exec($fotonaam);

PHP runs the program but the -draw "text 5,5 VERKOCHT" is not executed (there is no VERKOCHT in the image2.jpg). I tried everything but I can't solve the problem. Could somebody explain to me how it's possible that the program (convert) runs but there (seams to be) a problem with -draw "text 5,5 VERKOCHT". If I run the same command troughs telnet/ssh as root or nobody it works fine

Is it something with the " and the combinative with the exec function (I also tried \")?

Or is it because I run PHP in safe mode and the convert program tries to run a external program what is not in the . path (you now, the basic safe mode restriction)?

Please help me.. I'm getting despaired on this in. ;-)

Regards,

Jeffrey Barendse

attached mail follows:


I use this to replace URLs as links:

$text = eregi_replace("(http://[^ ]*)","<a href=\"\\1\">\\1</a>",$text);

What can I use to replace email addresses (like "namemymail.com") as e-mail links?

kind regards,

bill hollett

attached mail follows:


Bill

I grabed this function from the www.php.net manual and it works great, it covers all your bases, except that it will show you http://www.something.com for http://www.something.com or www.something.com. If somone knows how to modify it so it would only show www.something.com when linked, that would be perfect.

// Auto Link HTML /** * Function from phpmanual http://www.php.net/ * unoandreonline.no */ function getAutoLink($text){ if($GLOBALS["use_AutoLinks"]){ $text = ereg_replace("((www.)([a-zA-Z0-9:%_.~#-\?&]+[a-zA-Z0-9:%_~#\?&/]))", "http://\\1", $text); $text = ereg_replace("((ftp://|http://|https://){2})([a-zA-Z0-9:%_.~#-\?&]+[a-zA-Z0 -9:%_~#\?&/])", "http://\\3", $text); $text = ereg_replace("(((ftp://|http://|https://){1})[a-zA-Z0-9:%_.~#-\?&]+[a-zA-Z0 -9:%_~#\?&/])", "<A HREF=\"\\1\" TARGET=\"_blank\">\\1</A>", $text); $text = ereg_replace("([_\.0-9a-z-]+([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})","<A HREF=\"mailto:\\1\">\\1</A>", $text); return $text; } }

peace

Richard

"bill" <billbilltron.com> wrote in message news:3B3B48A4.6D5EE2AFbilltron.com... > I use this to replace URLs as links: > > $text = eregi_replace("(http://[^ ]*)","<a href=\"\\1\">\\1</a>",$text); > > What can I use to replace email addresses (like "namemymail.com") as > e-mail links? > > kind regards, > > bill hollett > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


I upgraded php3 to php 4.0.6 on Linux 2.2.19+apache 1.3.17+sybase 11.9.2 and my phplib stoped to work. I am using Cart class and Sessions etc. Page_close sends the message: Database error: Invalid SQL: insert into active_sessions ( sid, name, val, changed ) values ('62298a7def668dff3a8b417a4f0ad7a0', 'Batnet_usr_Session', 'QmF0bmV0X3Vxbvsnbsdf3iubn', '20010628161008') Sybase Error Session halted.

There is a session with this id and phplib should do update instead of insert.

Are there good sites where I can read about how to safely upgrade php and keep my phplib working ?

Thanks in advance Marcin.

attached mail follows:


This varies greatly depending on where you are... For example here on Long Island I can make $60-80 / man hour, but in New York City I can make as much as $150 / man hour... It also depends on what you are doing.

Hope this helps, Julia

Quoting Alva Chew (alvachewmailandnews.com): > Hi everyone, > > Just don't really know where to post this, so here goes: > > I am working as a freelance programmer. Problem is I don't really have a > clue how the pricing mechanism in the industry works. I have heard > calculations based on man hours and lines of code, so perhaps anyone one can > tell me on the average, how much should I be charging per man hour, or per > line of code? > > Sincere thanks and regards, > Alva Chew, Singapore > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

-- 
[  Julia Anne Case  ] [        Ships are safe inside the harbor,       ]
[Programmer at large] [      but is that what ships are really for.    ]  
[   Admining Linux  ] [           To thine own self be true.           ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
          

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

iD8DBQE7O1Bp4HhEM0IT+S4RArqUAKCArpmZt9rkYFDhxuLgJQcrodVroACbBG3g w83R5V1O+jtdrssY2F88CHc= =uiQK -----END PGP SIGNATURE-----

attached mail follows:


On 6/28/2001 2:49 AM this was written:

> I am working as a freelance programmer. Problem is I don't really have a > clue how the pricing mechanism in the industry works. I have heard > calculations based on man hours and lines of code, so perhaps anyone one can > tell me on the average, how much should I be charging per man hour, or per > line of code?

I think the majority is man hour. I actually handn't heard of lines of code. I think that would be ridiculous, can you imagine. You get paid more depending on your style:

If ($foo == "bar") { $dofoo = fobar($foo); } else { $dofoo = foobar($bar); }

Or If ($foo == "bar") { $dofoo = fobar($foo); } else { $dofoo = foobar($bar); }

I would never trust someone who charged by line.

I think in general it's about $100-$150/hour for programming/database work.

-- 

Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/

attached mail follows:


On 28 Jun 2001 02:08:20 -0700 impersonator of elias_bachaalanyyahoo.com ("elias") planted &I saw in php.general:

>It all depends on your experience and knowledge. >You know that if you're too experienced you can save lots of research and >learning time. >therefore you have to estimate how much does your hour cost and how much are >you able to do. >you can start by $20/hour....... > You stared your post almost as i think, but then degraded to Unionistic's/Communistic (to my mind:) views. I think - only the end product costs something (not a labor by itself) - therefore cost would better be estimated for the whole needed to be done project (based on market price). And you decide - whether you fit required deadlines, and whither your performance is enough to support yourself on every concrete project. At least this seem to be right for freelances.. I know, trade unions will flame me for that:) But then again what are they have being doing all the time (and not always _genital_:)

>""Alva Chew"" <alvachewmailandnews.com> wrote in message >news:9hejcu$3n6$1w153.z064000151.sjc-ca.dsl.cnc.net... >> Hi everyone, >> >> Just don't really know where to post this, so here goes: >> >> I am working as a freelance programmer. Problem is I don't really have a >> clue how the pricing mechanism in the industry works. I have heard >> calculations based on man hours and lines of code, so perhaps anyone one >can >> tell me on the average, how much should I be charging per man hour, or per >> line of code? >> >> Sincere thanks and regards, >> Alva Chew, Singapore >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribelists.php.net >> For additional commands, e-mail: php-general-helplists.php.net >> To contact the list administrators, e-mail: php-list-adminlists.php.net >> > > Leonid (not a member:)

attached mail follows:


I believe its

how_many_times_client_changes_mind * (man_hours * 2) * rate = what_your_time_is_worth

provided that

(how_many_times_client_changes_mind * (man_hours * 2)) + other_projects_time < 18hr/day of programming

Think of the project overall and make sure to sit down with the client and make a detailed list of features and stuff. Make sure to significantly increase the man_hours over a real figure, as every other quote he gets would include the same, better to have program done early and happy customer than late program and sad customer. Rate should be an average based on what is your minimum and what_your_time_is_worth. So for instance, on a project you could decide to charge 20$ an hour... but doing the project is worth 3 months of colo fees and a new Alienware dual Athlon :) So you get out a calculator and do the magic. With any project, make sure you know your client too... what most important to him: Functionality, Form, Lines of Code, or Cost? Then you can program to his needs, cause cost usually isn't the main feature.

---
Toolshed Computer Productions - Professional PHP Hosting
     Hosting - Dedicated Servers - Design - Programming
     http://www.toolshed51.com

-----Original Message----- From: Alva Chew [mailto:alvachewmailandnews.com] Sent: Wednesday, June 27, 2001 11:50 PM To: php-generallists.php.net Subject: [PHP] Pricing Advice Needed

Hi everyone,

Just don't really know where to post this, so here goes:

I am working as a freelance programmer. Problem is I don't really have a clue how the pricing mechanism in the industry works. I have heard calculations based on man hours and lines of code, so perhaps anyone one can tell me on the average, how much should I be charging per man hour, or per line of code?

Sincere thanks and regards, Alva Chew, Singapore

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-helplists.php.net To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Parse error: parse error in /local/Web/sites/phpweb/include/shared-manual.inc on line 265

Fatal error: Call to undefined function: sendmanualheaders() in /local/Web/sites/phpweb/manual/en/getting-started.php on line 3

HEEEEELPPP!!

:)

Rom

attached mail follows:


On 27-Jun-01 Tim Ward wrote: > I've finally got a mail client running on our web server and it works fine, > except in the time it takes to run the mail() function. I've put diagnostics > round the call and it seems to be taking 22 seconds to return. All I'm doing > is forwarding the results of an enquiry form as plain text. I'm sure I've > seen reference to this problem somewhere but can't remember (or find) where > it was. Can anyone out there help?

Sounds like sendmail is timing-out on a dns lookup ... is sendmail running as a daemon ?

try it from the shell df | /usr/sbin/sendmail auserremote.com

Regards,

-- 
Don Read                                       dreadtexas.net
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

attached mail follows:


Hi there. I'm completely new in PHP so I apologize for this question. I've download and read PHP manual but I didn't found how to pass parameters from one .PHP to another .PHP file. I'm not trying to send variables from a form using $HTTP_POST_VARS[ ], but pass via <A HREF="somescript.php?xxxxxxxx">. Please tell me what is the convention to pass them or where I can read about it.

Thanks Momchil

attached mail follows:


Say you want to pass three variables: color = blue name = Bob day = Monday

here's the link <A HREF="somescript.php?color=blue&name=Bob&day=Monday">click here</A>

Pretty simple!

attached mail follows:


Hi all,

The dll is not broken.

The type UNIQUEIDENTIFYER is a 16 byte binary value and is returned as such.

With versions of the php_mssql.dll distributed with php4.0.5 or before did not include proper support for binary data. This has been changed in php4.0.6.

I have hust added a small function to the extension called mssql_guid_string(). This function can be used to convert the binary value into a readable string. This function will be available in php4.0.7.

If you want a copy of the dll before the release of php4.0.7, please email me directly.

You could also let the server handle the convertion "select id from mytable" will return binary data if id is a UNIQUEIDENTIFIER. "select case(id as varchar(36)) from mytable" will do the convertion on the server and return a valid string.

- Frank

> well, the SQL statement you're trying to execute > would help determine why it's not working... :) > > just stating that "it's broken" is like saying > "my car makes this funny noise" and hoping that > a mechanic will give you a detailed diagnosis. > > > > -----Original Message----- > > From: Thomas Häger [mailto:thomas.haegeronsoft.de] > > Subject: [PHP] mssql and uniqueidentifier's > > > > > > Hi NG, > > > > my problem is following: > > > > I made a query on a table on a MS SQL Server 2000. The table have a > > key-column from type uniqueidentifier. Ever i made a query on this column, > > the result is not right. It comes back some crypt. > > > > For example: > > > > Value Database: 496467D1-7646-4094-8016-087083EA9432 > > Result shown in the browser, queried by php : ÑgdIFv"?pfê"2 > > > > > > Can somebody help me, thanks, > > > > Thomas > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > > >

attached mail follows:


Somewhere, some time ago, i saw a rountine, C, C++, php, some language that provided a rountine to reduce brackets in a logical expression to the fewest number of brackets possible (much like mysql does), for ex:

((a and b) or (a and c)) would be reduced to:

(a or c) and b

not a very good example, anyone one ever run across this code, or have an idea what this operation is called, I know there was a name....for the life of me I can't remember the name.

any help appreciated

kb

__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

attached mail follows:


rename either the function or the class.

class Display_Records { function display_records($row, $record_count) { $current_date = (date("Y-m-d")); $age = ($current_date); return $age; } function disp_rec($row, $record_count) { $current_date = (date("Y-m-d")); $age = ($current_date); return $age; } }

$d = new Display_Records(); // no problem here print $d -> disp_rec('row', 'record cont');

// big problem here print $d -> display_records('row', 'record cont');

> -----Original Message----- > From: Thomas David Kehoe [mailto:kehoecasafuturatech.com] > Sent: Wednesday, June 27, 2001 9:27 AM > To: php-generallists.php.net > Subject: [PHP] Missing arguments for function in class? > (object-orientedprogramming) > > > I have a function that works perfectly (from within a script). But when I > make it a class (object) and call it from an external file, I get the > following error: > > Warning: Missing argument 1 for display_records() in > http://www.friendshipcenter.com/Objects/display_records.inc on line 5 > > Warning: Missing argument 2 for display_records() in > http://www.friendshipcenter.com/Objects/display_records.inc on line 5 > > After the warnings, it executes the function without passing values to the > variables (i.e., it doesn't work), and then it executes the function a > second time perfectly (with the appropriate variables). > > Line 5 is this: > > function display_records($row, $record_count) > > It displays the first error message for $row, and the second error message > for $record_count. > > I call the function with this: > > $my_records = new Display_Records; > $my_records -> display_records($row, $record_count); > > The full scripts are below. > > What I tried that didn't help was declaring the variables in the class with: > > class Display_Records { > > var $row; > var $record_count; > > I also tried setting defaults for the variables (er, attributes) with this > (it didn't help): > > $my_records = new Display_Records; > $my_records -> row = $row; > $my_records -> record_count = 1; > $my_records -> display_records($my_records -> row, $my_records -> > record_count); > > This is my first try at OOP. The code is for a personal ad website > (FriendshipCenter.com). Here's the full class script, followed by the > script I use to call the function. > -- > Thomas David Kehoe, author of > "THE EVOLUTION OF INTIMATE RELATIONSHIPS" > How Our Brains Are Hardwired For Relationships > http://www.FriendshipCenter.com/TEIR/ > > > > > > > <?php > > class Display_Records { > > function display_records($row, $record_count) { > > //Calculate age > $current_date = (date("Y-m-d")); > $birthdate = $row["BIRTHDATE"]; > $age = ($current_date - $birthdate); > > // Display record number. > echo "Row number:&nbsp;", ($record_count + $advance_row), "<p>"; > > // Display username and e-mail address > echo "<font color=green>Username: </font>", $row["USER_NAME"], > "<p>"; > echo "<font color=green>E-mail address: </font><a href=mailto:", > $row["EMAIL_ADDRESS"], ">", $row["EMAIL_ADDRESS"], "</a><p>"; > > // Display the information provided by the member. Empty fields > aren't displayed. > if ($row["DISABILITY_1" OR "DISABILITY_2" OR "DISABILITY_3" OR > "DISABILITY_4" OR "DISABILITY_5" OR "DISABILITY_6" OR "DISABILITY_7" OR > "DISABILITY_8"]) {echo "<font color=green>Disability, disease, or condition: > </font>", $row[DISABILITY_1], ", ", $row[DISABILITY_2], ", ", > $row[DISABILITY_3], ", ", $row[DISABILITY_4], ", ", $row[DISABILITY_5], ", > ", $row[DISABILITY_6], ", ", $row[DISABILITY_7], ", ", $row[DISABILITY_8], > "<p>";} > if ($row["LIFE_STORY"]){echo "<font color=green>Life story: > </font>", $row["LIFE_STORY"], "<p>";} > if ($row["PHOTO_URL"]){echo "<IMG HEIGHT=250 SRC=", > $row["PHOTO_URL"], "><p>";} > if ($row["PHOTO_URL"]){echo "<font color=green>Photo URL: </font><a > href=", $row["PHOTO_URL"], ">", $row["PHOTO_URL"], "</a><p>";} > if ($row["HOMEPAGE_URL"]){echo "<font color=green>Personal website > URL: </font><a href=", $row["HOMEPAGE_URL"], ">", $row["HOMEPAGE_URL"], > "</a><p>";} > if ($row["CITY"]){echo "<font color=green>City: </font>", > $row["CITY"], "<p>";} > if ($row["STATE"]){echo "<font color=green>State: </font>", > $row["STATE"], "<p>";} > if ($row["COUNTRY"]){echo "<font color=green>Country: </font>", > $row["COUNTRY"], "<p>";} > if (($row["BIRTHDATE"]) != "0000-00-00") {echo "<font > color=green>Age: </font>", $age, "<p>";} > if ($row["GENDER"]){echo "<font color=green>Gender: </font>", > $row["GENDER"], "<p>";} > if ($row["EDUCATION"]){echo "<font color=green>Education: </font>", > $row["EDUCATION"], "<p>";} > if ($row["PROFESSION"]){echo "<font color=green>Profession: > </font>", $row["PROFESSION"], "<p>";} > if ($row["MARITAL_STATUS"]){echo "<font color=green>Marital status: > </font>", $row["MARITAL_STATUS"], "<p>";} > if ($row["SEXUAL_ORIENTATION"]){echo "<font color=green>Sexual > orientation: </font>", $row["SEXUAL_ORIENTATION"], "<p>";} > if ($row["RELIGION"]){echo "<font color=green>Religion: </font>", > $row["RELIGION"], "<p>";} > if ($row["RACE"]){echo "<font color=green>Racial or ethnic group: > </font>", $row["RACE"], "<p>";} > if ($row["HEIGHT"]){echo "<font color=green>Height: </font>", > $row["HEIGHT"], " inches<p>";} > if ($row["WEIGHT"]){echo "<font color=green>Weight: </font>", > $row["WEIGHT"], " pounds<p>";} > if ($row["SMOKING"]){echo "<font color=green>Smoking: </font>", > $row["SMOKING"], "<p>";} > if ($row["DRINKING"]){echo "<font color=green>Drinking: </font>", > $row["DRINKING"], "<p>";} > if ($row["LANGUAGE"]){echo "<font color=green>Language: </font>", > $row["LANGUAGE"], "<p>";} > > // Display banner ad. > echo "<center><iframe > src=http://leader.linkexchange.com/1/X1258133/showiframe? width=468 > height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 > scrolling=no><a href=http://leader.linkexchange.com/1/X1258133/clickle > target=_top><img width=468 height=60 border=0 ismap > src=http://leader.linkexchange.com/1/X1258133/showle?></a></iframe><br><a > href=http://leader.linkexchange.com/1/X1258133/clicklogo target=_top><img > src=http://leader.linkexchange.com/1/X1258133/showlogo? width=468 height=16 > border=0 ismap></a><br></center>"; > } > } > > ?> > > > -- > > > > // This loop executes to display each record. > do { > > // Uses class for displaying records > $my_records = new Display_Records; > $my_records -> display_records($row, $record_count); > > // You've displayed one more record, so increment the record number. > ++$record_count; > > // Repeat the above loop while there is at least one more record, for a > maximum of 20 records. > } while( ($row = mysql_fetch_array($selectresult)) && ($record_count <= > 20) ); > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


read the manual!!!

there's a set cookie function built into PHP.

> -----Original Message----- > From: Jason Stechschulte [mailto:jpstechunoh.edu] > Sent: Wednesday, June 27, 2001 9:30 AM > To: PeterOblivionaol.com > Cc: php-generallists.php.net > Subject: Re: [PHP] looking for a class that handles cookies and sessions > > > On Tue, Jun 26, 2001 at 12:44:15PM -0400, PeterOblivionaol.com wrote: > > I need a class that can quickly help me set cookies and sessions, and check > > up against them > > > > anyone have an idea where i can get one like this? > > Yes, the University I work at has a class that will teach you this. The > University is at http://www.unoh.edu and the class you want is: DP237 - > Programming Server-Side Scripts I > > -- > Jason Stechschulte > jpstechunoh.edu > -- > And we can always supply them with a program that makes identical files > into links to a single file. > -- Larry Wall in <199709292012.NAA09616wall.org> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


simple.

get total KB (1k = 1024 bytes) divide that by 60 (seconds in a minute) now you have estimated transfer time in minutes.

> -----Original Message----- > From: Rhett Hermer [mailto:rhetthinfo-logic.co.za] > Subject: [PHP] calculate download time > > Hi, > > I am trying to write code to find out how long it takes to download a file. > The code is below. When I compare to other websites which you can calculate > online, varies wildly. I do know about many factors that affect the > download times. All I want is correct forumla to caclulate. > > $b = filesize("foo.zip"); > echo "<br>It will take you:<br>"; > $dl = (($b * 8) / (64*1000)); > $sec = $dl % 60; > $min = (($dl / 3600) % 60); > $hrs = $dl / 3600; > printf ("%1.0f hours, %1.0f mins and %1.0f secs at 64k/s<br>", $hrs, $min, > $sec);

attached mail follows:


haha...

i had been trying to compile PHP 4.0.5 and previous with the GD library, and it was giving me all sorts of bizarre errors, but when i downloaded PHP 4.0.6 and tried to compile it against GD, it worked beautifully.... not a single error.

:)

> -----Original Message----- > From: rouvasaspasia.mm.di.uoa.gr [mailto:rouvasaspasia.mm.di.uoa.gr]On > > Sure, if it works why bother? Still, isn't it nice the way configuration > directives change along versions? It helps keeping one fit :-) >

attached mail follows:


Hello,

well, maybe this helps: [from the manual]

----
"Installation
This extension uses expat, which can be found at http://www.jclark.com/xml/. The Makefile that comes with expat does not build a library by default, you can use this make rule for that: 
    libexpat.a: $(OBJS)
    ar -rc $ $(OBJS)
    ranlib $
      
 
A source RPM package of expat can be found at http://www.guardian.no/~ssb/phpxml.html. 

Note that if you are using Apache-1.3.7 or later, you already have the required expat library. Simply configure PHP using --with-xml (without any additional path) and it will automatically use the expat library built into Apache.

On UNIX, run configure with the --with-xml option. The expat library should be installed somewhere your compiler can find it. If you compile PHP as a module for Apache 1.3.9 or later, PHP will automatically use the bundled expat library from Apache. You may need to set CPPFLAGS and LDFLAGS in your environment before running configure if you have installed expat somewhere exotic.

Build PHP. Tada! That should be it." ----

So, expat doesn't build its library by default, but if you use apache (>=1.3.9) it says PHP will find it. Try --with-xml as it is suggested... and as said that should be it. BTW, I've also very big headache to install PHP 4.0.5 with-sablot or with-xslt and that was *not* it (i gave up). I would appreciate if you post me what steps are required to make a proper PHP installation with xml & xslt support.

Best of luck,

Papp Gyozo - pgerzsonfreestart.hu

----- Original Message ----- From: "Rouvas Stathis" <rouvasdi.uoa.gr> Cc: <php-generallists.php.net> Sent: 2001. június 26. 16:47 Subject: [PHP] --with-zlib/--with-zlib-dir and --enable-xslt

> Hi, > > Been trying to compile PHP.4.0.6 with --with-zlib directive and failing. > Using --with-zlib-dir, however succeeds. > > Does anyone knows the difference between the two ? > > Also, in a related problem, if I try with --enable-xslt I get the > following results: > > checking for XML support... yes > checking external libexpat install dir... no > checking whether to enable xslt support... yes > checking whether to enable the XSLT Sablotron backend... no > checking libexpat dir for Sablotron XSL support... no > configure: error: not found. Please re-install the distribution > > ??? > > -Stathis. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


read the manual... there are lots of ways to replace/change characters. :)

> -----Original Message----- > From: tvkarthickmyrealbox.com [mailto:tvkarthickmyrealbox.com] > Sent: Thursday, June 28, 2001 4:48 AM > To: php-generallists.php.net > Cc: tvkarthickmyrealbox.com > Subject: [PHP] Function > > > Hi, > > Is there any function to replace a character in an Array ??. > > Thanx in adv. > > ~ Karthick. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


php://stdin php://stdout php://stderr

are also for console input/output...

> -----Original Message----- > From: Richard Lynch [mailto:ceol-i-e.com] > Subject: Re: [PHP] I want to get the input of keyboard > > $file = fopen('php://input', 'r'); > $char = fread($file, 1); >

attached mail follows:


I was wondering what security risks there are when using FTP functions. I created a browser-based management site for my clients so they may write and upload files to the server. I had to use FTP functions because there was some problem with file owner/permission being set to 'nobody'. Supposedly you would normally use a suexec wrapper but it failed (atleast with PHP v.3) because PHP was called after it or something. My current isp has enabled FTP functions which has worked great, but I'm thinking of switching isp. I talked to an isp today that said FTP functions are a major security risk and can easily be hacked. Arghh! I wondered if this were true, since the function uses a username and password like you would with any FTP application. Does anyone have comments or suggestions? Thanks! - Michelle :)

attached mail follows:


I'm trying to from a file in a directory called 'logs'. I've never seen this error before. What does it mean?

<<<ERROR>>> Warning: fopen("logs/993700800.log","w+") - Permission denied in /home/sites/site20/users/guide/web/counter.php on line 28

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site20/users/guide/web/counter.php on line 29

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site20/users/guide/web/counter.php on line 30 1 <<<END>>>

The last two errors are becuase the first fails to return a file handle. Here's the actual offending code. It's just a simple counter.

<<<CODE>>> <?PHP $iDate = mktime(0, 0, 0, date("m"), date("d"), date("Y")); $iCount = 1; $sFile = "logs/".$iDate.".log";

if (file_exists($sFile)) { $iCount = incCount($sFile); } else { createCountLog($sFile); }

echo "<B><FONT COLOR=BLUE>$iCount</FONR></B>";

function incCount($sFile) { // Open and read existing count $hCounter = fopen($sFile, "r"); $iCount = fgets($hCounter, 1024); fclose($hCounter); // Write over it with the new count $hCounter = fopen($sFile, "w"); fputs($hCounter, ++$iCount); fclose($hCounter); return $iCount; }

function createCountLog($sFile) { $hCounter = fopen($sFile, "w+"); fputs($hCounter, 1); fclose($hCounter); }

?> <<<END>>>

Usually I've been able to fix every PHP error I've gotten in the past - they've been pretty straightforward - but I've been playing around with this error for a few days now to no avail.

I'm new to this mailing list and have never used it before so I'm not sure which one/s to join or post this specific message to. I apologize if this is the wrong forum for this type of question. Thank you for your time.

--
Jimi Malcolm
Web Content Manager
inburst Internet Media
inburst.com
jimi.malcolminburst

attached mail follows:


Does know of anyway to get PHP to return the week number? As in there are 52 weeks in a year and this is week x? If there is no internal feature, perhaps something built into PHPLib?

Lemme know, Matt "TrollBoy" Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft --------------------------------------------------------- Please do not resell my e-mail address to anyone or send me unsolicited e-mail ---------------------------------------------------------

attached mail follows:


I had a site that was working fine and now gives this error.

Warning: Unable to fork [C://winnt//system32//pfpro connect.signio.com 443 "TRXTYPE=S&TENDER=C&USER=username&PWD=password&ACCT=56532325168784512&EXPDAT E=0102&AMT=11.95&NAME=Jeff Rossi&STREET=1506 Tuscaloosa Ave&CITY=Holly Hill&STATE=Florida&ZIP=32117&EMAIL=jeffdatadrivendesign.com"] in e:\www\roffice.net\ssl\bouncersbible\sec_order.php on line 104

I'm assuming that my host moved or deleted the executable in question. Is there another possible cause?

Username/password changed.

Thanks

Data Driven Design 1506 Tuscaloosa Ave Holly Hil, FL 32117

http://www.datadrivendesign.com http://www.rossidesigns.net

attached mail follows:


Richard Lynch wrote: I had ldconfig running several times (editing ld.so.conf in between by even changing the sequence in the ld.so.conf) but it doesn't help me.

Thanks

Martin > > Try running ldconfig from your command line. > > I think you just run it and it does things, and it all then works... > > It's been ages since I did it though... > > -- > WARNING richardzend.com address is an endangered species -- Use > ceol-i-e.com > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > ----- Original Message ----- > From: Martin Schmidt <martin.schmidtjielo.de> > Newsgroups: php.general > Sent: Monday, June 25, 2001 4:14 PM > Subject: [PHP] shared object not open > > > Hi, > > > > I am just starting with PHP, I installed the new version on my Suse 7.1 > > with apache 1.3.14, because I need a tool for accessing databases > > (Informix/Oracle). > > > > Everything seemed fine, until I tried to start apache, it told me: > > > > Cannot load /usr/lib/apache/libphp4.so into server: shared object not > > open > > > > All my investigations showed me a very "kind" member of bug.php.net, who > > told someone else, that this isn't a bug and we should connect the > > mailing-lists. He generously had a hint : /etc/ld.so.conf and ldconfig. > > In the archive of the mailing lists I found the same informations ( a > > little bit more informative), but my ld.so.conf is o.k. and at this > > point any help stops. > > I hope, that someone found out what's happening here and helps me. > > > > So I have: > > Intel Celreon 366 on Asus Mainboard, 256 MB RAM, Adaptec 2940UW with all > > together 20GB HD, 5 swap-Areas with 128MB each. > > SuSE 7.1 Prof-Edition, from this distribution I installed apache and PHP > > (everything working fine, but no idea how to activate > > informix/oracle-support) > > > > Apache says, PHP4-module installed. > > > > Thanks a lot for any help > > > > > > Martin Schmidt > > > >

attached mail follows:


on 6/27/01 1:49 AM, ReDucTor leaped tall buildings, and wrote:

> EditPlus is the best program EVER!!!! > > I use it for every thing... :) :)

BB Edit is the PHP coder of choice on the Mac side. It does everything! It also has a great PHP library so you don't have to manually type redundant code, like MySQL connects and such. http://www.bbedit.com

mto

-- 

Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si --------------------- M A N G O B O U L D E R --------------------- http://www.thinkmango.com e- mikethinkmango.com p- 303.442.1821 f- 303.938.8507

attached mail follows:


Hi,

First of all, thanks to all that answered my Auction question a few days ago. It looks like http://www.phpauction.org/ was the clear winner.

So, on to the next question. Has anyone seen an app that can send digital cards, where a user can choose their picture, and add whatever text and font they want, then send to as many people as they want?

Here's what I'm going for: http://itools.mac.com/WebObjects/iCards.woa?aff=consumer&cty=US&lang=en&iden tifier=BPimK6ft7BH2KBYf

This one was built in WebObjects, but is pretty robust.

Thanks in advance.

mto

-- 

Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si --------------------- M A N G O B O U L D E R --------------------- http://www.thinkmango.com e- mikethinkmango.com p- 303.442.1821 f- 303.938.8507

attached mail follows:


In article <B760FACF.DAC%mikethinkmango.com>, mikethinkmango.com (Michael O'Neal) wrote:

> So, on to the next question. Has anyone seen an app that can send digital > cards, where a user can choose their picture, and add whatever text and font > they want, then send to as many people as they want?

Some convenient places to find PHP apps of all kinds:

http://php.net/projects.php http://hotscripts.com/ http://php.resourceindex.com/

-- 
CC

attached mail follows:


I've already compiled and tested the communication betwen PHP (cURL module included) and Vpos. The only problem I'm actually facing is how to process the curl's answer.

-----Mensaje original----- De: Richard Lynch [mailto:ceol-i-e.com] Enviado el: Wednesday, June 27, 2001 2:16 AM Para: php-generallists.php.net Asunto: Re: [PHP] About Integration PHP- VPOS

cURL is probably your only option, but I think you can build cURL into PHP if you haven't already...

--
WARNING richardzend.com address is an endangered species -- Use
ceol-i-e.com
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Ing. Marco Antonio Lopez Melendez" <marcoexodus.dcaa.unam.mx>
Newsgroups: php.general
Sent: Tuesday, June 26, 2001 5:37 PM
Subject: [PHP] About Integration PHP- VPOS

> Hi, actually I'm developing a electronic store and I'm integrating VPos to > the store application. I'm Using CURL in order to comunicate to Vpos. Is it > the only way or there are another one? > The Vpos aplication resides on other server and I have to comunicate with it > via SSL. > Thanx. > ============================================== > Ing. Marco Antonio Lopez Melendez > Jefe del Departamento de Estructuracion de Sistemas > DCAA.DGSCA.UNAM. > Tel. 56-22-36-61 > Fax. 56-22-36-78 > ============================================== > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-helplists.php.net To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


This code works fine with PHP 4.0.5 on Win.

<?php srand (microtime()); for ( $i = 0; $i < 1000 ; $i++) { $BLAH = rand() / 100; echo round($BLAH, 2), '<br>'; } ?>

----- Original Message ----- From: "Chad Day" <cdayatpco.com> To: <cczonanospam.invalid>; <php-generallists.php.net> Sent: 2001. június 27. 17:27 Subject: RE: [PHP] problems with round ..

> Yes, it is. I've tried it on a couple different php4 servers, I've never > gotten it to work. > > Chad > > -----Original Message----- > From: CC Zona [mailto:cczonanospam.invalid] > Sent: Tuesday, June 26, 2001 8:00 PM > To: php-generallists.php.net > Subject: Re: [PHP] problems with round .. > > > In article <NFBBJEHDJOLEGDCDKEGGMENLCGAA.cdayatpco.com>, > cdayatpco.com ("Chad Day") wrote: > > > $BLAH = round($BLAH, 2); > > > > Spits out a wrong parameter error. I've tried quotes around the variable, > > the parameter, and any combinations, but it still pukes on me. Why can't > I > > specify a precision? > > According to the manual, the second parameter is only available in PHP4--is > that what you're using? > > -- > CC > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >


 
From: php-general-digest-helplists.php.net
Date: Fri Jun 29 2001 - 10:14:33 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 29 Jun 2001 15:14:33 -0000 Issue 726

    Topics (messages 55538 through 55544):

    PHP Not Working
            55538 by: Black S.

    Re: Convert
            55539 by: Chris Hayes

    closing window after submit
            55540 by: Richard Kurth

    (slightly OT) the bad and the good (hosting recommentations)
            55541 by: Justin French

    referencing arrays in arrays
            55542 by: Anette Löfquist
            55543 by: Anette Löfquist

    Re: Problem with Excel
            55544 by: Jean-Arthur Silve

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    Very strange situation, PHP Version 4.0.3 on one of my production web
    servers has started to loose different functionality?? The OS is
    Apache/1.3.12 (Unix) (Red Hat/Linux 6.2) PHP/4.0.3 mod_perl/1.21, PHP was
    compiled as a module with apxs. The strange thing is, some virtual host
    directories have some of the things other Virtual host directories don't
    have or quite working. It started with the include() function not working
    and has now moved to the mail() function not working. Has anyone
    excperienced similiar problems or know of a fix??

    Thanks,

    Blake

    attached mail follows:


    implode
    see manual/function.implode.html

    Chris

    Date sent: Thu, 28 Jun 2001 17:34:41 +0530
    From: tvkarthickmyrealbox.com
    To: php-generallists.php.net
    Subject: [PHP] Convert

    > Hi
    >
    > How do I convert arrays to string ??.
    >
    > ~ Karthick
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    > For additional commands, e-mail: php-general-helplists.php.net
    > To contact the list administrators, e-mail: php-list-adminlists.php.net
    >

    --------------------------------------------------------------------
    -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
    --------------------------------------------------------------------

     

    attached mail follows:


    I have a form that is in a pop up window it has an image for a submit
    button how can I close the pop up after submitting. I know I can do it
    with javascript with a standard submit button. but how can I do it when
    I use an image for a submit button

          <form method="post" action="<?echo $PHP_SELF;?>">
           <input type="TEXT" name="email" size="30" maxlength="50">
          <input type="image" src="fm_sub.gif" width="71" height="11" border="0">

    Best regards,
     Richard
    mailto:rkurthpacifier.com

    attached mail follows:


    hi all,

    i'm about to change ISPs, and i'll probably be moving to a US based
    server, on Unix, with Apache, PHP4, CGI, Perl 5, MySQL, etc etc.

    so far the best I can find (price/service level/features) is
    experthost.com.au. Has anyone got a bad experience with these guys, or
    a good experience with annother ISP that they can recommend?

    for what it's worth they offer a reseller package with 2-4 domains for
    US$10/month each, all the way down to 25+ for US$4.99 each / month.
    this is with 50 meg space, MySQL DB, 20 POPs, and much more.

    i don't require dial up access, just hosting.

    i'd be interested to hear of competitors to this ISP, or of any good /
    bad experiences. I'm ony interested in Australian, US, Canada or UK ISPs.

    many thanks

    jsutin french

    attached mail follows:


    I have an array, $field, like following:

    Array ( [0] =>
                 Array ( [0] => Array ( [disp] => computer
                                                     [index] => computer )
                             [1] => Array ( [disp] => or
                                                     [index] => or )
                             [2] => Array ( [disp] => title
                                                     [index] => at 1=4 term
                                                     [name] => ti )
                              )
                [1] =>
                 Array ( [0] => Array ( [disp] => human
                                                     [index] => human)
                             [1] => Array ( [disp] => or
                                                     [index] => or )
                             [2] =>Array ( [disp] => subject
                                                     [index] => at 1=5 term
                                                     [name] => s )
                               )
                 [2] =>
                 Array ( [0] => Array ( [disp] =>
                                                     [index] => John)
                             [1] => Array ( [disp] => or
                                                     [index] => or )
                             [2] => Array ( [disp] => tsd
                                                     [index] => at 1=5 term at
    7=44 term
                                                     [name] => tsd)
                           )
                [3] =>
                  Array ( [0] => Array ( [disp] =>
                                                      [index] => Eric)
                              [1] => and
                              [2] => Array ( [disp] => subject
                                                      [index] => at 9=5 term
                                                      [name] => s )
                               )
                [4] =>
                   Array ( [0] => Array ( [disp] =>
                                                       [index] => Main)
                               [1] => and
                               [2] => Array ( [disp] => subject
                                                       [index] => at 9=5 term
                                                       [name] => s )
                                )
                 [5] =>
                   Array ( [0] => Array ( [disp] =>
                                                       [index] => Dog)
                               [1] => and
                               [2] => Array ( [disp] =>
                                                       [index] =>
                                                       [name] => )
                               )
    )

    In each string, $field[$j][2]["index"] in the array, will I replace 'term'
    with the
    word in "{$field[$j][0]["index"]}".
    Why doesn't it work like this?:
    ---------------------------
    1. for($j=0; $j<6; $j++){
    2. $temp
    =str_replace("term","{$field[$j][0]["index"]}","{$field[$j][2]["index"]}");
    3. echo "<br>temp: $temp";
    4. $field[$j][2]["index"]=$temp;
    5. echo "<br>utskrift: ${$field[$j][2][index]}";
    6. }
    7. echo "<br>field: <br>";
    8. print_r($field);
    -------------------------
    Line 3 and 6 gives the same, and correct outprint, but in line 8 nothing is
    changes from how it looked before the loop. "term" is still term and not
    replaced.
    What am I doing wrong!?

    Thanks!

    anette

    ------------------------------------------------------------
    Bra att veta:
    Hardware is the part of a computer that can be kicked,
    if all you can do is swear at it, then it must be software.
    ------------------------------------------------------------
    Anette Löfquist e99al
    icq#: 69648675

    attached mail follows:


    I have an array, $field, like following:

    Array ( [0] =>
                 Array ( [0] => Array ( [disp] => computer
                                                     [index] => computer )
                             [1] => Array ( [disp] => or
                                                     [index] => or )
                             [2] => Array ( [disp] => title
                                                     [index] => at 1=4 term
                                                     [name] => ti )
                              )
                [1] =>
                 Array ( [0] => Array ( [disp] => human
                                                     [index] => human)
                             [1] => Array ( [disp] => or
                                                     [index] => or )
                             [2] =>Array ( [disp] => subject
                                                     [index] => at 1=5 term
                                                     [name] => s )
                               )
                 [2] =>
                 Array ( [0] => Array ( [disp] =>
                                                     [index] => John)
                             [1] => Array ( [disp] => or
                                                     [index] => or )
                             [2] => Array ( [disp] => tsd
                                                     [index] => at 1=5 term at
    7=44 term
                                                     [name] => tsd)
                           )
                [3] =>
                  Array ( [0] => Array ( [disp] =>
                                                      [index] => Eric)
                              [1] => and
                              [2] => Array ( [disp] => subject
                                                      [index] => at 9=5 term
                                                      [name] => s )
                               )
                [4] =>
                   Array ( [0] => Array ( [disp] =>
                                                       [index] => Main)
                               [1] => and
                               [2] => Array ( [disp] => subject
                                                       [index] => at 9=5 term
                                                       [name] => s )
                                )
                 [5] =>
                   Array ( [0] => Array ( [disp] =>
                                                       [index] => Dog)
                               [1] => and
                               [2] => Array ( [disp] =>
                                                       [index] =>
                                                       [name] => )
                               )
    )

    In each string, $field[$j][2]["index"] in the array, will I replace 'term'
    with the
    word in "{$field[$j][0]["index"]}".
    Why doesn't it work like this?:
    ---------------------------
    1. for($j=0; $j<6; $j++){
    2. $temp
    =str_replace("term","{$field[$j][0]["index"]}","{$field[$j][2]["index"]}");
    3. echo "<br>temp: $temp";
    4. $field[$j][2]["index"]=$temp;
    5. echo "<br>utskrift: ${$field[$j][2][index]}";
    6. }
    7. echo "<br>field: <br>";
    8. print_r($field);
    -------------------------
    Line 3 and 6 gives the same, and correct outprint, but in line 8 nothing is
    changes from how it looked before the loop. "term" is still term and not
    replaced.
    What am I doing wrong!?

    Thanks!

    anette

    ------------------------------------------------------------
    Bra att veta:
    Hardware is the part of a computer that can be kicked,
    if all you can do is swear at it, then it must be software.
    ------------------------------------------------------------
    Anette Löfquist e99al
    icq#: 69648675

    attached mail follows:


    Hi !

    I think the simplest thing to do is to convert your excel file to a CSV
    file (it an ASCII format ).

    jean-arthur

    At 17:16 28/06/01 +0530, Sharat Hegde wrote:
    >Hello,
    >
    >I have a web site on a Unix environment running PHP 3.0 and MySQL.
    >
    >I need to convert data in an Excel format to a MySQL database format
    >periodically based on the input feed received in Excel format. the
    >conversion to MySQL is not a problem at all.
    >
    >What I need help is to read data from an Excel 2000 format. How do I
    >retrieve data from Excel 2000? The data is basically a 2 columnar data with
    >currency names and conversion values.
    >
    >Thanks in advance.
    >
    >Regards,
    >Sharat
    >
    >--
    >PHP General Mailing List (http://www.php.net/)
    >To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    >For additional commands, e-mail: php-general-helplists.php.net
    >To contact the list administrators, e-mail: php-list-adminlists.php.net

    ----------------------------------------------------------------
    EuroVox
    4, place Félix Eboue
    75583 Paris Cedex 12
    Tel : 01 44 67 05 05
    Fax : 01 44 67 05 19
    Web : http://www.eurovox.fr
    ----------------------------------------------------------------


     
    From: php-general-digest-helplists.php.net
    Date: Sat Jun 30 2001 - 07:50:15 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 30 Jun 2001 12:50:15 -0000 Issue 727

    Topics (messages 55545 through 55620):

    passwd in php....
            55545 by: Bruno Freire

    Re: PHP & PGP
            55546 by: Maxim Derkachev
            55553 by: David Price
            55565 by: Chris Mason
            55567 by: Chris Mason
            55571 by: scott [gts]
            55579 by: Henrik Hansen

    how to determine size of gz-handler output
            55547 by: Sebastian Stadtlich
            55619 by: teo.gecadsoftware.com

    Re: Stopping stolen / spoofed / linked sessions
            55548 by: Tom Rogers
            55557 by: Rasmus Lerdorf

    Re: extract data from html
            55549 by: Adrian D'Costa
            55573 by: CC Zona
            55617 by: Hugh Bothwell

    Please Help......
            55550 by: Man He

    Temporary file during image create trouble
            55551 by: Alexander Rybin
            55559 by: Alexander Rybin

    Function No Longer works
            55552 by: Black S.
            55616 by: Hugh Bothwell

    new break tags
            55554 by: bill

    simple message board (no login)
            55555 by: Adrian Murphy

    Re: Line Breaks in <textarea>
            55556 by: David Robley

    Re: PHP and Windows XP
            55558 by: David Price
            55580 by: Micha Ober

    Regular Expression help
            55560 by: Clayton Dukes
            55561 by: Clayton Dukes
            55609 by: J Smith

    php / apache
            55562 by: Pétur Björn Thorsteinsson

    wierd array problem using mysql_fetch_array and mssql_fetch_array
            55563 by: James Crowley

    Re: search for a better php source code viewer
            55564 by: James Crowley

    Re: calculate download time
            55566 by: Tyrone Mills

    Re: PHP crashing IIS 5 on Wnidows 2K
            55568 by: Brave Cobra

    Re: Filtering out \ when a ' is user entered?
            55569 by: Richard Lynch
            55576 by: Christian Reiniger

    Re: Function
            55570 by: Delbono

    how to flip an image using GD?
            55572 by: Noah Spitzer-Williams
            55615 by: Hugh Bothwell

    Insight into Object Serialization and Loading
            55574 by: Brian Tanner

    Re: Pricing Advice Needed
            55575 by: Christian Reiniger

    Re: Convert (join)
            55577 by: scott [gts]

    Cannot determine HOSTNAME in 4.0.6?
            55578 by: Lance Lovette

    Convert
            55581 by: Roman

    Numerical refs to assoc array suddenly "undefined offset"??
            55582 by: CC Zona
            55584 by: Brian Tanner

    Re: What does this error mean?
            55583 by: infoz
            55591 by: scott [gts]
            55594 by: Mark Roedel

    Re: Mail slow
            55585 by: Tim Ward
            55602 by: Don Read

    Uploading files
            55586 by: David A Castillo

    Re: Week Number
            55587 by: Luke Welling
            55588 by: scott [gts]
            55590 by: Data Driven Design
            55593 by: Matt \"TrollBoy\" Wiseman
            55603 by: Don Read
            55618 by: Hugh Bothwell

    $REMOTE_ADDR subnet consistency?
            55589 by: Nathan

    newbie has include path error
            55592 by: Daniel Goldin
            55596 by: CC Zona

    Question on Commercial Offerings
            55595 by: Thomas Deliduka
            55620 by: teo.gecadsoftware.com

    win 98 + php4 + pws4
            55597 by: cmoehle
            55614 by: Hugh Bothwell

    Auto submit form, How?
            55598 by: Fates
            55601 by: Peter Dudley

    4.0.6 + mcrypt = segmentation fault
            55599 by: Robert Mena

    session.gc_probablity
            55600 by: Damian Sobieralski

    Re: closing window after submit
            55604 by: Jason Lustig
            55608 by: Jerry Lake

    Capturing output of shell script.
            55605 by: Charles Williams

    Printing a string issue
            55606 by: Craig Simon

    perl and php data-structure interoperability
            55607 by: scott [gts]

    newbie help!
            55610 by: McShen
            55613 by: Hugh Bothwell

    IMAP Question.
            55611 by: Yan Lam

    Zend core object creation
            55612 by: Dean Hall

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    Hi...

    My name is Bruno.

    Somebody Knows how to use passwd in php?
    I mean, create linux users on my httpd server using a php page.

    I already try the EXEC(), but i had no sucess..

    Any help will be needed....

    Thanks everyone....

    attached mail follows:


    Hello Pepe,

    Thursday, June 28, 2001, 6:05:48 PM, you wrote:

    PL> I want to encrypt mails coming from my webform with pgp. Is it possible?

    It is possible. Also, If you had been chosen GNUPG instead of PGP you
    could use the class located at http://phpclasses.upperdesign.com/browse.html/package/245

    -- 
    Best regards,
    Maxim Derkachev mailto:max.derkachevbooks.ru
    System administrator & programmer,
    Symbol-Plus Publishing Ltd.
    phone: +7 (812) 324-53-53
    www.books.ru, www.symbol.ru 
    

    attached mail follows:


    It is possible, but I have not found any good tutorials on the subject. There is one on Web Monkey at this address:

    http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial1.html

    All the commands were wrong for the PGP version (6.5) that was loaded on my web server. I found that the following worked:

    1. Make sure you know where PGP is located on the server. Try a whereis pgp. On my system it was installed in /usr/bin.

    2. Make sure the nobody (or the user the web server runs as) user has a home directory defined in your passwd file. This will cause problems when you setup the key ring. (do not define a shell for this user!)

    3. Copy an ASCII version of your public key into a file that the nobody user can access.

    4. su into the nobody account

    5. Create a signing key for the nobody user this this command: pgp -kg There is no need to create an encryption key.

    6. Add your public key to nobody's keying with this command: pgp -ka /path/to/your/public/key

    7. Assign an trust level to the key: pgp -ke 'Usuerid' If you don't know the userid for the key use pgp -kvv to find out

    8. Sign the key with: pgp -ks 'your user id' -u 'their userid'

    Then the form and php script in the Web monkey tutorial should work. Let me know if this helps and good luck.

    David Price

    -----Original Message----- From: Pepe Lopez [mailto:lopezpepe-lopez.com] Sent: Thursday, June 28, 2001 7:06 AM To: php-generallists.php.net Subject: [PHP] PHP & PGP

    Hi there,

    I want to encrypt mails coming from my webform with pgp. Is it possible?

    regards, Lopez

    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    Yes, here's some code, adapt to your needs.

    -----Original Message----- From: Pepe Lopez [mailto:lopezpepe-lopez.com] Sent: Thursday, June 28, 2001 10:06 AM To: php-generallists.php.net Subject: [PHP] PHP & PGP

    Hi there,

    I want to encrypt mails coming from my webform with pgp. Is it possible?

    regards, Lopez

    -- 
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    class eZGPG { /*! \static Encrypt function */ function eZGPG( $plaintxt, $keyname, $wwwuser) {

    $this->keyname=$keyname; if ( sizeof( $this->keyname ) == 0 ) $this->body = "WARNING: No Keys Specified";

    $this->pcmd = "echo '$plaintxt' | "; $this->pcmd .= $this->pathtogpg.$this->encryptcommand; $this->pcmd.= " -a -q --no-tty -e -u ". $wwwuser . " --homedir '" . $this->home ."' -r '". $this->keyname . "' ";

    //clear return array and execute encrypt command unset( $ret ); exec($this->pcmd, $ret);

    //loop return array for encrypted text foreach( $ret as $key=>$value ) { $this->body .= $value; $this->body .="\n"; }

    }

    // return $this->body function getbody() { return $this->body; }

    var $body; var $keyname = array(); var $ret = array(); var $pathtogpg = "/usr/bin/"; var $pcmd; var $encryptcommand = "gpg --encrypt --batch --no-secmem-warning"; var $home = "/var/www/.gnupg";

    }

    -----Original Message----- From: Pepe Lopez [mailto:lopezpepe-lopez.com] Sent: Thursday, June 28, 2001 10:06 AM To: php-generallists.php.net Subject: [PHP] PHP & PGP

    Hi there,

    I want to encrypt mails coming from my webform with pgp. Is it possible?

    regards, Lopez

    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    possible? yes. feasable? yes and no...

    1) encrypting traffic from the user's browser to your server is extremely impractical.

    2) encrypting information on the server with PGP is a whole lot easier... there are a bunch of PHP -> PGP interface packages i've seen around, so do some searching and see what you pull up.

    after a quuick search at PHP Classes, i found this class that will encrypt text with PGP and attach it to an email message... i'm sure that you could rip out the pertinent portions of code and use it for your own ends: http://phpclasses.upperdesign.com/browse.html/package/39

    > -----Original Message----- > From: Pepe Lopez [mailto:lopezpepe-lopez.com] > Subject: [PHP] PHP & PGP > > Hi there, > > I want to encrypt mails coming from my webform with pgp. Is it possible? > > regards, > Lopez

    attached mail follows:


    "Pepe Lopez" <lopezpepe-lopez.com> wrote:

    > Hi there, > > I want to encrypt mails coming from my webform with pgp. Is it possible?

    this hack might help you

    http://alt-php-faq.org/#id65

    -- 
    Henrik Hansen
    

    attached mail follows:


    Hi all

    I'd like to know how small my content gets when i use ob_gzhandler. so far i tried $cont=ob_get_contents(); $length=strlen($cont); echo "<!-- $length -->\n";

    but it outputs <!-- 17280 -->

    while apache says in its logfile: 217.81.41.121 - - [29/Jun/2001:12:43:59 +0200] "GET / HTTP/1.1" 200 2028

    i'm starting to get confused...

    Sebastian

    attached mail follows:


    Hi Sebastian! On Fri, 29 Jun 2001, Sebastian Stadtlich wrote:

    > Hi all > > I'd like to know how small my content gets when i use > ob_gzhandler. > so far i tried > $cont=ob_get_contents(); > $length=strlen($cont); try using $length = ob_get_length(); instead.

    > echo "<!-- $length -->\n"; > > but it outputs > <!-- 17280 -->

    -- teodor

    attached mail follows:


    Hi When you start a session for the first time store remote host info and validate it on subsequent accesses. Tom

    At 10:48 PM 28/06/01, teogecadsoftware.com wrote: >Hi adam! >On Wed, 27 Jun 2001, adam (dahamsta) wrote: > > > [Please copy replies off-list.] > > > > I want to use PHP4 sessions for authentication, but I'm having difficulty > > understanding how to get around users spoofing, stealing or linking > sessions. > > Here's an example: Alice sends Bob a link from a site she's logged into. > > Alice has cookies turned off in her browser, so the session id will be > in the > > URL she sends Bob. Eve intercepts the message, follows the link and now > she > > can take over Alice's session, and any data that is associated with that > > session. For that matter, Bob can do the same thing. > > > > I can think of lots of ways around this, but most of them are kludges that > > don't really cut it. I can store a second authentication value in a > cookie, > > but that would require cookies, which isn't acceptable. I could > propogate a > > second authentication variable in the URL, but that's a lot of hassle and > > defeats the purpose of PHP sessions. I can check the HTTP_REFERER to > see if > > the user came from my own site, but that can be spoofed. I can log and > check > > the users IP address, but that can't be relied upon. > > > > Is there any reliable way around this? Am I missing something obvious? > > >there was a long and interesting thread on bugtraq securityfocus.com >recently regarding this (it started w/ uploading images, I don't recall what >was the subject, but you can figure some keywords to search for ;) > >Among proposed solutions was to send a ticket and validate it for each >operation. > >Worth a search&read if you're a web developer. > >-- teodor > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    > I want to use PHP4 sessions for authentication,

    Ok, stop right there. Sessions and authentication have nothing to do with each other. To create a secure authenticated site you should be using HTTP-based authentication over SSL. Sessions are simply for maintaining state across http requests and have nothing to do with authentication.

    -Rasmus

    attached mail follows:


    On Thu, 28 Jun 2001, CC Zona wrote:

    > In article <Pine.LNX.4.21.0106281127050.2460-100000pcs.pcsadvt.com>, > adrianpcsadvt.com ("Adrian D'Costa") wrote: > > > 1. Open the html file in read only mode > > 2. Start reading the html file till I encounter a <td> tag (I don't know > > how to do this) > > 3. Grab that data after the <td> tag (and then what?) > > See <http://php.net/manual/en/function.fopen.php> and > <http://php.net/manual/en/function.fgetss.php> plus the chapter for > whatever DBMS you want to drop the file contents into.

    Thanks. One thing just reading the manual without the idea of how the function works is of no use. Some examples would help. In fact I did use fopen, fgets, fgetss but the problems is that the html tag that I am looking is <td>. Now this is easy but if <td width="25%"> or <td colspan="7"> would give a problem.

    Adrian

    attached mail follows:


    In article <Pine.LNX.4.21.0106291008540.1855-100000pcs.pcsadvt.com>, adrianpcsadvt.com ("Adrian D'Costa") wrote:

    > > > 1. Open the html file in read only mode > > > 2. Start reading the html file till I encounter a <td> tag (I don't know > > > how to do this) > > > 3. Grab that data after the <td> tag (and then what?) > > > > See <http://php.net/manual/en/function.fopen.php> and > > <http://php.net/manual/en/function.fgetss.php> plus the chapter for > > whatever DBMS you want to drop the file contents into. > > Thanks. One thing just reading the manual without the idea of how the > function works is of no use.

    It should be exactly "of use". Explaining how a function works, and how to use it, is the point of a manual. If there are finer points that you need clarification on *after reading the manual entry*, that's understandable. But for the most part the manual is clear and accessible, even to a newbie. I learned PHP, as a complete novice to that language and programming in general, by simply reading the manual through.

    > Some examples would help.

    ..which is why most manual entries include 1-2 "official" examples, plus several others in the user annotations. If you're not reading the annotated version of the manual (as in the links provided), then you're only scratching the surface of what the manual has to offer.

    > In fact I did use > fopen, fgets, fgetss but the problems is that the html tag that I am > looking is <td>. Now this is easy but if <td width="25%"> or <td > colspan="7"> would give a problem.

    See <http://php.net/manual/en/function.strip_tags.php> (as is noted in the "see also" note and user annotation for fgetss, BTW; did you bother to read the links provided before proclaiming them "of no use"?)

    -- 
    CC
    

    attached mail follows:


    > > > 1. Open the html file in read only mode > > > 2. Start reading the html file till I encounter a <td> tag (I don't know > > > how to do this) > > > 3. Grab that data after the <td> tag (and then what?) > > > > See <http://php.net/manual/en/function.fopen.php> and > > <http://php.net/manual/en/function.fgetss.php> plus the chapter for > > whatever DBMS you want to drop the file contents into. > > Thanks. One thing just reading the manual without the idea of how the > function works is of no use. Some examples would help. In fact I did use > fopen, fgets, fgetss but the problems is that the html tag that I am > looking is <td>. Now this is easy but if <td width="25%"> or <td > colspan="7"> would give a problem.

    (grimace) The PHP manual is actually very well written; I can usually find exactly what I need in < 10s. I think your complaint just covers sloppy thinking.

    I'd think you should be able to find screen-scraper code around; if not, try this:

    - search for '<td'. NOTE: use a case-insensitive search! - search for the first trailing '>'. Save (this character position + 1). - search for the first trailing '</td>'. Again, case-insensitive! - store everything between the two; strip all HTML tags, add slashes, and store it. - increment your file position by 5 characters and repeat.

    I'd give you actual code, but I think you could use some manual practice (smirk).

    attached mail follows:


    Hi all,

    Can anybody give me a guideline or idea on how to write a PHP scriot which is used to create a domain or sub-domain and a default page and a same time. My OS is Red Hat Linux 6.1.

    For example, in my program, when i press "activate' button, the script will create me a sub-domain try.php.com and a default page index.php is created for that sub-domain. Thanks for advice...... _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    attached mail follows:


    Hello!

    Can anybody help me with some problem?

    Here it is.

    I need to create PNG image with PHP script. When I try to create the image with ImagePNG(), I get warning: "PHP Warning: imagepng: unable to open temporary file in ../../include/Gr_sektor.php on line 413". Image is not created, as you are right thinking.

    What temporary file? Where is it usually created? How can I change the place to another? Or, may be, I should give some rights for my anonymous user for specific folder (what?).

    The exterior: Win2000Srv, IIS 5.0, anonimous (IUSR_SERVER2) user for access.

    Help, please!

    --
    Alexander Rybin
    unglukeropenpower.ru
    ICQ: 13391736
    ôÅÌ./æÁËÓ: +7-(08439)-62194
    Pager: 8964mtc.obninsk.ru
    

    attached mail follows:


    Hello!

    Can anybody help me with some problem?

    Here it is.

    I need to create PNG image with PHP script. When I try to create the image with ImagePNG(), I get warning: "PHP Warning: imagepng: unable to open temporary file in ../../include/Gr_sektor.php on line 413". Image is not created, as you are right thinking.

    What temporary file? Where is it usually created? How can I change the place to another? Or, may be, I should give some rights for my anonymous user for specific folder (what?).

    The exterior: Win2000Srv, IIS 5.0, anonimous (IUSR_SERVER2) user for access.

    Help, please!

    --
    Alexander Rybin
    unglukeropenpower.ru
    ICQ: 13391736
    ôÅÌ./æÁËÓ: +7-(08439)-62194
    Pager: 8964mtc.obninsk.ru
    

    attached mail follows:


    I have found the problem with my previous post and PHP functions no longer working. It seems the code:

    include("http://www.domain.com/path/to/file.txt");

    no longer works? If I type in a complete directory path then it works great, but no Internet include, any one know why?

    Thanks

    attached mail follows:


    Look for 'allow_url_fopen' in your config file.

    ""Black S."" <franksplace1email.msn.com> wrote in message news:9hi6hi$2s9$1w153.z064000151.sjc-ca.dsl.cnc.net... > I have found the problem with my previous post and PHP functions no longer > working. It seems the code: > > include("http://www.domain.com/path/to/file.txt"); > > no longer works? If I type in a complete directory path then it works great, > but no Internet include, any one know why?

    attached mail follows:


    I'm trying to fix two regular expressions to work with the new break tags.

    This

    $breaks=preg_match_all("/<br>\s+<br>/i", "$text", $parts)

    and this

    preg_replace("/<br>\s+<br>/i","</P><P class=\"doserif\">",$text)

    Now that PHP 4.0.5 has changed the nl2br() function, it no longer replaces new lines with:

    <br>

    but instead with the new XHTML compliant break tags:

    <br />

    I tried just substituting the new tag into the above regular expressions to no avail. Any ideas?

    kind regards,

    bill hollett

    attached mail follows:


    anyone got a simple threaded message board where the poster doesn't have to login but can leave there name. OR anyone modified the nuke forum so anonymous users can leave their name?

    attached mail follows:


    On Thu, 28 Jun 2001 04:44, Nathan Cook wrote: > Hello- > > I am selecting a value from a blob field in a mysql db. The value > looks like this: > > Test 1....2...3 \r \n <br> %0%D Test > > When I print that value in a <TEXTAREA>$value</TEXTAREA> -- The > textarea returns exactly what you see above. I am trying to get it to > display a line break (so that I can store the line breaks in the db). > If you can shed any light on this subject, please share. > > Thank You, > Nathan Cook > ncookpcsedu.com

    You might want to make your textarea tag thus:

    <TEXTAREA WRAP=VIRTUAL>$value</TEXTAREA>

    to show any EOLs as line breaks.

    Cue <RANT> from Richard Lynch on TEXTAREA :-)

    -- 
    David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
    CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  
    

    Spell chequers dew knot work write.

    attached mail follows:


    Windows XP is the combination of the two lines.

    -----Original Message----- From: Young C. Fan [mailto:yf32cornell.edu] Sent: Thursday, June 28, 2001 5:00 AM To: php-generallists.php.net Subject: Re: [PHP] PHP and Windows XP

    ""elias"" <elias_bachaalanyyahoo.com> wrote in message news:9heq8k$e6$1w153.z064000151.sjc-ca.dsl.cnc.net... > Why not? > if it works with WinME and PWS, I suppose it will with XP too.

    I was under the impression that XP is the next in line after Win 2000, not the 95/98/Me line.

    Young

    <snip>

    -- 
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    Yes, it will work. I know somebody, who has installed Apache 1.3.20 and PHP 4.0.5. > --- elias <elias_bachaalanyyahoo.com> wrote: > > From pop_server."8745454"pop.gmx.net Thu Jun 28 > > 17:53:33 2001 > > Return-Path: > > > <php-general-return-55461-michaober=gmx.delists.php.net> > > X-Flags: 0000 > > Delivered-To: GMX delivery to michaobergmx.de > > Received: (qmail 1264 invoked by uid 0); 28 Jun 2001 > > 16:47:13 -0000 > > Received: from w153.z064000151.sjc-ca.dsl.cnc.net > > (HELO toye.php.net) (64.0.151.153) > > by mx0.gmx.net (mx09) with SMTP; 28 Jun 2001 > > 16:47:13 -0000 > > Received: (qmail 609 invoked by uid 1013); 28 Jun > > 2001 08:35:32 -0000 > > Mailing-List: contact > > php-general-helplists.php.net; run by ezmlm > > Precedence: bulk > > list-help: <mailto:php-general-help