Re: [PHP] Better standards in PHP-coding
On Sunday 21 April 2002 11:26, The_RadiX wrote: > Hard in email to show as the character spacing is not equal like good text > editors.. Set your mail client to use a fixed width font -- Lucida Console is my preferred font. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Q: Do you know what the death rate around here is? A: One per person. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Attachments
On Sunday 21 April 2002 06:02, Jason Soza wrote: > They actually vary as to where they become truncated - some are at 633 > bytes, some are at 1kb. The odd thing is that the PHP script I'm using to > process the form actually pics up the correct filesize, it reports it to me > under a $filesize variable I've setup. It'll report, say file2_filesize...: > 69147 but the actual attachment is 1kb. Please post your code. > Like I said, I have this same problem using both Perl scripts and PHP > scripts. In php.ini my post_max size is 8M and upload_max_filesize is 2M. > Looking through the Apache mailing list archives, it looks like others > running Apache on win32 have experienced the same problems, but there are > no answers. I'm a little stumped myself! Have you narrowed down the problem to whether the uploaded file is truncated or whether the mail attachment process truncates the file? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* < EVACUATION ROUTE < */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session Tutorial
Recently I have been trying to work with sessions however I must admit that I am not sure I completely understand them. Does anyone know of a good tutorial that thoroughly explains sessions? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Strange need - "Repeater" appliation
On 20 Apr 02, at 11:48, Peter Janett wrote: > I need to create a simple app that works like a radio repeater, in that is > simply passes information it receives through to another script, in both > directions. > > In other words, a remote application located at www.domain.com/app.php > accepts variable1, variable2, and variable3, and returns a response based on > that information. > > I want to put a "repeater app" in the middle of the browser and the url > above, so information is passed to www.mydomain.com/process.php, and is not > changed at all, but is sent to www.domain.com/app.php, and the response from > www.domain.com/app.php is sent back to www.mydomain.com/process.php, so the > results of sending the same information to either url will be exactly the > same. > > I'm not trying to do packet sniffing or anything, just trying to "mask" a > url. It would be nice if I could pass cookies through as well. > > Any help, resources, ideas, etc appreciated. i have the following idea if you want to use standard HTML-PHP techniques: if the amount of information is not too large, make use of URL- attached variables and pass them to your repeater script, which contains a form. Dont forget to attach also ...&submit=yes to it. parse recieved variables in that script with and parsestr($argv[0]) juergen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Better standards in PHP-coding
Yes thank you Jason.. I could have.. But I was busy.. And _usually_ my posts here are somewhat ignored so I thought better than to spend _too_ much time on it.. Thanks anyway.. ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student :: 04475739 ::: - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 21, 2002 5:53 PM Subject: Re: [PHP] Better standards in PHP-coding > On Sunday 21 April 2002 11:26, The_RadiX wrote: > > > Hard in email to show as the character spacing is not equal like good text > > editors.. > > Set your mail client to use a fixed width font -- Lucida Console is my > preferred font. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Q: Do you know what the death rate around here is? > A: One per person. > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 21 Apr 2002 10:45:02 -0000 Issue 1299
php-general Digest 21 Apr 2002 10:45:02 - Issue 1299 Topics (messages 93846 through 93875): Re: [PHP-DB] Re: [PHP] Re: Cross DB application 93846 by: Manuel Lemos Re: debugger 93847 by: Evan Re: Comments Display, with replies 93848 by: Miguel Cruz 93850 by: Rene Visser variables 93849 by: Jule Slootbeek 93859 by: Justin Blake I would like to get a script to display in a frame 93851 by: Jeffrey D. Means grab a number 93852 by: Craig Westerman 93868 by: Maxim Maletsky Ming and/or libswf 93853 by: Richard Lynch 93854 by: Rasmus Lerdorf 93867 by: Richard Lynch Better standards in PHP-coding 93855 by: Frank 93857 by: Mark Charette 93860 by: michael kimsal 93861 by: michael kimsal 93862 by: michael kimsal 93863 by: michael kimsal 93864 by: The_RadiX 93865 by: The_RadiX 93866 by: The_RadiX 93869 by: PHP freak 93871 by: Jason Wong 93875 by: The_RadiX Re: who added the damn slashes? 93856 by: Justin French Re: Registration Form 93858 by: Justin French constructor in php4? 93870 by: bob Re: Attachments 93872 by: Jason Wong Session Tutorial 93873 by: Sebastian A. Re: Strange need - "Repeater" appliation 93874 by: jyrgen.gmx.de 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] -- --- Begin Message --- Hello, Richard Ellerbrock wrote: > > If you want to hear experiences of people that tried Metabase, try > > asking in Metabase mailing list ( > > http://groups.yahoo.com/group/metabase-dev/ ) or BinaryCloud mailing > > lists ( http://binarycloud.tigris.org/servlets/ProjectMailingListList ). > > I think Alex Black (BinaryCloud project leader) has tried both MySQL and > > Oracle with Metabase. > > I have done MySQL (MyISAM, INNODB), PostgreSQL and Oracle 9i with AdoDB - > see http://iptrack.sourceforge.net. Works just fine for me. The hardest > part was to get around limitations of certain databases - like Oracle > does no support record count. This is not impossible to get around, but If you would have used Metabase you would not have that problem because Metabase has a function that you may call any time after you execute a select query that returns the number of rows contained in the result set. That is a standard feature of Metabase that works with every database including Oracle. Regards, Manuel Lemos --- End Message --- --- Begin Message --- I need PHP because I made a site for my course at university and they use only Linux so I learned PHP. >> Seems that you´re lucky with M$ and their ek$pen$ive environments. Zend Studio 2.0 ==> 195$ NusPhere ==> 299$ I used PHP Edit but if I need to test a script that get values from POST or GET parameters I need first to recreate them within the IDE. Does exists something to debug PHP within the browser, just like M$ Script Debugger? DBG listen some port and some host but I didn't found instructions that explain to use it. Thanks again, Evan <[EMAIL PROTECTED]> ha scritto nel messaggio news:<[EMAIL PROTECTED]>... At 20.04.2002 21:15, you wrote: >Hi to all!!! >Can anyone tell me how to debug in PHP? >When I use ASP simply I write "stop" (VB) or "debugger" (JSCRIPT) to set a >breakpoint and open the Microsoft Script Debugger. >With PHP I can't find a way to do a similar thing. >I downloaded the DBG PHP debugger but I don't understand how to use it like >MSD. >My config is: >PHP 4.1.2 + IIS5 + WinXPpro > >I'm bored to use echo "$something" for debug :-( > >Thanks in advance for your help, >Evan I´m not shure, but ZEND offers some kind of IDE and nusphere has an IDE which has a debugger built in , but who needs this?? Use an editor with macro functionality so u can set a macro which makes something like if($debug){ echo something}, then you can set one var to turn debugging on/off. Are you shure you need PHP for your problems? Seems that you´re lucky with M$ and their ek$pen$ive environments. Oliver -- --- End Message --- --- Begin Message --- On Sat, 20 Apr 2002, Julio Nobrega wrote: > I have maybe an easy to solve problem, but I haven't come with a logical > way to do it. I am builing a discussion site (a la Kuro5hin.org), and > there's a sql query to retrieve comments attached to an article. It grabs > their titles, along with some more informatio. What I want is to display the > comments and the replies below them. It's been implemented in thousands of > other scripts, but I can't figure out how to do with only one sql query > (even if it uses Joins). That's important, since I expect the site to be > very popular here in Brazil (let's hope!) > > So, any advices about how to d
[PHP] Variable substitution
Hi, I am trying to make an e-mail form so that I can generate an e-mail to send to all the users of the system. In the message part I want to be able to do something like this. Dear $fName, Welcome to . When it then sends the e-mail, it should substitute $fName with the current row in the database. For some reason it does not get automatically substituted when using mail(to, subject, message). Is there a function that substitutes variables with there values and returns a string. Any help is greatly appreciated, Thanks, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variable substitution
On Saturday 20 April 2002 17:08, Greg Hulands wrote: > Hi, > I am trying to make an e-mail form so that I can generate an e-mail to send > to all the users of the system. In the message part I want to be able to do > something like this. > > Dear $fName, > Welcome to . > > When it then sends the e-mail, it should substitute $fName with the current > row in the database. For some reason it does not get automatically > substituted when using mail(to, subject, message). Is there a function that > substitutes variables with there values and returns a string. Depending on your existing code, your options include eval(), substr_replace(), str_replace(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Make me look like LINDA RONSTADT again!! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Better standards in PHP-coding
Hi I like the following form, not sure how much time gets wasted in parsing but it's easy > for me < to follow :) while(something): if(something else): yada; else: forget it; endif; endwhile; Tom At 11:51 AM 21/04/2002, Frank wrote: >"The nice thing about standards is that there are so many to choose between". > >Subject: Uses of block markers in coding snip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Session Tutorial
[EMAIL PROTECTED] wrote: > Recently I have been trying to work with sessions however I must admit that > I am not sure I completely understand them. Does anyone know of a good > tutorial that thoroughly explains sessions? > Thanks in advance I can write one if you want, send me a mail. Greetings, René -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I would like to get a script to display in a frame
[EMAIL PROTECTED] wrote: > Does anyone have any experience with making script output display in a > frame?? I would like to get this to happen on an e-commerce site I am > designing and am stuck. I have tried action=myscript.php target=main> with no success. Please help. > > Jeff Means > CIO for PicoTech > http://www.picotech.net Hi Jeff, maybe it's a good idea to create a hidden HTML-form in the output frame. In that case you can use javascript in your input frame in order to send the given values to the hidden form in your output frame. After that you can submit the hidden form using the same javascript in your input form. For example your output frame is called "output" To fill your hidden frame with input data: output.document.forms[0].hidden_name.value="value"; I would simply create a hidden submit-button (using css display-function) You can activate this button out of javascript with: output.document.forms[0].submit.click(); It's very simple, but I think it should work. Greetings, René -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: creating table help
[EMAIL PROTECTED] wrote: > I'm very new to php and PostgreSQL. I keep getting the following error > when I try to create a table: > Warning: Wrong parameter count for pg_exec() in > /var/www/html/elkan/createtable.php on line 23 > The table, ghdsl could not be created > Here is the code I'm using: > // set variables > $tablename = "ghdsl"; > $dbname = "testingdb"; > $user = "testinguser"; > $password = "xx"; > $connect = "pg_connect($dbname, $user, $password)"; > $query = "CREATE table $tablename (id INT UNSIGNED NOT NULL > AUTO_INCREMENT PRIMARY KEY, ip TEXT, customer TEXT, dslphone TEXT, date > TEXT, vpivci TEXT)"; > if (pg_exec($dbname, $query, $connect)) > { > print ("The table, $tablename was successfully created"); > } else { > print ("The table, $tablename could not be created"); > } > ?> > thanks for any help. Hi there, the function pg_exec only takes two strings withing his brackets. 1. Integer connection index (returned by pg_connect() ) 2. Query string Try changing your code to: if (pg_exec($connect, $query)) Greetings, René -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: I would like to get a script to display in a frame
Umm Can't you simply use: output.document.forms[0].submit() I did Javascript for 3 years but that was a while back now.. But there is most definitely a submit function for forms so you don't have to use that queer invisible submit trick.. ... Hope that helps ... ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student :: 04475739 ::: - Original Message - From: "R. Visser" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 21, 2002 9:22 PM Subject: [PHP] Re: I would like to get a script to display in a frame > [EMAIL PROTECTED] wrote: > > > Does anyone have any experience with making script output display in a > > frame?? I would like to get this to happen on an e-commerce site I am > > designing and am stuck. I have tried > action=myscript.php target=main> with no success. Please help. > > > > > Jeff Means > > CIO for PicoTech > > http://www.picotech.net > > > Hi Jeff, > > maybe it's a good idea to create a hidden HTML-form in the output frame. > > In that case you can use javascript in your input frame in order to send > the given > values to the hidden form in your output frame. After that you can submit > the hidden form using the same javascript in your input form. > > For example your output frame is called "output" > > To fill your hidden frame with input data: > >output.document.forms[0].hidden_name.value="value"; > > > I would simply create a hidden submit-button (using css display-function) > > You can activate this button out of javascript with: > >output.document.forms[0].submit.click(); > > > It's very simple, but I think it should work. > > > Greetings, > > René > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Thanks
Thanks everyone for your help.
[PHP] inline CGI
Hello, I like to include the html-output of a perl script in my php-page. The perl script is on the same server as the php file, so I use de passthru( [docroot/path/perl-file] ) function to include de html output of the script in my php page. Basicly yhis works fine, but I don't know how to pass parameters to this script. normally the perl script is executed by http://website/path/perl-file?paramA=A¶mB=B. I have to pass those parameters in order to get the right html output. Any help would be appreciated. Werner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] inline CGI
virtual() On Sun, 21 Apr 2002, Werner de Schepper wrote: > Hello, > > I like to include the html-output of a perl script in my php-page. The perl > script is on the same server as the php file, so I use de passthru( > [docroot/path/perl-file] ) function to include de html output of the script > in my php page. > Basicly yhis works fine, but I don't know how to pass parameters to this > script. normally the perl script is executed by > http://website/path/perl-file?paramA=A¶mB=B. I have to pass those > parameters in order to get the right html output. > > Any help would be appreciated. > > Werner > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] can you show an example?
the manual says: reference which returned from a function can be passed by reference. i can not think it is useful . can you show an example? thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] inline CGI
Hello Rasmus, Thank you. Actually I did try the virtual function before and but the perl didn't seem to produce any output. Now I looked better: I switched of all warnings, including the request execution failed warning!!! Greetings Werner "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > virtual() > > On Sun, 21 Apr 2002, Werner de Schepper wrote: > > > Hello, > > > > I like to include the html-output of a perl script in my php-page. The perl > > script is on the same server as the php file, so I use de passthru( > > [docroot/path/perl-file] ) function to include de html output of the script > > in my php page. > > Basicly yhis works fine, but I don't know how to pass parameters to this > > script. normally the perl script is executed by > > http://website/path/perl-file?paramA=A¶mB=B. I have to pass those > > parameters in order to get the right html output. > > > > Any help would be appreciated. > > > > Werner > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Would this work? (mod_rewrite)
This can also be achieved by doing Alias / /home/blah/script.php no need to use mod_rewrite !! bvr. [ rswfire ] wrote: > Assume I want *.domain.*/*.* to automatically call index.php (without > the user knowing and without any redirecting at all): > > RewriteEngine on > RewriteBase/ > RewriteRule*.* index.php [R] > > I don't know what in the world the [R] is, but it's in almost all of > the mod_rewrite examples... :-) > > _ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() + attachment
Class for sending mail with MIME attachments in multipart format using external send mail, mime code and zip http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=336 Class to send a file as an attachment with the php mail() function. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1583 How-to send e-mail with attachments ( with some corrections ) http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1260 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Wolf-Dietrich von Loeffelholz [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 20, 2002 10:44 PM To: [EMAIL PROTECTED] Subject: [PHP] mail() + attachement Is it possible to send with mail an attachment .. if yes, how ??? Greetings wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Open Download-Box
How to force the user to download a file instead of opening it up in an controlled environment within the browser (i.e. MS Word/Adobe Acrobat) http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1627 How to let a user download a picture by clicking on it instead of needing to right click and Save-As. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1562 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 3:20 PM To: [EMAIL PROTECTED] Subject: [PHP] Open Download-Box Hello! I have a PDF-File, which the user should download (it should not open in the browser, even if the Adobe-Reader-Pluging is installed). I use: $filename = $DOCUMENT_ROOT."/".$QUERY_STRING; $fd = fopen ($filename, "rb"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); header("Content-type: application/octet-stream"); header("Content-Disposition:attachment;filename=$savename"); echo $contents; This doesn't work in IE (Version 6, 5 is not tested yet): When I get the download-box and I choose "open" instead of "save", the download-box opens again! Then pressing "open", everything is okay, but why is the box opened twice? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ways to promote PHP applications?
Hi, Do you have any good sites which list (and review) php applications? I already know http://www.hotscripts.com/PHP/Scripts_and_Programs/ and http://php.resourceindex.com (they update the content two moths late!). Thanks, Pekka http://photography-on-the.net/ee/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to check flags?
I don't know how to say this in english, so try to discover: 2 = Married 4 = Single 8 = With Children 16 = Without Children 32 = Man 64 = Woman then we add the values we want 74 = Woman Married With Children how to use this flag system in PHP? like, configuring: 2 = Block 4 = Menu 8 = System 12 = Module with menu and system I want to explode the final value into the smaller ones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to check flags?
On Sun, 21 Apr 2002, albertonews wrote: > I don't know how to say this in english, so try to discover: > > 2 = Married > 4 = Single > 8 = With Children > 16 = Without Children > 32 = Man > 64 = Woman > > then we add the values we want > 74 = Woman Married With Children Look up the operators & and | If you can give a more concrete example then I can give you a little code snippet. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Attachments
I haven't been able to identify what process actually truncates the file. All I know is that it's not my mailserver. I don't believe it's in the coding either, as both Perl and PHP do this, and both work great otherwise. Anyhow: This reads the file from the form: function get_file($filename){ $return = ''; if($fp = fopen($filename, 'rb')){ while(!feof($fp)){ $return .= fread($fp, 1024); } fclose($fp); return $return; }else{ return FALSE; } } This adds any files to a list of attachments: function add_attachment($file, $name = '', $c_type='application/octet-stream', $encoding = 'base64'){ $this->attachments[] = array( 'body' => $file, 'name' => $name, 'c_type' => $c_type, 'encoding' => $encoding ); } This adds a MIME subpart for the attachment: function &add_attachment_part(&$obj, $value){ $params['content_type'] = $value['c_type']; $params['encoding'] = $value['encoding']; $params['disposition'] = 'attachment'; $params['dfilename']= $value['name']; $obj->addSubpart($value['body'], $params); } This is out of the build mail function, adding the text and attachments to an e-mail: case $text AND $attachments: $message =& $this->add_mixed_part(); $this->add_text_part($message, $this->text); for($i=0; $iattachments); $i++) $this->add_attachment_part($message, $this->attachments[$i]); break; Anything look wrong so far? Just in case this may help, here's the part of the Perl script that adds files to the e-mail. This script results in a truncation the same way as the PHP script: sub attachFilesToMail { my $type = shift; my $msg = shift; my $hasBody = shift; my ($key, $file); while (($key, $file) = each %{$CONFIG{$type}}) { ($debug) && print STDERR "examining attachment $key, $file\n"; next unless ($key =~ /(\d+)file/ && -f $file); my $attachNum = $1; $file =~ m!/([^/]+)$!; my $filename = $1; my $mime_type = $CONFIG{$type}->{"${attachNum}mime"}; ($debug) && print STDERR "Attaching a mime type of $mime_type for $filename ($key)\n"; unless ($mime_type) { $mime_type = (!$fhBug && -T $file) ? 'text/plain' : 'application/octet-stream'; } my @stats = stat($file); ($debug) && print STDERR "Attaching $file ($stats[7] bytes) " . "to email\n"; my $data = { Path => $file, ReadNow => 1, Filename => $filename }; unless ($mime_type =~ /^text\//) { $data->{'Encoding'} = "base64"; } if (!$hasBody) { $$msg->data("This is a MIME message with attachments"); } my $m = $$msg->attach(%$data); $m->attr("content-type" => $mime_type); } } -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 21, 2002 12:10 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Attachments On Sunday 21 April 2002 06:02, Jason Soza wrote: > They actually vary as to where they become truncated - some are at 633 > bytes, some are at 1kb. The odd thing is that the PHP script I'm using to > process the form actually pics up the correct filesize, it reports it to me > under a $filesize variable I've setup. It'll report, say file2_filesize...: > 69147 but the actual attachment is 1kb. Please post your code. > Like I said, I have this same problem using both Perl scripts and PHP > scripts. In php.ini my post_max size is 8M and upload_max_filesize is 2M. > Looking through the Apache mailing list archives, it looks like others > running Apache on win32 have experienced the same problems, but there are > no answers. I'm a little s
Re: [PHP] How to check flags?
I want this: 2 Bloco 4 Sessão 8 Sistema only this three but I don't want nothing like this: If ($abc == 10) { } I want something that really explode the number 21/04/2002 14:30:37, Miguel Cruz <[EMAIL PROTECTED]> wrote: >On Sun, 21 Apr 2002, albertonews wrote: >> I don't know how to say this in english, so try to discover: >> >> 2 = Married >> 4 = Single >> 8 = With Children >> 16 = Without Children >> 32 = Man >> 64 = Woman >> >> then we add the values we want >> 74 = Woman Married With Children > >Look up the operators & and | > >If you can give a more concrete example then I can give you a little code >snippet. > >miguel > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using an external program.
Hi all! I am trying to interact with a simple exe program. I manage to get the program started, but I need to send some commands to it as well. My script looks like this: And do I need to run the exec() function everytime I would like the program to do some work for me? Is there a way to access the program later somehow, without opening a "new" program? Thankfull for all help and hints! : ) Best regards Raymond Lilleødegård -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Attachments
On Monday 22 April 2002 01:51, Jason Soza wrote: > I haven't been able to identify what process actually truncates the file. This should be the easiest to nail down. Add a bit of code so that when the file gets uploaded, it gets copied somewhere, then you can manually check its size. Obviously, if the filesize is OK then the problem is further down the line (probably the mail code). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* f u cn rd ths, itn tyg h myxbl cd. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to check flags?
if ($abc & 2) print 'Bloco'; if ($abc & 4) print 'Sessão'; if ($abc & 8) print 'Sistema'; Or... // take an integer and turn it into an indexed array. For each bit // b that is set, subscript b of the array will be set to 1. For // instance, bitsplit(5) would return an array with subscripts 0 // and 2 set to 1. function bitsplit($bits) { $r = array(); $i = 0; while ($bits) { if ($bits & 1) $r[$i] = 1; $i++; $bits >>= 1; } return $r; } miguel On Sun, 21 Apr 2002, albertonews wrote: > I want this: > > 2 Bloco > 4 Sessão > 8 Sistema > > only this three > > but I don't want nothing like this: > If ($abc == 10) { > } > > I want something that really explode the number > > 21/04/2002 14:30:37, Miguel Cruz <[EMAIL PROTECTED]> wrote: > > >On Sun, 21 Apr 2002, albertonews wrote: > >> I don't know how to say this in english, so try to discover: > >> > >> 2 = Married > >> 4 = Single > >> 8 = With Children > >> 16 = Without Children > >> 32 = Man > >> 64 = Woman > >> > >> then we add the values we want > >> 74 = Woman Married With Children > > > >Look up the operators & and | > > > >If you can give a more concrete example then I can give you a little code > >snippet. > > > >miguel > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using an external program.
On Sun, 21 Apr 2002, Raymond Lilleodegard wrote: > I am trying to interact with a simple exe program. I manage to get the > program started, but I need to send some commands to it as well. My script > looks like this: > > > $var = exec('fax.exe'); > > $var = shell_exec('cmd S'); > > $var = shell_exec('cmd fax_test.txt'); > > $var = shell_exec('cmd 6759'); > > ?> > > And do I need to run the exec() function everytime I would like the program > to do some work for me? Is there a way to access the program later somehow, > without opening a "new" program? Look into popen(). miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Attachments
Hmm... Okay, I used this script I found on hotscripts - it copies the entire file to the specified directory: echo "Trying to upload to: " . $upload_path . $filename . "\n"; if ( file_exists($upload_path.$filename) ) { echo "" . $message["fileexists"].""; } else { if( move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'], $upload_path.$filename) ) { echo "" . $message["complete"].""; } else { echo "" . $message["incomplete"].""; } Now why would this work but the e-mail scripts not? -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 21, 2002 10:13 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Attachments On Monday 22 April 2002 01:51, Jason Soza wrote: > I haven't been able to identify what process actually truncates the file. This should be the easiest to nail down. Add a bit of code so that when the file gets uploaded, it gets copied somewhere, then you can manually check its size. Obviously, if the filesize is OK then the problem is further down the line (probably the mail code). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* f u cn rd ths, itn tyg h myxbl cd. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to check flags?
if($abc & 2) echo "2 Bloco\n"; if($abc & 4) echo "4 Sessao\n"; if($abc & 8) echo "8 Sistema\n"; -Rasmus On Sun, 21 Apr 2002, albertonews wrote: > I want this: > > 2 Bloco > 4 Sessão > 8 Sistema > > only this three > > but I don't want nothing like this: > If ($abc == 10) { > } > > I want something that really explode the number > > 21/04/2002 14:30:37, Miguel Cruz <[EMAIL PROTECTED]> wrote: > > >On Sun, 21 Apr 2002, albertonews wrote: > >> I don't know how to say this in english, so try to discover: > >> > >> 2 = Married > >> 4 = Single > >> 8 = With Children > >> 16 = Without Children > >> 32 = Man > >> 64 = Woman > >> > >> then we add the values we want > >> 74 = Woman Married With Children > > > >Look up the operators & and | > > > >If you can give a more concrete example then I can give you a little code > >snippet. > > > >miguel > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpLISTMAN
Hi there, I am trying to find a Mailing List Manager on the net that is written in PHP that access a database of emails, and other information, in order to manage and maintain a list of subscribers. I have now decided to write my own, both to fill a possible niche in the PHP code world, and also to further my understanding of PHP. I am asking your help in providing me with a list of things that need to implemented into this code in order to provide something that people want to use. I am willing to make this code widely available to who ever wants it, and eventually code something that will be useable by other people in the PHP world. I have thought of the following, and if people could suggest/add to this list I would greatly appreciate it! Control Panel -Add User -Delete User -Validate Email -Send Mail (HTML/Text) -Archive Mail HTML Generator -Subscription Box -Unsubscribe Box -Statistics Can anybody help me with this project codenamed "phpLISTMAN"??? Kind Regards, Ian. --- Randum Ian DJ / Reviewer / Webmaster, DancePortal (UK) Limited [EMAIL PROTECTED] http://www.danceportal.co.uk DancePortal.co.uk - Global dance music media -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpLISTMAN
> From: Randum Ian [mailto:[EMAIL PROTECTED]] > > Control Panel > -Add User > -Delete User > -Validate Email > -Send Mail (HTML/Text) > -Archive Mail > > HTML Generator > -Subscription Box > -Unsubscribe Box > -Statistics Let's see. Double opt-in with cryptographic/time security, automatic bounce message processing, programmable and scalable message handling, automated relay centers for very large lists, both digest & regular versions, deny processing, multiple posting addresses, management functions available via email processining, moderation, etc. ... In other words, you might want to look through all the man pages and code for something like ezmlm and figure out if you want to duplicate all that work. Mailing lists are non-trivial pieces of code, and one little mistake can affect thousands of people (and your bandwidth). Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpLISTMAN
Is that a nice way of saying that I am wasting my time in doing such a project? I just get frustrated at not having a Mailing List Manager that I can use to manage large lists of users. Is it more bother than it is worth? - Original Message - From: "Mark Charette" <[EMAIL PROTECTED]> To: "Randum Ian" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Sunday, April 21, 2002 8:47 PM Subject: RE: [PHP] phpLISTMAN > > > From: Randum Ian [mailto:[EMAIL PROTECTED]] > > > > > Control Panel > > -Add User > > -Delete User > > -Validate Email > > -Send Mail (HTML/Text) > > -Archive Mail > > > > HTML Generator > > -Subscription Box > > -Unsubscribe Box > > -Statistics > > Let's see. Double opt-in with cryptographic/time security, automatic bounce > message processing, programmable and scalable message handling, automated > relay centers for very large lists, both digest & regular versions, deny > processing, multiple posting addresses, management functions available via > email processining, moderation, etc. ... > > In other words, you might want to look through all the man pages and code > for something like ezmlm and figure out if you want to duplicate all that > work. Mailing lists are non-trivial pieces of code, and one little mistake > can affect thousands of people (and your bandwidth). > > Mark C. > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpLISTMAN
On Sun, 21 Apr 2002 20:52:17 +0100, you wrote: >Is that a nice way of saying that I am wasting my time in doing such a >project? I just get frustrated at not having a Mailing List Manager that I >can use to manage large lists of users. > >Is it more bother than it is worth? Probably is. What would be useful is a set of PHP programmatical interfaces to other list managers (eg, Mailman), let them do what they do well, and have PHP talk to them to add/subscribe/etc. It's a real pity that they don't have XML-RPC interface (that I know of). Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpLISTMAN
Just about all of them can have/do have simple HTML interfaces that can send data to them. I built one for ezmlm in about 20 minutes ... and then found a number of them already available. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > On Sun, 21 Apr 2002 20:52:17 +0100, you wrote: > > >Is that a nice way of saying that I am wasting my time in doing such a > >project? I just get frustrated at not having a Mailing List > Manager that I > >can use to manage large lists of users. > > > >Is it more bother than it is worth? > > Probably is. > > What would be useful is a set of PHP programmatical interfaces to > other list managers (eg, Mailman), let them do what they do well, and > have PHP talk to them to add/subscribe/etc. It's a real pity that > they don't have XML-RPC interface (that I know of). > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpLISTMAN
At 8:38 PM +0100 4/21/02, Randum Ian wrote: >Hi there, > >I am trying to find a Mailing List Manager on the net that is written in PHP >that access a database of emails, and other information, in order to manage >and maintain a list of subscribers. > Not to discourage your efforts, but there are an array of free and fee-based products written in PHP that handle mailing list. The bigger issue seems to be bi-directional distribution list (aka listservs), where both the owner and recipients can send mail. But for pure mailing list management, you could look at the people at Octeth http://www.octeth.com, their email manager pro gets high ratings. You could also test, try, and or modify one of the over 50 mailing list scripts coded in PHP at HotScripts.com. http://www.hotscripts.com/PHP/Scripts_and_Programs/Mailing_List_Managers/ Alnisa -- . Alnisa Allgood Executive Director Nonprofit Tech (ph) 415.337.7412 (fx) 415.337.7927 (url) http://www.nonprofit-techworld.org (url) http://www.nonprofit-tech.org (url) http://www.tech-library.org . Nonprofit Tech E-Update mailto:[EMAIL PROTECTED] . transforming nonprofits through technology . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Calling pg_connect from a class included..
I have recently been trying to create a class called Database with methods inside it to ease my coding with web applications. I've noticed though when I create an object from the class like $x = new Database(); Then try to call the connectDB() method (function we call it in PHP) like so $x->connectDb(bla bla bla bla); I get the error message that the function cannot be found as if it is for some reason looking in the class itself for a function of pg_connect when it should be using the PHP libriaries instead. Anybody else run into this problem or know a way to fix it. Thanks --- Sloan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: constructor in php4?
Well its going to execute from the class in which you created the object thats how OOP works. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bob) wrote: > the manual says:the function A will be called. > in fact, the function B is called. > why? > my config : win98/pws2/php411(CGI) > > class A > { > function A() > { > echo "I am the constructor of A.\n"; > } > > function B() > { > echo "I am a regular function named B in class A.\n"; > echo "I am not a constructor in A.\n"; > } > } > > class B extends A > { > function C() > { > echo "I am a regular function.\n"; > } > } > > // This will call B() as a constructor. > $b = new B; > ?> > > thaks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Classes??
yes you can put as many classes as you want inside a file doesn't matter. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gerard Samuel) wrote: > Maybe a simple question. > But can one file contain 2 or more classes?? > Thanks > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL question
Hey PHP General List, Amm... can anybody point me to some good tutorial that talks about SELECT from detabase? what i need is ... like i have table with lots of rows and i need to output them all to the page... it goes like most of news sections in the page... thanks for help. (i need to learn more about SELECT'ing things from database) :--: Have A Nice Day! Mantas Kriauciunas A.k.A mNTKz Contacts: [EMAIL PROTECTED] Http://mntkz-hata.visiems.lt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MySQL question
In brief, and in no way finished (no error trapping, commenting, etc)... \n"; echo " \n"; echo "CatNumber\n"; echo "Title\n"; echo " \n"; while ($myrow = mysql_fetch_row($result)) { echo "\n"; echo " $myrow[0]\n"; echo " $myrow[1]\n"; echo "\n"; } echo "\n"; ?> hth, .ben > -Original Message- > From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] > Sent: 22 April 2002 01:07 > To: PHP General List > Subject: [PHP] MySQL question > > > Hey PHP General List, > > Amm... can anybody point me to some good tutorial that talks about > SELECT from detabase? what i need is ... like i have table with lots > of rows and i need to output them all to the page... it goes > like most of news sections in the page... thanks for help. > (i need to learn more about SELECT'ing things from database) > > :--: > Have A Nice Day! > Mantas Kriauciunas A.k.A mNTKz > > Contacts: > [EMAIL PROTECTED] > Http://mntkz-hata.visiems.lt > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] adding numbers in a text file
I have a simple count file named count_db that contains ONLY the following: { 'total' => 3954 } I need to open file, find numbers in the file, add $newnumbers to existing numbers. Then write these new numbers over the original numbers and close the file. Also while I'm doing this a counter script will be reading this file, but NOT writing to it. Will the file need to be locked while adding $newnumber to it? Thanks Craig ><> [EMAIL PROTECTED]
[PHP] Re: Calling pg_connect from a class included..
Okay well I answered my own dumb question on this one the server on which I was running these on did not have postgresql support built in but now I'm running into another problem. When I try to disconnect from the server using pg_close in a method(function) I can't seem to find out which link to use because I called the connection with a method also. Any ideas? Below is the code to the class "); } // end Database Constructor function connectDb($host,$user,$dbname,$pw) { print ("Starting Database connection..."); $connection = pg_connect("host=$host user=$user dbname=$dbname password=$pw"); return $connection; } // end connectDb method function freeResult($result) { pg_freeresult($result); } // end freeResult method function disconnectDb($con) { print ("Closing Connection..."); pg_close($con); } // end disconnectDb method }// end class Database In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Smileyq) wrote: > I have recently been trying to create a class called Database with > methods inside it to ease my coding with web applications. I've noticed > though when I create an object from the class like > $x = new Database(); > Then try to call the connectDB() method (function we call it in PHP) > like so > > $x->connectDb(bla bla bla bla); > I get the error message that the function cannot be found as if it is > for some reason looking in the class itself for a function of pg_connect > when it should be using the PHP libriaries instead. Anybody else run > into this problem or know a way to fix it. > > Thanks > --- > Sloan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpLISTMAN
On Sun, 21 Apr 2002, Randum Ian wrote: > I am trying to find a Mailing List Manager on the net that is written in > PHP that access a database of emails, and other information, in order to > manage and maintain a list of subscribers. I might instead suggest focusing your efforts on making a really nice PHP front end for ezmlm. There are things it does that you'll never really be able to pull off in PHP, yet it's extremely ugly to configure, and therefore could use a hand. I've seen a few front ends for it but none of them impressed me all that much. Creating a robust mailing list manager from scratch is not a trivial exercise. Doing it in PHP - with one process, hamstrung by environment-imposed execution time limits, etc., sounds like madness unless you're making something very lightweight. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ereg size limit???
I am trying to validate my input with ereg but I get the error "Warning: REG_BADBR" when I try over 255 characters. Is there anyway around this? Works = if(eregi('^[A-Za-z]{1,255}$', "test sentence")) echo "valid input"; Doesn't Work if(eregi('^[A-Za-z]{1,256}$', "test sentence")) echo "valid input"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 21 Apr 2002 22:46:30 -0000 Issue 1300
php-general Digest 21 Apr 2002 22:46:30 - Issue 1300 Topics (messages 93876 through 93916): Variable substitution 93876 by: Greg Hulands 93877 by: Jason Wong Re: Better standards in PHP-coding 93878 by: Tom Rogers Re: Session Tutorial 93879 by: R. Visser Re: I would like to get a script to display in a frame 93880 by: R. Visser 93882 by: The_RadiX Re: creating table help 93881 by: R. Visser Thanks 93883 by: Victor Javier Martinez Lopez inline CGI 93884 by: Werner de Schepper 93885 by: Rasmus Lerdorf 93887 by: Werner de Schepper can you show an example? 93886 by: bob Re: Would this work? (mod_rewrite) 93888 by: bvr Re: mail() + attachment 93889 by: Boaz Yahav Re: Open Download-Box 93890 by: Boaz Yahav Ways to promote PHP applications? 93891 by: Pekka Saarinen How to check flags? 93892 by: albertonews 93893 by: Miguel Cruz 93895 by: albertonews 93898 by: Miguel Cruz 93901 by: Rasmus Lerdorf Re: Attachments 93894 by: Jason Soza 93897 by: Jason Wong 93900 by: Jason Soza Using an external program. 93896 by: Raymond Lilleodegard 93899 by: Miguel Cruz phpLISTMAN 93902 by: Randum Ian 93903 by: Mark Charette 93904 by: Randum Ian 93905 by: php.alister.dnsalias.com 93906 by: Mark Charette 93907 by: Alnisa Allgood 93915 by: Miguel Cruz Calling pg_connect from a class included.. 93908 by: Smileyq 93914 by: Smileyq Re: constructor in php4? 93909 by: Smileyq Re: Classes?? 93910 by: Smileyq MySQL question 93911 by: Mantas Kriauciunas 93912 by: .ben adding numbers in a text file 93913 by: Craig Westerman ereg size limit??? 93916 by: SP 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] -- --- Begin Message --- Hi, I am trying to make an e-mail form so that I can generate an e-mail to send to all the users of the system. In the message part I want to be able to do something like this. Dear $fName, Welcome to . When it then sends the e-mail, it should substitute $fName with the current row in the database. For some reason it does not get automatically substituted when using mail(to, subject, message). Is there a function that substitutes variables with there values and returns a string. Any help is greatly appreciated, Thanks, Greg --- End Message --- --- Begin Message --- On Saturday 20 April 2002 17:08, Greg Hulands wrote: > Hi, > I am trying to make an e-mail form so that I can generate an e-mail to send > to all the users of the system. In the message part I want to be able to do > something like this. > > Dear $fName, > Welcome to . > > When it then sends the e-mail, it should substitute $fName with the current > row in the database. For some reason it does not get automatically > substituted when using mail(to, subject, message). Is there a function that > substitutes variables with there values and returns a string. Depending on your existing code, your options include eval(), substr_replace(), str_replace(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Make me look like LINDA RONSTADT again!! */ --- End Message --- --- Begin Message --- Hi I like the following form, not sure how much time gets wasted in parsing but it's easy > for me < to follow :) while(something): if(something else): yada; else: forget it; endif; endwhile; Tom At 11:51 AM 21/04/2002, Frank wrote: >"The nice thing about standards is that there are so many to choose between". > >Subject: Uses of block markers in coding snip --- End Message --- --- Begin Message --- [EMAIL PROTECTED] wrote: > Recently I have been trying to work with sessions however I must admit that > I am not sure I completely understand them. Does anyone know of a good > tutorial that thoroughly explains sessions? > Thanks in advance I can write one if you want, send me a mail. Greetings, René --- End Message --- --- Begin Message --- [EMAIL PROTECTED] wrote: > Does anyone have any experience with making script output display in a > frame?? I would like to get this to happen on an e-commerce site I am > designing and am stuck. I have tried action=myscript.php target=main> with no success. Please help. > > Jeff Means > CIO for PicoTech > http://www.picotech.net Hi Jeff, maybe it's a good idea to create a hidden HTML-form in the output frame. In that case you can use jav
RE: [PHP] PHP @ 24-hour programming competition
Firstly, since you can take in already written code, if you have a lot of pre-written generic code, that would be good. > We're really interested in your opinions - is this feasible or > are we just plain mad? :) You've probably both - aren't all programmer mad? -Original Message- From: Dennis Moore [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 21, 2002 2:45 AM To: Visontay Peter; [EMAIL PROTECTED] Subject: Re: [PHP] PHP @ 24-hour programming competition This sounds interesting... I am not familiar enought with PHP-GTK to give an informed opinion. I think your decision should be based on how familiar with the tools you take into the contest.Since you are not face with a lot of time, will your competition be using Visual IDEs to aid the rapid development? You may wnat to post to one of the php-gtk-* lists. They may be able to address your needs in more detail. Good luck!! If you choose to use PHP, please post the results of the contest to the list. It should be interesting. - Original Message - From: "Visontay Peter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 7:43 PM Subject: [PHP] PHP @ 24-hour programming competition > Hi! > > I have quite an unusual problem for you :) There will be a 24-hour > programming competition at our university, where teams of 3 have one > day to solve a complex problem (which will be revealed on the day > of the competition). Teams cannot get help from "outside", so no outward > network / phone communication is available, but you can use anything you > take there with you (any development tools, books, pre-written software > etc.) > > The language in which you write the software is up to you, the most > popular choices being C++ and Java - but this year our team are going > to use PHP (and PHP-GTK). > > The big question is: will PHP be enough for the whole project, or will > we need something else (like external C/Java modules)? > Last year the task was to write an artificially intelligent soccer game > based on a client-server architecture: there was a server acting like > some kind of game controller (referee) and 2D display screen, while > the automated clients (players) were playing individually according > to the game's rules and some simulated information on what they 'see' > at the time. > > It's said that it will be something quite different this year - > but required knowledge includes: > algorithm theory, information and code theory, artificial intelligence, > queuing, databases, client-server architectures, computer networks, > control theory, 2D graphic programming and software ergonomy. > All this in 24 hours - nice, eh? :) > > So the question again - are there any parts of all this where you think > PHP will not be enough? (Apart from the graphics, for which we'll use > PHP-GTK). If so, what kind of outside module integration do you > recommend for us? > Also, which PHP sites / resources / code libraries do you think we should > (recursively) download which might help us a lot? (Apart from php.net, > of course.) > > We're really interested in your opinions - is this feasible or > are we just plain mad? :) > > Thanks, > Peter Visontay > http://prodigycenter.com/cv/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpLISTMAN
The problem with PHP is that it would be a limited Mailing List. Imagine having a database of 100.000 subscribers (as my previous company had 600.000). Can you handle it with PHP? We used Ezmlm. Over night, on different server that seats away from our main bandwidth hub, with limited bandwidth usage and it was doing it's work every Sunday Night. PHP won't work easily because it is generally activated via browser. So, the maximum amount of subscribers you can handle with the list written entirely in PHP would be something like 1-4.000 or so still waiting for a while to finish sending. It could be useful still, but I think it is rather more painful than useful to you and your user. I have once started such project followed by your very ideas: "no such software in PHP - Let's write one!!!" But then, I got discouraged just as I thought about it deeper. Look at Source-Forge for RealList - that is my tentative (if you'll find it though). A good extended interface to ezmlm could be a good idea though. I don't like the one they have now. Summary: Whatever you write in PHP regarding emails, unless you connect it to other languages like Ruby, Perl or Python that can run it in background (consider PHP-GTK as well, still more than just PHP) your list will only handle a small amount of subscribers and, not automatically (unless user has the access to server what would also mean he can install something other than your ML). My 0.02 EuroCents. Disclaimer: Please note that I wasn't trying to be extra-precise here, so don't pick on the words. The idea of this was rather important to explain. Sincerely, Maxim Maletsky Founder, Chief Developer [EMAIL PROTECTED] PHPBeginner.com (Where PHP Begins) www.phpbeginner.com > -Original Message- > From: Randum Ian [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 21, 2002 9:38 PM > To: PHP > Subject: [PHP] phpLISTMAN > > Hi there, > > I am trying to find a Mailing List Manager on the net that is written in PHP > that access a database of emails, and other information, in order to manage > and maintain a list of subscribers. > > I have now decided to write my own, both to fill a possible niche in the PHP > code world, and also to further my understanding of PHP. I am asking your > help in providing me with a list of things that need to implemented into > this code in order to provide something that people want to use. I am > willing to make this code widely available to who ever wants it, and > eventually code something that will be useable by other people in the PHP > world. > > I have thought of the following, and if people could suggest/add to this > list I would greatly appreciate it! > > Control Panel > -Add User > -Delete User > -Validate Email > -Send Mail (HTML/Text) > -Archive Mail > > HTML Generator > -Subscription Box > -Unsubscribe Box > -Statistics > > Can anybody help me with this project codenamed "phpLISTMAN"??? > > Kind Regards, Ian. > --- > Randum Ian > DJ / Reviewer / Webmaster, DancePortal (UK) Limited > [EMAIL PROTECTED] > http://www.danceportal.co.uk > DancePortal.co.uk - Global dance music media > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Better standards in PHP-coding
I prefer the following: function doThing() { strFoo = 'bar'; } nice and tidy. at the end of the day, as long as code is commented, consistant in layout style, and works... that's enough. aint it? .b > -Original Message- > From: Frank [mailto:[EMAIL PROTECTED]] > Sent: 21 April 2002 02:52 > To: [EMAIL PROTECTED] > Subject: [PHP] Better standards in PHP-coding > > > > "The nice thing about standards is that there are so many to > choose between". > > Subject: Uses of block markers in coding > > GNU recommends a standard with block-markers aligned under each > other and a > number of people - including myself - find it senseless and > counter-progressive to keep up an older standard resting from old > days and > doing the programmer a disfavor. > > Too many programmers continue to use a style that originates back to the > days where dumb terminals with one-line memory and line-editors > was common. > > Those days it could take long time to submit a line to the mainframe. I > have tried it myself and in worst-case situations it could take > up to half > a minute to submit a line. > > So naturally we put more things into one line. Statements like > > if (tempratureM1>=tempratureSTP) {cout << "Warning! Cooling needed"; > log(tempratureM1, "Warning);}; > > all in one line. > > When editors became a little faster people started to write: > > if (tempratureM1>=tempratureSTP) { >cout << "Warning! Cooling needed"; log(tempratureM1, "Warning); } > > which is nicer to look at but would take many seconds more as one > more line > has to be submitted. > > - - - > > Nowadays few people have any problems with waiting for a CR. > > But for mysterious reasons a rest from the old forced "standard" remains > among people who use C(++) like languages. > > It is still standard to write > > if (some_expression) { >statements; >... > } > > What the "{" - the marking of the beginning of a block that should be > indented - is doing in the end of the line nobody has yet been able to > explain me. > > Why, then, are functions not written as > > function foo(parameter1, foo(parameter1, parameter2, ... parameterN) { > statements > ... > } > > ? > > In other block-structured languages you of course align > block-markers under > each other, allowing for easy scan. > > if expression > begin >statement; >... >... > end; > > I have yet to see anybody write > > if expression begin >statement; >... >... > end; > > - - - > > Does it matter? Oh, yes it does. A lot. As teacher I know from experience > that programmers has a harder time tracking their own block with a number > of "{"s dancing far out of sight in the right side of the screen. This is > not a matter of experience. No experience can ever make it > equally fast to > control structures based on vertically aligned block-markers contra those > where the marker can be found anywhere on a line. > > As an amusing result of the weird practice it has been necessary to > recommend a standard where the { }-pair is always used, even though there > is only one statement following an if: > > if ($myvarirable1*myvariable2 >= myvariable3*myvariable4+114) { >oneStatement; > } > > instead of simply > > if ($myvarirable1*myvariable2 >= myvariable3*myvariable4+114) >oneStatement; > > > Why the need for the extra "{ }"s? > > Of course because the the difference between > > if ($myvarirable1*myvariable2 >= myvariable3*myvariable4+114) >oneStatement; > > (correct) and > > if ($myvarirable1*myvariable2 >= myvariable3*myvariable4+114) { >oneStatement; > > (wrong) is easily overlooked because of the block marker put away > to the right! > > > But nobody overlooks the difference betweeen > > if ($myvarirable1*myvariable2 >= myvariable3*myvariable4+114) >oneStatement; > > and > > if ($myvarirable1*myvariable2 >= myvariable3*myvariable4+114) >{ >oneStatement; > > > where the missing "}" shines in the eyes. > > - - - > > We can only hope that some major standard-setters for PHP should make a > rational decision about what standard to choose and not just keep > "what we > are used to" for the disadvantage of future generations of programmers. > > http://www.gnu.org/prep/standards.htm > http://cs.nmhu.edu/personal/curtis/cs1htmlfiles/essentialssec6.htm > > > Best regards > > SFM > U5com Co Ltd. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Better standards in PHP-coding
(Just got back from the weekend) Just my 2c worth IMHO, as long as the code is indented "properly", it doesn't matter where the braces are, just be consistant. Personally, I prefer to put the opening brace on a new line, but I can just as easily read other people's code when the opening brace is on the same line (as long as it's indented properly). As for indenting - I prefer using spaces and this ensures that my code will look the same in someone else's editor as it does in mine. There are people here, in the company, that use tabs and have set their tabs to be 4 spaces, I have my tabs set to 8 spaces - really plays havoc when they indent quite a distant :( Also, with one line statements, I prefer to place it on the same line as the statement that requires it (ie, function, if/else, while, do, etc). But, again, as long as the coder is constant, I find it just as readable when the statement is on a new line, surrounded by braces or not. So what I'm basically saying is - choose a style that suits you, and be _consistant_ with it - oh, and make sure you indent your code, there's nothing worse than trying to read code that's not indented, or indented all over the place! Martin -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 21, 2002 9:10 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Better standards in PHP-coding Hi I like the following form, not sure how much time gets wasted in parsing but it's easy > for me < to follow :) while(something): if(something else): yada; else: forget it; endif; endwhile; Tom At 11:51 AM 21/04/2002, Frank wrote: >"The nice thing about standards is that there are so many to choose between". > >Subject: Uses of block markers in coding snip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Better standards in PHP-coding
> From: Martin Towell [mailto:[EMAIL PROTECTED]] > So what I'm basically saying is - choose a style that suits you, and be > _consistant_ with it - oh, and make sure you indent your code, there's > nothing worse than trying to read code that's not indented, or > indented all > over the place! > > Martin hear, hear! .b -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] eregi() problem
if (!eregi("^[[:alpha:]]$", $HTTP_POST_VARS["vpis_ime"])) echo "wrong char"; why does this always return "wrong char" no matter what value is in vpis_ime ... i tried "blah", "242234" "bla242h" .. every single time i get "wrong char". im using PHP 4.1.2 basicly is what i want is to check string if it contains only charaters from a to z and chars _ - [ ] . Can somebody write me a working function ? thx in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP @ 24-hour programming competition
It is in a way doable, What about some game where when, being limited by timer, you type words on the keyboard and get some questions to answer. The software would have to "understand" the meaning and try to give you tougher but relative question each time? Maybe using some RDBMS for that in conjunction with PHP-GTK for the active interface? That's an idea, no? I had to make a puzzle game in PHP once, was painful enough that I still enjoy playing that game myself ;-) Sincerely, Maxim Maletsky Founder, Chief Developer [EMAIL PROTECTED] PHPBeginner.com (Where PHP Begins) www.phpbeginner.com > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 1:39 AM > To: Visontay Peter; [EMAIL PROTECTED] > Subject: RE: [PHP] PHP @ 24-hour programming competition > > Firstly, since you can take in already written code, if you have a lot of > pre-written generic code, that would be good. > > > We're really interested in your opinions - is this feasible or > > are we just plain mad? :) > > You've probably both - aren't all programmer mad? > > > -Original Message- > From: Dennis Moore [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 21, 2002 2:45 AM > To: Visontay Peter; [EMAIL PROTECTED] > Subject: Re: [PHP] PHP @ 24-hour programming competition > > > This sounds interesting... I am not familiar enought with PHP-GTK to give an > informed opinion. I think your decision should be based on how familiar > with the tools you take into the contest.Since you are not face with a > lot of time, will your competition be using Visual IDEs to aid the rapid > development? > > You may wnat to post to one of the php-gtk-* lists. They may be able to > address your needs in more detail. > > Good luck!! > > > > If you choose to use PHP, please post the results of the contest to the > list. It should be interesting. > > > > - Original Message - > From: "Visontay Peter" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, April 19, 2002 7:43 PM > Subject: [PHP] PHP @ 24-hour programming competition > > > > Hi! > > > > I have quite an unusual problem for you :) There will be a 24-hour > > programming competition at our university, where teams of 3 have one > > day to solve a complex problem (which will be revealed on the day > > of the competition). Teams cannot get help from "outside", so no outward > > network / phone communication is available, but you can use anything you > > take there with you (any development tools, books, pre-written software > > etc.) > > > > The language in which you write the software is up to you, the most > > popular choices being C++ and Java - but this year our team are going > > to use PHP (and PHP-GTK). > > > > The big question is: will PHP be enough for the whole project, or will > > we need something else (like external C/Java modules)? > > Last year the task was to write an artificially intelligent soccer game > > based on a client-server architecture: there was a server acting like > > some kind of game controller (referee) and 2D display screen, while > > the automated clients (players) were playing individually according > > to the game's rules and some simulated information on what they 'see' > > at the time. > > > > It's said that it will be something quite different this year - > > but required knowledge includes: > > algorithm theory, information and code theory, artificial intelligence, > > queuing, databases, client-server architectures, computer networks, > > control theory, 2D graphic programming and software ergonomy. > > All this in 24 hours - nice, eh? :) > > > > So the question again - are there any parts of all this where you think > > PHP will not be enough? (Apart from the graphics, for which we'll use > > PHP-GTK). If so, what kind of outside module integration do you > > recommend for us? > > Also, which PHP sites / resources / code libraries do you think we should > > (recursively) download which might help us a lot? (Apart from php.net, > > of course.) > > > > We're really interested in your opinions - is this feasible or > > are we just plain mad? :) > > > > Thanks, > > Peter Visontay > > http://prodigycenter.com/cv/ > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Better standards in PHP-coding
I think standardization within the company is what important. I prefer tabs because when I have to delete a part of the line, I just hit back button once - not four times. But anyhow, programming style is the personal preference for every programmer. There recommendations and team-wise standards, but that has nothing to do with the general idea. Sincerely, Maxim Maletsky Founder, Chief Developer [EMAIL PROTECTED] PHPBeginner.com (Where PHP Begins) www.phpbeginner.com > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 1:57 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Better standards in PHP-coding > > (Just got back from the weekend) > > Just my 2c worth > > IMHO, as long as the code is indented "properly", it doesn't matter where > the braces are, just be consistant. Personally, I prefer to put the opening > brace on a new line, but I can just as easily read other people's code when > the opening brace is on the same line (as long as it's indented properly). > > As for indenting - I prefer using spaces and this ensures that my code will > look the same in someone else's editor as it does in mine. There are people > here, in the company, that use tabs and have set their tabs to be 4 spaces, > I have my tabs set to 8 spaces - really plays havoc when they indent quite a > distant :( > > Also, with one line statements, I prefer to place it on the same line as the > statement that requires it (ie, function, if/else, while, do, etc). But, > again, as long as the coder is constant, I find it just as readable when the > statement is on a new line, surrounded by braces or not. > > So what I'm basically saying is - choose a style that suits you, and be > _consistant_ with it - oh, and make sure you indent your code, there's > nothing worse than trying to read code that's not indented, or indented all > over the place! > > Martin > > > -Original Message- > From: Tom Rogers [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 21, 2002 9:10 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Better standards in PHP-coding > > > Hi > I like the following form, not sure how much time gets wasted in parsing > but it's easy > for me < to follow :) > > while(something): > if(something else): > yada; > else: > forget it; > endif; > endwhile; > > Tom > > > At 11:51 AM 21/04/2002, Frank wrote: > > >"The nice thing about standards is that there are so many to choose > between". > > > >Subject: Uses of block markers in coding > snip > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] eregi() problem
Try: if (!eregi('^[a-z_\-]{0,}$', $_POST['vpis_ime'])) echo "wrong char"; That'll sort it for everything except [ and ], which I can't find any way of checking for :-( Anyone else have any ideas? HTH anyway. Danny. - Original Message - From: "Gregor Jaksa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 1:04 AM Subject: [PHP] eregi() problem > if (!eregi("^[[:alpha:]]$", $HTTP_POST_VARS["vpis_ime"])) > echo "wrong char"; > > why does this always return "wrong char" no matter what value is in vpis_ime > ... i tried "blah", "242234" "bla242h" .. every single time i get "wrong > char". im using PHP 4.1.2 > > basicly is what i want is to check string if it contains only charaters from > a to z and chars _ - [ ] . Can somebody write me a working function ? > > thx in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHPTriad
Hey PHP General List, Im using PHPTriad as webserver. And i am having some problems. It goes ok but sometimes after mutch requests. server freezes nobody can access it until i restart apache. What could be wrong? Well i have cam page that refreshes every 5 seconds it shows my cam. Maybe that makes too mutch requests. Any suggestions? thanks :--: Have A Nice Day! Mantas Kriauciunas A.k.A mNTKz Contacts: [EMAIL PROTECTED] Http://mntkz-hata.visiems.lt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $server_path
Hey guys, i'm trying to write a script that gets a path for a pic from mysql and then shows the picture. so i added the data in teh database like so $server_path/pics/pic001.jpg and then when i get the final oputput the HTML says: and it won't show the picture, is this because i'm using Mozilla 0.9.9 or is it from something else? Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $server_path
Well, you should first ask yourself if the SRC value is correct - and apparently it isn't, if that's indeed it. You should make sure you get $server_path parsed by PHP. OTOH, why $server_path? HTML uses "/" as the "document root", you don't need that. IOW, you should remove $server_path altogether and see if it works - it should. HTH Bogdan Jule Slootbeek wrote: >Hey guys, >i'm trying to write a script that gets a path for a pic from mysql and then >shows the picture. >so i added the data in teh database like so $server_path/pics/pic001.jpg and >then when i get the final oputput the HTML says: > and it won't show the picture, is this >because i'm using Mozilla 0.9.9 or is it from something else? > >Jule > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] setting Apache's $REMOTE_USER externally
(re-post into php.general) I think this is an Apache question more than PHP, but I'll give it a whirl. Aside from the new apache_setenv in 4.2RC3+ (and I haven't tried), is there a way to set $REMOTE_USER from PHP? Let me explain: I have an external (ie, custom) authentication process (hate basic auth) but I want the web logs to reflect the user visits (ie, I think from memory REMOTE_USER is the var that gets logged) In any case, after authentication, I'd like to set $REMOTE_USER and fool Apache into thinking that it's done a basic auth and will now log users as per basic auth. I've worked on an iPlanet server that's achieved this, but not without a custom built NSAPI module (in this case would be Apache API) I know it's pretty specific but if you can help at all I'd appreciate it... My next step is hacking out an apache module, but that's a.. ahh... not so preferred approach ;-) Regds, Sek-Mun <<< Sek-Mun Wong Connecting Space Sydney, Australia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mass Mail {?!}
Hey all, I was just wondering if someone's written a script that will let me send lots of emails to an address, but with a small pause inbetween emails. And no I'm not using this for spam, I need to test a SMTP server that I'm developing. Thanks for your help!
[PHP] [HELP] redirect browser & pass variable !
I am using header function to redirect browser. { header("Location: http://www.XXX.edu/index.php";); exit;} Although it can redirect the browser but variable had not pass to next page. So can anyone teach me how to pass variable and redirect browser at same time? Thx ! Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some problems about gd in php
Thank you all,I have solved the problem. :) zhaoxd - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 7:08 PM Subject: Re: [PHP] some problems about gd in php > On Friday 19 April 2002 18:57, zhaoxd wrote: > > The version of php is php-4.1.2,the latest version,apache-1.3.24,also > > latest. > > > I have installed gd-1.8.4 in apache server without any problems.To check if > > the gd can work,I write some codes in php like this: > > [snip] > > > Is this a compiling problem?The compiling command of php is: > > > > > > ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.24 > > --enable-track-vars --with-gd=../gd-1.8.4 --with-png-dir=../libpng > > --with-zlib-dir=../zlib > > > 1) If this was a recompile: > a) Presumably there were no errors during configure/make/install? > b) Did you restart the webserver? > > 2) What do you get using phpinfo()? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Nice guys finish last. > -- Leo Durocher > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >
Re: [PHP] Mass Mail {?!}
How about something like this. This should be all you need. I used something similar to crash my work's email system by accident. :) Whoops. CDitty At 12:40 PM 4/22/2002 +1000, Liam MacKenzie wrote: >Hey all, >I was just wondering if someone's written a script that will let me send >lots of emails to an address, but with a small pause inbetween emails. > >And no I'm not using this for spam, I need to test a SMTP server that I'm >developing. > >Thanks for your help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Web Forum donated to PHP community
Greetings. As thanks to all the great folks within the PHP community, I've setup a free web based forum (no annoying advertising pop ups) based on what else, a php web based forum package. I hope you find it useful. Our way of saying thanks for all the great help we've had from here. It's one of the few communities of folks that are truely helpful and the response time has amazed me! It's no wonder that PHP is taking the Internet by storm! I'm taking my first sit down instructor led course in PHP in June, counting the days! http://www.opensourcehosting.com/phpBB2/index.php?c=5 Enjoy and let me know what you'd like to see in the way of additional forums under this General Category. Best regards, Jim Hankins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Better standards in PHP-coding
On Monday 22 April 2002 08:07, Maxim Maletsky wrote: > I think standardization within the company is what important. > > I prefer tabs because when I have to delete a part of the line, I just > hit back button once - not four times. I prefer an editor which allows me to tab using spaces and to delete the appropriate number of spaces when backspacing :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Logic is the chastity belt of the mind! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some problems about gd in php
On Monday 22 April 2002 10:54, zhaoxd wrote: > Thank you all,I have solved the problem. What fixed the problem then? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "There was no difference between the behavior of a god and the operations of pure chance..." -- Thomas Pynchon, _Gravity's Rainbow_ */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [HELP] redirect browser & pass variable !
On Monday 22 April 2002 10:46, Joe wrote: > I am using header function to redirect browser. > > { header("Location: http://www.XXX.edu/index.php";); > exit;} > > Although it can redirect the browser but variable had not pass to next > page. > > So can anyone teach me how to pass variable and redirect browser at same > time? The easiest way is to pass the variables along with the url: header("Location: http://www.XXX.edu/index.php?var1=doo&var2=dah"; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* May you have many beautiful and obedient daughters. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some problems about gd in php
recompile php from scratch. : P zhaoxd - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 12:51 PM Subject: Re: [PHP] some problems about gd in php > On Monday 22 April 2002 10:54, zhaoxd wrote: > > Thank you all,I have solved the problem. > > > What fixed the problem then? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > "There was no difference between the behavior of a god and the operations of > pure chance..." > -- Thomas Pynchon, _Gravity's Rainbow_ > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >
Re: [PHP] some problems about gd in php
On Monday 22 April 2002 13:02, zhaoxd wrote: > recompile php from scratch. I should've suggest that earlier. When I had to recompile PHP with support for gd, ttf, png etc I had the same problem which was only solved by doing a clean installation. Now whenever I recompile, I do it from scratch. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* One family builds a wall, two families enjoy it. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [HELP] redirect browser & pass variable !
{ header("Location: http://www.XXX.edu/index.php?variable=$variable";); exit;} "Joe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am using header function to redirect browser. > > { header("Location: http://www.XXX.edu/index.php";); > exit;} > > Although it can redirect the browser but variable had not pass to next page. > > So can anyone teach me how to pass variable and redirect browser at same > time? > > Thx ! > > Joe > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: [HELP] redirect browser & pass variable !
> { header("Location: http://www.XXX.edu/index.php?variable=$variable&second_variable=$second_vari able"); > exit;} You'll get to transfer about 255 characters using this method. hugh - Original Message - From: "Adrian Ciutureanu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 21, 2002 11:06 PM Subject: [PHP] Re: [HELP] redirect browser & pass variable ! > { header("Location: http://www.XXX.edu/index.php?variable=$variable";); > exit;} > > "Joe" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I am using header function to redirect browser. > > > > { header("Location: http://www.XXX.edu/index.php";); > > exit;} > > > > Although it can redirect the browser but variable had not pass to next > page. > > > > So can anyone teach me how to pass variable and redirect browser at same > > time? > > > > Thx ! > > > > Joe > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mass Mail {?!}
I'd recommend this script with a few changes. ); for($i=0; $i); } ?> Matthew Walker Senior Software Engineer ePliant Marketing -Original Message- From: CDitty [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 21, 2002 8:47 PM To: Liam MacKenzie; PHP Subject: Re: [PHP] Mass Mail {?!} How about something like this. This should be all you need. I used something similar to crash my work's email system by accident. :) Whoops. CDitty At 12:40 PM 4/22/2002 +1000, Liam MacKenzie wrote: >Hey all, >I was just wondering if someone's written a script that will let me send >lots of emails to an address, but with a small pause inbetween emails. > >And no I'm not using this for spam, I need to test a SMTP server that I'm >developing. > >Thanks for your help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.345 / Virus Database: 193 - Release Date: 4/9/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] eregi() problem
On Mon, 22 Apr 2002, Gregor Jaksa wrote: > if (!eregi("^[[:alpha:]]$", $HTTP_POST_VARS["vpis_ime"])) > echo "wrong char"; > > why does this always return "wrong char" no matter what value is in vpis_ime > ... i tried "blah", "242234" "bla242h" .. every single time i get "wrong > char". im using PHP 4.1.2 The only thing that will match that regex is a single alpha character. Try "^[[:alpha:]]+$" (I added a plus) to match one or more. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php