Re: [PHP] Unreliable mail delivery through PHP

2004-12-13 Thread Jason Wong
On Tuesday 14 December 2004 07:43, Chris W. Parker wrote: > $headers = "From: $from\n" > ."Reply-To: $from\n" > ."X-Mailer: PHP/".phpversion(); Headers should be separated by "\r\n". Not sure why you're duplicating the From:. > Assuming all the email addresses ar

Re: [PHP] Text tools

2004-12-13 Thread William Stokes
Thanks Jay. The Htmlarea looks like the app. I was talking about. It's definitely worth a test atleast. -Will "Jay Blanchard" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] [snip] I was just wondering how to build a text editing tool with php. I mean a tool that can help users to fo

[PHP] Re: [PHP-XML-DEV] DomXPath and default XML namespaces

2004-12-13 Thread Adam Maccabee Trachtenberg
On Mon, 13 Dec 2004, Dan Phiffer wrote: > Adam Maccabee Trachtenberg wrote: > > > This is an XPath FAQ. Without a ns prefix, XPath doesn't choose > > elements living in the default ns, but ones living in no namespace. > > Are there any good references you might point me to? I'm pretty new to > thi

[PHP] Re: [PHP-XML-DEV] DomXPath and default XML namespaces

2004-12-13 Thread Dan Phiffer
Adam Maccabee Trachtenberg wrote: This is an XPath FAQ. Without a ns prefix, XPath doesn't choose elements living in the default ns, but ones living in no namespace. Are there any good references you might point me to? I'm pretty new to this stuff and beyond my "in a Nutshell" book don't have many

[PHP] Using SSL

2004-12-13 Thread Daniel Lahey
Can anyone point me to a good source of information for how to use SSL with PHP? I know it's not quite on-topic, but perhaps someone could point me at a good source of info? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Unreliable mail delivery through PHP

2004-12-13 Thread Chris W. Parker
Richard Lynch on Monday, December 13, 2004 4:09 PM said: >> mail($to, $subject, $body, $headers); > > The mail() function returns true/false upon success/failure in > injecting the email into the mail queue. > > You should be grabbing and checking the return va

Re: [PHP] Web Development Overnight!!!

2004-12-13 Thread GH
Supprisedly, Register.com still charges alot $35/1 year $70/2 years $150/5 years $299/10 years On Mon, 13 Dec 2004 22:16:00 -0500, Josh <[EMAIL PROTECTED]> wrote: > $70 for a domain name registration? A domain name only costs $6 or $7 US > dollars per year... > > > > -- > PHP General Mail

Re: [PHP] Web Development Overnight!!!

2004-12-13 Thread Josh
$70 for a domain name registration? A domain name only costs $6 or $7 US dollars per year... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] APC - undefined symbol: OnUpdateInt in Unknown on line 0

2004-12-13 Thread CSN
I'm trying to get APC (http://pecl.php.net/package-info.php?package=APC) to work with PHP 5.0.2 and Apache 2.0.49. I followed the instructions in INSTALL and it appeared to configure, compile, and install without any problems. However, no APC info appears in phpinfo() and this appears in my error l

[PHP] Re: [PHP-XML-DEV] DomXPath and default XML namespaces

2004-12-13 Thread Adam Maccabee Trachtenberg
On Mon, 13 Dec 2004, Dan Phiffer wrote: > I guess what I would expect to work is to allow for blank values as the > first argument to registerNamespace, representing the default namespace, > but that causes the queries to always return no matches. Is there > something I'm missing with this? This

[PHP] DomXPath and default XML namespaces

2004-12-13 Thread Dan Phiffer
I'm curious whether it's possible to use the DomXPath->query in such a way that this... http://www.w3.org/1999/xhtml";> Foo .. could be accessed like this: $xp = new DomXPath($domdoc); echo $xp->query("/html/body/div")->item(0)->nodeValue; ... instead of like this: $xp = new Do

Re: [PHP] php.ini

2004-12-13 Thread Travis Conway
Nevermind. I got it - Original Message - From: "Travis Conway" <[EMAIL PROTECTED]> To: "PHP-GEMERAL" <[EMAIL PROTECTED]> Sent: Monday, December 13, 2004 9:30 PM Subject: [PHP] php.ini What is the default place for php.ini? I have a few copies when I do a `whereis php.ini`. I figure i

[PHP] php.ini

2004-12-13 Thread Travis Conway
What is the default place for php.ini? I have a few copies when I do a `whereis php.ini`. I figure it is the /etc/php.ini. Anyone shed some light? Also, is there anything that must be done after I modify the php.ini? Trav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] sharing info between websites with XML?

2004-12-13 Thread Jason Wong
On Tuesday 14 December 2004 02:08, Richard Lynch wrote: > Get somebody else to host your MySQL database that *does* allow remote > connections, I guess... Actually if the MySQL on the host was not compiled with SSL support then using remote access might not be such a good idea (if you value your

[PHP] email processing

2004-12-13 Thread adwin wijaya
Hi all :) I want to create a system to process the email that coming. For example, I send a confirmation email to our client and they just simply reply the email that we send to them to verify. The problem I got, I dont know how to process the email that coming to our mailbox and process the mes

Re: [PHP] Automaticly Play Sound when MySql Reach some Number

2004-12-13 Thread Sejati Opreker
I planning to make an inventory php-mysql based program, that need to warn my user when the stock reach at specific mount, yeah that true playing sound might annoyed some people around, is it posible to use the same way if sound replace by a dialog box ? --- Richard Lynch <[EMAIL PROTECTED]> wrote:

Re: [PHP] Question: Repopulating form parameters

2004-12-13 Thread David Robley
On Tue, 14 Dec 2004 02:33, Jason Wong wrote: > On Monday 13 December 2004 22:59, Ford, Mike wrote: > >> > The issue was the difference between double and single quotes. >> >> Yes -- but you said "they are both the same", when there were *three* >> things being displayed, and (a) you can't have bo

Re: [PHP] bargraph gd not working

2004-12-13 Thread jm
Hey Stan: None of the other php/gd scripts work either. I have just started working with this so at this point all I'm doing is tinkering with a bunch of examples . Here's one CODE example, and it gets called from in a html page. "99","pork"=>"75","chicken"=>"15","lamb"=>"66","fish"=>"22");

Re: [PHP] File upload problems using Apache 1.3 on Debian stable

2004-12-13 Thread Michael Leung
Is it a permission error? I am facing the permission problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 5 to PHP4 - Apache2Triad

2004-12-13 Thread Josh
I installed PHP5 with MySQL and Apace 2, along with a lot of other stuff as part of Apache2Triad. But I want to replace PHP5 with PHP4 because some of the things I am testing on my computer require PHP4. Can anyone tell me how to do this or where I can find information on how to do it? I thought

[PHP] max_input_time

2004-12-13 Thread Rick Lim
Hi there, I am trying to run a command line windows php script where I wait for characters from the serial port i.e. $sTemp = fgets($Serialfp); After about 60 seconds the script times out and quits, I have tried to change max_input_time in php.ini but it still times out in 60 secs. I have set_ti

Re: [PHP] PHP cross platform IDE

2004-12-13 Thread Craig Slusher
I don't think that there is a _great_ PHP IDE out there. For the most part I will use Gvim, JEdit, or some other programmer's editor like these. However, when I'm at work, we use Zend Studio to do all development. It's nice because it integrates with CVS, has code completion, debugging, etc., but i

Re[2]: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Davey
Hello rouvas, Tuesday, December 14, 2004, 2:45:16 PM, you wrote: r> Not to the web root, but to an arbitrary named on-the-fly created dir r> protected with a *custom* (and different for each dir) .htaccess file (and r> accompanying htpasswd entries). Then, there would be no single pass to share.

RE: [PHP] Question: Repopulating form parameters

2004-12-13 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 13 December 2004 14:00, Stuart Felenstein wrote: > --- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > > > > > If in doubt, print it out (TM) > > > > > > > > echo '$Ind', "$Ind", $

Re: [PHP] Web Development Overnight!!!

2004-12-13 Thread Marek Kilimajer
Afan Pasalic wrote: you can't be signed - web site is still under constraction! he/she posted this a little bit to early! 24 hours, and still under construction :) :) -afan John Nichel wrote: info wrote: Dear php-general@lists.php.net, Subj: Web Development Overnight!!! ===

Re: [PHP] bargraph gd not working

2004-12-13 Thread Stan F
- Original Message - From: "jm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 14, 2004 3:22 AM Subject: [PHP] bargraph gd not working > Hi guys: > I'm using php5 on winxp with IIS. I'm trying to run a simple bar graph demo > found it on phpbuilder site. When I run i

Re: [PHP] curl libraries on Debian Woody with apache 1.3.29.0.2-6 and php 4.3.4-4

2004-12-13 Thread Christophe Chisogne
symbulos partners wrote: We would like to know about security issues with curl, before installing it. If you're talking about curl extension used from PHP scripts, read on. If bad guys can use curl PHP extension via some security hole in your scripts, this mean they can make HTTP requests (GET, POS

Re: [PHP] "Byte Array"

2004-12-13 Thread Ian Firla
Just a follow-up to myself... I decided to try packet sniffing to see what was going on and ettercap confirms that I'm sending out strings rather than data of the type stored in my array: 16:12:26 192.168.0.101:32779 --> 192.168.0.88:32896 | UDP | : 3331

Re: [PHP] Unreliable mail delivery through PHP

2004-12-13 Thread Richard Lynch
> mail($to, $subject, $body, $headers); The mail() function returns true/false upon success/failure in injecting the email into the mail queue. You should be grabbing and checking the return value. It's probably not the culprit here, but is Good Programming Practice. > Assuming all the emai

Re: [PHP] session newbyness...

2004-12-13 Thread Greg Donald
On Mon, 13 Dec 2004 14:09:02 -0800, Tony Di Croce <[EMAIL PROTECTED]> wrote: > I just started using PHP a week or so ago... And everything is coming > along great... Awesome, welcome to the club. :) > But I have some general question about sessions... > Actually, about PHP's built in session sup

Re: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Greg Donald
On Mon, 13 Dec 2004 13:22:52 -0800 (GMT-08:00), Bruce Douglas <[EMAIL PROTECTED]> wrote: > you might also look into 'bit torrent'... You must have missed the part about 'cannot have this file in a "public" location'. >Just thought I would pick the collective brain on this one. I have >a r

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-13 Thread Michael Leung
Hi, Yes, apache can do read/write in /tmp. I can't su to apache. But I created another account in apache group(userid test1). I have such tests by using that account. I can do mv , cp , create new file. After those successful test, I have modified httpd.conf to make apache web server run as

Re: [PHP] Close all open tags in HTML text

2004-12-13 Thread Don Read
On 09-Dec-2004 Marek Kilimajer wrote: > > not really, but it removes and so javascript is > not > interpreted. $txt = preg_replace('|]*?>.*?|si', '', $txt); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are goin

[PHP] bargraph gd not working

2004-12-13 Thread jm
Hi guys: I'm using php5 on winxp with IIS. I'm trying to run a simple bar graph demo found it on phpbuilder site. When I run it I get nothing but an x in the top left corner of my web page(no errors nothing). GD is uncommented in my php.ini, ext dir set and I have verified that GD is installed thro

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-13 Thread Richard Lynch
And apache user can read/write /tmp? What files are in /tmp? su to apache and see if you can read the uploaded files, and mv them to the directory. Michael Leung wrote: > Hi all, > the user is apache for PHP. the directory is owned by apache user. > I am 100% certain for the directory name. > >

Re: Re[2]: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread James Stewart
On Dec 14, 2004, at 8:53 AM, Richard Davey wrote: Tuesday, December 14, 2004, 1:33:07 PM, you wrote: r> Why don't you take the PHP out of the loop entirely? r> Make a dir into the Apache area with a custom .htaccess r> (with usernames/passwords, etc) and put the required files there. Then the files

Re: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread rouvas
On Tuesday 14 December 2004 15:53, Richard Davey wrote: > Hello rouvas, > > Tuesday, December 14, 2004, 1:33:07 PM, you wrote: > > r> Why don't you take the PHP out of the loop entirely? > r> Make a dir into the Apache area with a custom .htaccess > r> (with usernames/passwords, etc) and put the re

[PHP] Unreliable mail delivery through PHP

2004-12-13 Thread Chris W. Parker
Hello, I have a function that is called each time a new visitor creates an account on our site. The function is as follows: "; $subject = "New Account Created at ".SITE_NAME; $tmp_ADMIN_URL = ADMIN_URL; $body = << Assuming all the email addresses are correct, is there anything

Re: [PHP] curl libraries on Debian Woody with apache 1.3.29.0.2-6 and php 4.3.4-4

2004-12-13 Thread Christophe Chisogne
symbulos partners wrote: We would like to know about security issues with curl, before installing it. hem, this is a PHP list. Perhaps you're talking about curl PHP extension? We are using Debian Woody (some few packages from Sarge), and apache 1.3.29.0.2-6 and php 4.3.4-4. For Debian security, che

Re: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Lynch
Richard Davey wrote: >So I came up with an idea that I'd like your opinions on: I built a >small but friendly Windows application (<50KB in size) that will >connect to the web server via HTTPS, check the download credentials >and if all is ok, it then downloads the file via HTTP in

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-13 Thread Michael Leung
Hi all, the user is apache for PHP. the directory is owned by apache user. I am 100% certain for the directory name. yours, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen https problem

2004-12-13 Thread Richard Lynch
Maycon de Oliveira wrote: > Hi, i have problem in my script, this error is Permission Danied (13) > > > $host = "193.132.139.36"; > > $port = 443; > > $path = "/gatekeeper/ink/quexry.asp"; //or .dll, etc. for authnet, etc. > > $fp = fsockopen("https://".$host, $port, $errno, $errstr, $timeout = 10

Re: [PHP] PHP vs JSP?

2004-12-13 Thread Richard Lynch
Peter Lauri wrote: > Best groupmember, > > Why should I choose PHP instead of JSP/Servlets when it comes to develop a > high-traffic site. Assume that the infrastructure for both are set up. It > only comes to efficiency (both coding and running)? What are your > experience? I believe PHP and JSP

Re: [PHP] Coding Question

2004-12-13 Thread Justin French
On 07/12/2004, at 6:50 AM, Al wrote: Jason Wong wrote: On Monday 06 December 2004 14:19, Rory Browne wrote: If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct,

Re: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread rouvas
[...snip...] > RL> always see when you install software. > > That would lock us into a platform specific environment too :) You > don't run an Install Shield web delivery system by executing the setup > file on a Mac just because you're at work and can burn it to CD :) I > was more interested in c

Re[2]: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Davey
Hello Bruce, Monday, December 13, 2004, 9:22:52 PM, you wrote: BD> you might also look into 'bit torrent'... Not really any use at all in this situation. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar

Re[2]: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Davey
Hello rouvas, Tuesday, December 14, 2004, 1:33:07 PM, you wrote: r> Why don't you take the PHP out of the loop entirely? r> Make a dir into the Apache area with a custom .htaccess r> (with usernames/passwords, etc) and put the required files there. Then the files have to be within the web root a

[PHP] getimagesize() for image resources

2004-12-13 Thread Greg Donald
Does anyone know a way to get the size of an an image while it exists as an image resource? getimagesize() appears to work on image files, but not image resources. I need something that works on image resources like those created with the PHP imagecreatefrom* functions. I realize I can write th

Re: [PHP] session newbyness...

2004-12-13 Thread Chris Shiflett
--- Tony Di Croce <[EMAIL PROTECTED]> wrote: > I have some general question about sessions... Actually, about > PHP's built in session support. > > Do I need to call session_start() in every script that needs > access to $_SESSION[]? Yes. > Would it cause any problems if I do? What sort of prob

Re[2]: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Davey
Hello Greg, Monday, December 13, 2004, 9:42:30 PM, you wrote: GD> Use set_time_limit(0); to prevent the timeout. ignore_user_abort() is GD> pretty handy too. Yeah, I have the time-out limit in there already (the client end will detect for a time-out from the server as well). GD> If that doesn'

Re: [PHP] Re: Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Davey
Hello Michelle, Monday, December 13, 2004, 8:57:43 PM, you wrote: MK> Why not suggest your clients to use "wget" for Windows or DOS ? MK> The 32-Bit Version of "wget" for DOS works perfectly in a DOS-Box MK> of Win2003 Server, WinXP Pro+Home, Win2000, Win98 and Win95 Perhaps, but if I am going

Re: [PHP] session newbyness...

2004-12-13 Thread M. Sokolewicz
Greg Donald wrote: On Mon, 13 Dec 2004 14:09:02 -0800, Tony Di Croce <[EMAIL PROTECTED]> wrote: I just started using PHP a week or so ago... And everything is coming along great... Awesome, welcome to the club. :) But I have some general question about sessions... Actually, about PHP's built in

Re[2]: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Davey
Hello Richard, Tuesday, December 14, 2004, 12:02:19 AM, you wrote: RL> This sounds an awful lot like various web installers. Sure, there's nothing unique about the concept. The aim was to reduce to load on the web server and make things a little easier for the end user. You can code Install Shie

Re: [PHP] Re: getimagesize() for image resources

2004-12-13 Thread Greg Donald
On Mon, 13 Dec 2004 23:17:22 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > imagesx() and imagesy() I knew there had to be a way. Thanks so much. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] php self problem

2004-12-13 Thread John Nichel
Ahmed Abdel-Aliem wrote: hi i use framework in my scripts, and i have a problem with forms that calls the same page for example i have a form in that link http://localhost/play/index.php?fuseaction=SiteMain.showGamePage&Game_ID=33 when i use $PHP_SELF it goes to http://localhost/play/index.php so h

[PHP] session newbyness...

2004-12-13 Thread Tony Di Croce
I just started using PHP a week or so ago... And everything is coming along great... But I have some general question about sessions... Actually, about PHP's built in session support. Do I need to call session_start() in every script that needs access to $_SESSION[]? Would it cause any problems if

Re: [PHP] STUMPED: path/style vars in Windows with IIS

2004-12-13 Thread Ck
Hi Richard. Thank you for the reply. I was dragged to IIS kicking and screaming! I have been doing php development for almost 6 years, and this will be my first production-level experience with php through IIS... Unfortunately it is a hosted environment and there is a legacy coldfusion applicat

[PHP] Re: getimagesize() for image resources

2004-12-13 Thread M. Sokolewicz
Greg Donald wrote: Does anyone know a way to get the size of an an image while it exists as an image resource? getimagesize() appears to work on image files, but not image resources. I need something that works on image resources like those created with the PHP imagecreatefrom* functions. I real

Re: [PHP] email processing

2004-12-13 Thread David Green
Hi Adwin, I don't know if this'll help you but the way I've done it on my site is to send out a confirmation email with a link the user needs to follow to confirm. The link ends with two GET variables, one being the username and one being a unique number created for their account at time of reg

Re: [PHP] php self problem

2004-12-13 Thread Ahmed Abdel-Aliem
hi thanks, i used it but i have a new problem but i solved it so for people who will face the same problem u can do this $same_page = $PHP_SELF."?".$_SERVER['QUERY_STRING']; this will go to the same page with the variables passed too thanks for help Ahmed Abdelaliem On Mon, 13 Dec 2004 16:54:

Re: [PHP] session newbyness...

2004-12-13 Thread John Nichel
Tony Di Croce wrote: I just started using PHP a week or so ago... And everything is coming along great... But I have some general question about sessions... Actually, about PHP's built in session support. Do I need to call session_start() in every script that needs access to $_SESSION[]? Would it c

[PHP] php self problem

2004-12-13 Thread Ahmed Abdel-Aliem
hi i use framework in my scripts, and i have a problem with forms that calls the same page for example i have a form in that link http://localhost/play/index.php?fuseaction=SiteMain.showGamePage&Game_ID=33 when i use $PHP_SELF it goes to http://localhost/play/index.php so how can i make the form go

[PHP] Re: php.ini

2004-12-13 Thread Jonathan
restart your webserver "Travis Conway" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What is the default place for php.ini? I have a few copies when I do a > `whereis php.ini`. I figure it is the /etc/php.ini. Anyone shed some > light? Also, is there anything that must be done

Re: [PHP] sharing info between websites with XML?

2004-12-13 Thread Richard Lynch
p80 wrote: >>> I have several website that use mysql as a database and I would like >>> them >>>to access each other DB. The problem is that I can't connect to each >>> other >>>mysql >>> DB so I'm looking for a way to do so. > >>Why aren't you able to connect to the other databases? > cause ho

Re: [PHP] sharing info between websites with XML?

2004-12-13 Thread Richard Lynch
p80 wrote: > On Sunday 12 December 2004 05:15 pm, Jason Wong wrote: >> On Sunday 12 December 2004 22:33, p80 wrote: >> > > eg do you want to only make available >> > > specific pre-defined bits of data to client websites, >> > >> > yes this is how I'd like to proceed >> >> OK, if there are only a l

Re: [PHP] Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found

2004-12-13 Thread Richard Lynch
Raymond C. Rodgers wrote: > On Fri, 2004-12-10 at 13:23, Richard Lynch wrote: >> Where exactly is png.h in your directory system? >> If libpng is installed, it should be there. >> >> What are you using after the --with-png-dir= >> Whatever you are using, it must be a directory far enough *above* pn

Re: [PHP] Varible calling a define value

2004-12-13 Thread Dev
I actually figure this out from the web site and had to use constant(); At 04:36 PM 12/13/2004, you wrote: Hello all, I am setting up a page that I would like to use DEFINE to retrieve more information about abriviations in a database. The database part all works just fine. Currently i have a Def

RE: [PHP] Varible calling a define value

2004-12-13 Thread Jay Blanchard
[snip] Currently i have a Defiune setup of: define("THS", "This is a test"); I also have a string value of $that='THS'; When I echo out $that it get THS. I want to echo out $that and get: This is a test. How can I do this? [/snip] Remove the quotes around THS $that = THS; echo $that; -- PHP Gen

Re: [PHP] Varible calling a define value

2004-12-13 Thread Chris Boget
> Currently i have a Defiune setup of: > define("THS", "This is a test"); > I also have a string value of > $that='THS'; > When I echo out $that it get THS. > I want to echo out $that and get: > This is a test. > How can I do this? $that = THS You don't want the quotes. thnx, Chris -- PHP Gene

Re: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Bruce Douglas
hi.. you might also look into 'bit torrent'... peace.. -Original Message- From: Richard Davey <[EMAIL PROTECTED]> Sent: Dec 13, 2004 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Delivering large files via PHP (>300MB) Hi all, Just thought I would pick the collective brain on this

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Jay Blanchard
[snip] But the problem is still there (CGI and CLI sapi tested). I used the "-n" option, so php.ini can't cause the problem, either. Has anyone else experienced that? [/snip] Yes. You will have to write your own clean-up code for things like this. -- PHP General Mailing List (http://www.php.net/

Re: [PHP] remote permissions on MySQL

2004-12-13 Thread Richard Lynch
Alessandro Rosa wrote: > I'm a newbie on MySQL. > > I just wanted to know whether there is the possibility > to create a new user/psw remotely onto a server. > > That is, something related to command 'mysql_setpermissions', > but acting from a remote host. If all else fails, you could manipulate t

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-13 Thread Jason Wong
On Tuesday 14 December 2004 03:11, Richard Lynch wrote: > If they can't run with register_globals OFF, they don't get installed. Even if they are advertised to run with register_globals disabled, I hope you check that they don't cheat and do something cheesy like extract($_REQUEST). ;-) -- Ja

Re: [PHP] How can I fix that

2004-12-13 Thread Richard Lynch
Aalee wrote: > I did a form to add data to a database and it works fine. Once the data is > entered its gives a thankyou message. But the problem is, if I refresh > this > thankyou page, the data is entered again into the database. Why is it > doing > so. I couldnt think of a way to fix it. Help...

[PHP] Varible calling a define value

2004-12-13 Thread Dev
Hello all, I am setting up a page that I would like to use DEFINE to retrieve more information about abriviations in a database. The database part all works just fine. Currently i have a Defiune setup of: define("THS", "This is a test"); I also have a string value of $that='THS'; When I echo out

Re: [PHP] "Byte Array"

2004-12-13 Thread Chris
Try the unpack function, it should do quite nicely. Chris Ian Firla wrote: Hello All, I've hit a bit of a show stopper in a project I'm working on. I'm getting a 65 byte stream of data. 32 of those bytes are of the type "Byte Array". Is there a way that I can covert that data into something useful?

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-13 Thread Richard Lynch
KJ wrote: > OK, I don't think you've read my posts in much detail at all. I looks as > though you have skimmed over them and got a pre-determined idea of my > issue in your head. > > Not once have I mentioned anything about "customers" in my posts. I'm > not a web host. I'm not talking about people

Re: [PHP] Close all open tags in HTML text

2004-12-13 Thread Richard Lynch
Matt Palermo wrote: > I realize that I can use the strip_tags function to remove HTML. But I > don't want to remove HTML tags. I just want to make sure all open HTML > tags > are closed. For example if they user submits HTML with a tag and > never closes it, then the rest of the page will look

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-13 Thread Richard Lynch
KJ wrote: >> So, not only do you have register_globals "on" which is a Bad Idea, >> you've >> got PHP files in your web tree that they can surf to, bypass your >> configuration setting of $base_url, and execute code that the Programmer >> never ever ever intended to be executed out of sequence (IE,

Re: [PHP] Multiple Inheritance

2004-12-13 Thread Richard Lynch
Greg Beaver wrote: > Greg Donald wrote: >> with it, but I will go grab a PEAR module if it fits my needs. Code >> re-use may be the only redeeming quality of OO programming, and >> honestly I can re-use your code from a non-OO include file just as >> easily. > > yep, unless the function names happe

[PHP] Re: Delivering large files via PHP (>300MB)

2004-12-13 Thread Michelle Konzack
Am 2004-12-13 19:53:01, schrieb Richard Davey: > Hi all, >I can push the file out quite easily using a modified header and a >simple script to check if they can download it or not, but with >such a large file a significant number of web browsers fail to >obtain the entire EXE befor

Re: [PHP] php mail

2004-12-13 Thread Richard Lynch
PHPDiscuss - PHP Newsgroups and mailing lists wrote: > I have a dedicated Red Hat linux boxed leased from Interland and the php > mail function does not work. I have found several articles on things to > try and have tried everything I saw but to no avail. I set up a php > script to mail and then

Re: [PHP] PHP via DIAL-UP?

2004-12-13 Thread Richard Lynch
Police Trainee wrote: > Hello. I have a computer at my office running Apache > that I use to run PHP scripts with using > http://localhost. > > Is there anyway I can set up my computer to allow me > to dial-in from home and use the webserver and my php > applications? > > It is a win 98 system with

RE: [PHP] "Byte Array"

2004-12-13 Thread Jay Blanchard
[snip] I'm getting a 65 byte stream of data. 32 of those bytes are of the type "Byte Array". Is there a way that I can covert that data into something useful? For the record, the data stream that I'm getting is in the format: |ascii|ascii|asciiX10|integerX4|byte arrayX32| The byte array looks li

[PHP] url rewritting in php5

2004-12-13 Thread elixon
Hello! I'm solving one problem and I'd like to ask you for hints/advices or 'RTFM at ' answers. Problem is: I need special type of URL to be 'rewritten' in the way how the Apache does the URL rewritting. example: fopen('chrome://myfile.txt', 'r'); to have be internaly resolved for eaxample as f

Re: [PHP] Web Development Overnight!!!

2004-12-13 Thread Ryan A
Spamming SOB. On 12/13/2004 3:21:01 PM, [EMAIL PROTECTED] wrote: > Dear php-general@lists.php.net, > > > > Subj: Web Development Overnight!!! > > > > == > > > > > That's right! > A complete website done for you overnight! > >

Re: [PHP] Web Development Overnight!!!

2004-12-13 Thread Richard Lynch
John Nichel wrote: > Mat Harris wrote: > >>> Act now and we'll even give you your own domain name >>> (www.yourdomain.com) for FREE!!! That's a $70 value >>> at no extra charge! >> >> >> $70!???!? >> >> do they have a huge surcharge for .coms in the states? here in >

Re: [PHP] "Byte Array"

2004-12-13 Thread Ian Firla
You're right. I think it will. Thanks. I've got another issue now though which may indeed be a show-stopper. It seems that while socket_recvfrom is binary safe, there's no way to send data in any way other than a string... Is that right? Can I not send data of other types? Ian On Mon, 2004-12-

[PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Richard Davey
Hi all, Just thought I would pick the collective brain on this one. I have a requirement to deliver a large EXE file to customers after they order. The file is just under 400 MB in size and, because they have just purchased it, I obviously cannot have this file in a "public" locatio

[PHP] curl libraries on Debian Woody with apache 1.3.29.0.2-6 and php 4.3.4-4

2004-12-13 Thread symbulos partners
Dear friends, we would like to use the curl libraries on a server, which is open on the internet. We would like to know about security issues with curl, before installing it. We are using Debian Woody (some few packages from Sarge), and apache 1.3.29.0.2-6 and php 4.3.4-4. Thanks in advance. --

Re: [PHP] Automaticly Play Sound when MySql Reach some Number

2004-12-13 Thread Richard Lynch
Sejati Opreker wrote: > How do I make automaticly PHP playing a sound (Ogg, or > MP3 format file) when MySql (in Table, or Coulom) > reach a number (for example 5) Er. You'd have to write a query in MySQL/PHP such as: $query = "select whatever = 5 from something"; Or, perhaps: $query = "sele

Re: [PHP] STUMPED: path/style vars in Windows with IIS

2004-12-13 Thread Richard Lynch
Ck wrote: > Hello. > > I am trying to get path/style variables working in windows with IIS on > a hosted environment. What I mean by path/style variables is the > following: Say I have a script "test.php" that can be accessed via: > > http://mydomain/controller.php > > ...I want to pass variables

Re: [PHP] File upload problems using Apache 1.3 on Debian stable

2004-12-13 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > Hi, > I do indeed have the file upload code inside a class function. it's one > of those little things about PHP hadn't fully realised yet. Thanks for > the pointer! If I pass the relevant _FILE entry to that function and > work off that it solves the problem right? You

Re: [PHP] Clickable image maps

2004-12-13 Thread Richard Lynch
Kurt Blom wrote: > Can PHP handle with CIM's (Clickable Image Maps) to get data from a html > page (instead of using checkboxes...)? > I searched the online doc for it but no matches. Sure. Note that the HTTP variables cim.x and cim.y are probably converted to $_POST['cim_x'] and $_POST['cim

RE: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Jay Blanchard
[snip] > Before the image is created you can get an array of things in the temp > file, then check for a new thing after the image is created. You can > verify the file type and if all is kosher, delete it. Seems like this is something that either the GD lib or PHP should be doing and not the use

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Steve
Seems like this is something that either the GD lib or PHP should be doing and not the user. Shouldn't this be reported as a bug? Yes, I also consider this a bug, unless it's something specific to my system. To find out, I posted this here. Is nobody else out there using ImageGIF() with PHP 4.3

Re: [PHP] sql syntax problem

2004-12-13 Thread Richard Lynch
Merlin wrote: > SELECT c.name AS city > FROM geo_de.geodb_locations AS c, fix.user AS u > WHERE u.user_id =4 AND c.plz > LIKE "%u.plz%"; I believe you want something not unlike this: WHERE u.user_id = 4 AND c.plz LIKE concat('%', u.plz, '%') -- Like Music? http://l-i-e.com/artists.htm -- P

Re: [PHP] Infinity and nested categories

2004-12-13 Thread Richard Lynch
Bruno B B Magalhães wrote: > Hi again everybody, > > well, I've asked it before, but I couldn't work on this at all. > > As some knows I have a system witch has a category system. The generic > part of the site is handled by a generic module called contents... > generic like products, services, com

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-13 Thread Richard Lynch
KJ wrote: > Ah OK. So the only only includes should be out of the web tree, or on a > remote site? > > Nice one. I hope you're not being sarcastic, because this statement is actually 100% true. Your web-sites should have clearly-defined 'entry points' which are pages that you actually expect peop

Re: [PHP] Web Development Overnight!!!

2004-12-13 Thread John Nichel
Mat Harris wrote: Act now and we'll even give you your own domain name (www.yourdomain.com) for FREE!!! That's a $70 value at no extra charge! $70!???!? do they have a huge surcharge for .coms in the states? here in the uk i can register one for literally 10% of that.

  1   2   >