Re: [PHP] jpeg libraries.

2003-08-28 Thread Tom Rogers
Hi, Friday, August 29, 2003, 6:39:16 AM, you wrote: MAS> I got the jpeg libraries from: MAS> http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809 MAS> And installed them; even did a make test to make sure everything was MAS> correct. MAS> It did install some jpeg stuff under /usr/local/bi

Re: [PHP] LWP::Parallel in PHP

2003-08-28 Thread Robert Cummings
This isn't the best solution but it might help bring down the total time. Can you set up a shell script to retrieve the content from a URL (in PHP if you wish) and then from your web app spawn 5 processes, with destination temporary files for the data which you can then poll for completion (microsl

Re: [PHP] LWP::Parallel in PHP

2003-08-28 Thread Evan Nemerson
php.net/pcntl_fork On Thursday 28 August 2003 11:09 am, David Otton wrote: > On Thu, 28 Aug 2003 20:25:05 +0300, you wrote: > >I am looking for PHP analog of Perl LWP::Parallel. > >I need to fetch several URL(pages) from PHP at the same time. > >I have a script which fetch 5-10 URL, each URL fet

Re: [PHP] post v get

2003-08-28 Thread John W. Holmes
andu wrote: When you POST a form to the server the server replies with a new page. if you click the Back button in the browser the server wants to re-POST the form. Short of using GET is there a way to prevent re-submitting the previous form? Of course. :) One technique is to use a "middle-man" p

Re: [PHP] selecting based on a month in a date

2003-08-28 Thread John W. Holmes
Creative Solutions New Media wrote: Hi, Asked this on the mySQL list but it seems to be more of a PHP syntax thing that a mySQL thing. In have the following line in PHP I have a mySQL table which contains dates formatted as dates(-xx-xx) I want to select all records based on a specific mon

Re: [PHP] reboot pc with PHP

2003-08-28 Thread David T-G
Petre, et al -- ...and then Petre Agenbag said... % % Hi List Hi! % % I've gone through the list for previous questions and the only one that % seems to be a solution is to use sudo, however, I cannot seem to get it % right. ... % % Obviously these command(s) need to be run as root, so I loo

[PHP] selecting based on a month in a date

2003-08-28 Thread Creative Solutions New Media
Hi, Asked this on the mySQL list but it seems to be more of a PHP syntax thing that a mySQL thing. In have the following line in PHP I have a mySQL table which contains dates formatted as dates(-xx-xx) I want to select all records based on a specific month. This is my select statement S

[PHP] Array Push and Keys

2003-08-28 Thread Mike Morton
I am trying to loop through some database results to build an array similar to: Array ( [33]=>Array ( [usa]=>52.00 [sa]=>553.00 ) ) And the problem that I am having is that array_push does not want to take keys when I am using it. My Code: $transactions=Array(); While($r

RE: [PHP] PHP Interview questions

2003-08-28 Thread Matt Matijevich
Can you do it programmitically (with pseudo-code)? After all, we need to keep this on-topic :) not pseudo code and it could definatley be cleaned up or done better but her is my quick try at it echo "We are walking to up to a fork in the road."; $randval = rand(1, 500); $randval2 = rand(1, 500

Re: [PHP] post v get

2003-08-28 Thread Jim Lucas
no Jim Lucas - Original Message - From: "andu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 1:49 PM Subject: [PHP] post v get > When you POST a form to the server the server replies with a new > page. if you click the Back button in the browser the server

Re: [PHP] jpeg libraries.

2003-08-28 Thread Curt Zirzow
* Thus wrote Mike At Spy ([EMAIL PROTECTED]): > > It did install some jpeg stuff under /usr/local/bin, but I don't see > anything added to /usr/local/lib. > > After that, I re-compiled php with: > > --with-jpeg > > But nothing changed. > > I re-compiled again with: > > --with-jpeg=/usr/local/

RE: [PHP] can pdf forms be used to submit data into db?

2003-08-28 Thread Roedel, Mark
Guess I'm a little late to this party, but... If you're still looking for help with tying a PDF form to a database, drop me a note. I've got some code I developed for our online admissions application that I can probably be talked into sharing. -- Mark Roedel Web Programmer / Analyst LeTournea

[PHP] post v get

2003-08-28 Thread andu
When you POST a form to the server the server replies with a new page. if you click the Back button in the browser the server wants to re-POST the form. Short of using GET is there a way to prevent re-submitting the previous form? -- Regards, Andu Novac -- PHP General Mailing List (http://www.p

[PHP] Some cookies are being set, some aren't

2003-08-28 Thread Thaddeus J. Quintin
I've got a problem with cookies failing. Here's the setup- A staging server, RedHat Linux, with php 4.3 Main server, FreeBSD, also php 4.3 Running identical Apache setups and Identical php setups. The staging server is only accessible behind our local firewall and does not run https. The Main s

[PHP] jpeg libraries.

2003-08-28 Thread Mike At Spy
I got the jpeg libraries from: http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809 And installed them; even did a make test to make sure everything was correct. It did install some jpeg stuff under /usr/local/bin, but I don't see anything added to /usr/local/lib. After that, I re-compile

Re: [PHP] parsing domains

2003-08-28 Thread David T-G
Mike -- ...and then CollegeSucks.com Mike said... % % Quick question... Quick answer :-) % ... % % $parseddomain = preg_replace('/.+?(\..+)/', '$1', $domain); # pulls out "domain" from # domain.com # www.domain.com # www.domain.ac.uk # ... $this_domain = preg_replace('/(

Re: [PHP] var static

2003-08-28 Thread Jordan S. Jones
If I were you, I would use the following: if (!is_a ($miInstancia, 'db')) $miInstancia=new db(); That way you can ensure that the variable has been instantiated and is an instance of the db class.. But it may not really matter.. Jordan S. Jones Alvaro Martinez wrote: I've found the solution m

[PHP] Question about mail()

2003-08-28 Thread Matthias Wulkow
Hi php-general, I have a question about the mail function. In the API I saw, that when running on linux, I just need the binary sendmail, usually located on /usr/sbin. Windows users need a running mail-server. I have php working on a linux machine. Why do I need to have postfix running then to

Re: [PHP] var static

2003-08-28 Thread Robert Cummings
Globals!? YUCK :) A better solution IMHO that maintains encapsulation, is to use a static var in a function: function &getClassVar( $name ) { return getAndSetClassVar( $name, false ); } function &setClassVar( $name, $value ) { return getAndSetClassVar( $name, true, $value ); } function &

Re: [PHP] var static

2003-08-28 Thread Alvaro Martinez
I've found the solution myself. The db class is the next: class db{ function db (){ // funcion que se conecta con la BBDD $result = @mysql_pconnect("inforalv", "discoteca", "password"); if (!$result) return false; if ([EMAIL PROTECTED]("discoteca")) return false; } function &getInstancia(){ stat

[PHP] Re: installation problem

2003-08-28 Thread Shadow
can you display phpinfo? Did you check the php.ini file? Shadow -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LWP::Parallel in PHP

2003-08-28 Thread David Otton
On Thu, 28 Aug 2003 20:25:05 +0300, you wrote: >I am looking for PHP analog of Perl LWP::Parallel. >I need to fetch several URL(pages) from PHP at the same time. >I have a script which fetch 5-10 URL, each URL fetched 0.5 - 2 sec. >Totally it's about 10 seconds in average. >I suppose if I fetched

[PHP] Loading advise (no problem)

2003-08-28 Thread Ryan A
Hi, No problem, Just need a little advise on improving my page display time, let me explain: I am using some ad software (written in php) which is giving me 5 ads (banners) to display on a page dynamically (eg: they rotate, banner code is given at the end of this mail) I have put all 5 banners on

Re: [PHP] var static

2003-08-28 Thread Tom Rogers
Hi, Friday, August 29, 2003, 3:01:45 AM, you wrote: AM> I want to obtain only one instance of one class. In other to do that, I call AM> to a static method, that creates the instance(if it doesnt exit) or returns AM> the reference of the instance. AM> The call to the static method is the next: AM

[PHP] Re: PHP won't parse under https, but will with http

2003-08-28 Thread Jason Jacobs
>> Is this a virtual host ? How did you define the AddType in httpd.conf ? Yes. And I believe our AddTypes are set for each v-host. In this case, the v-host has its own AddTypes. AddType application/x-httpd-php .php .php3 .phtml AddType application/x-httpd-php-source .phps Like I mentioned, th

[PHP] MS SQL query problem

2003-08-28 Thread Omar
I have a sql query, something like SELECT x FROM server1.table WHERE x IN (SELECT x FROM server2.table) I get a warning when loading the page. This is the warning: Warning: MS SQL message: Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ens

[PHP] LWP::Parallel in PHP

2003-08-28 Thread Alex
Hello all! I am looking for PHP analog of Perl LWP::Parallel. I need to fetch several URL(pages) from PHP at the same time. I have a script which fetch 5-10 URL, each URL fetched 0.5 - 2 sec. Totally it's about 10 seconds in average. I suppose if I fetched them parallel I would speed up the script

RE: [PHP] var static

2003-08-28 Thread Dynamical.biz
Although PHP supports static variables in functions (see here), it has no support for static variables in classes. http://www.php.net/manual/en/language.variables.scope.php (espero que te sirva) saludos aniceto lópez :: DYNAMICAL.BIZ web development & host services Barcelona - Spain -Me

[PHP] var static

2003-08-28 Thread Alvaro Martinez
I want to obtain only one instance of one class. In other to do that, I call to a static method, that creates the instance(if it doesnt exit) or returns the reference of the instance. The call to the static method is the next: $conexiondb=db::getInstancia(); Well, but if I call to db::getInsta

RE: [PHP] GD & PHP

2003-08-28 Thread Javier Tacon
Try to add --with-jpeg, but probably you need to install some libraries, like libjpeg (http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809) -Mensaje original- De: Mike At Spy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 18:22 Para: Javier Tacon; [EMAIL PROTE

Re: [PHP] building php witk libiconv

2003-08-28 Thread Tom Rogers
Hi, Friday, August 29, 2003, 12:52:11 AM, you wrote: AB> Hi, AB> I don't know what to do with libiconv to build php4.3.3. AB> My libiconv-1.9 is installed in /opt AB> if I invoke configure --with-iconv=/opt the script runs fine but I AB> get the following message at compile time: AB> gcc:

RE: [PHP] GD & PHP

2003-08-28 Thread Mike At Spy
I get an error about png libraries not found, though my configure line only adds --with-gd to it from my previous configure (pretty recent). Do I need png and/or some sort of jpeg libraries installed first? I don't mention png in my configure line: ./configure --prefix=/usr --with-apxs=/usr/sbi

[PHP] Re: Including classes inside functions vs outside - scope/global

2003-08-28 Thread Greg Beaver
Hi Verdon, Be sure that $connobj is declared as a global variable in the mysql_connection.php file. You can do this in two ways: 1) instead of $connobj = blah, use $GLOBALS['connobj'] = blah 2) global $connobj; $connobj = blah Regards, Greg -- phpDocumentor http://www.phpdoc.org Verdon Vaillanc

[PHP] Re: PHP won't parse under https, but will with http

2003-08-28 Thread Catalin Trifu
Hi, Is this a virtual host ? How did you define the AddType in httpd.conf ? as global directive or for each vhost ? Also check that u'r apache listens to 443. Does pure .html page display ? Cheers, Catalin "Jason Jacobs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

Re: [PHP] Parsing Current Server Domain

2003-08-28 Thread Curt Zirzow
* Thus wrote jeffrey pearson ([EMAIL PROTECTED]): > Does anyone know how I would parse the domain that scripts are currently being > executed in? > > ... > > dev.domain.com/somefile.php > > where on the live site it would be > > www.domain.com/somefile.php In most cases $_SERVER['HTTP_HOST'] i

[PHP] Parsing Current Server Domain

2003-08-28 Thread jeffrey pearson
Does anyone know how I would parse the domain that scripts are currently being executed in? For example: I use seperate domains for development and production. There are times I have to specify a hard coded url instead of a relative one. So for the development it would be; dev.domain.com/somef

[PHP] PHP won't parse under https, but will with http

2003-08-28 Thread Jason Jacobs
I'm not sure if this is the right forum for this question, but I'm hoping someone can help nonetheless. :) I installed an SSL Cert. on a site the other day for a checkout page, and the php won't parse. If I take the "s" off, it parses just fine. I have a feeling it's an httpd.conf setting, bu

RE: [PHP] GD & PHP

2003-08-28 Thread Mike At Spy
Cool - thanks. :) -Mike > -Original Message- > From: Javier Tacon [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 11:33 AM > To: Mike At Spy; [EMAIL PROTECTED] > Subject: RE: [PHP] GD & PHP > > > > You need to compile PHP with the option --with-gd in the configure step. >

Re: [PHP] Re: Website templating schemes

2003-08-28 Thread rush
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wow... where'd you pull that from?? Any facts to back that up? :) :) no, I was think in terms of how easy is to write template oriented software, and how flexible te results are, which are all pretty subjective things,

[PHP] var static

2003-08-28 Thread Alvaro Martinez
I want to obtain only one instance of one class. In other to do that, I call to a static method, that creates the instance(if it doesnt exit) or returns the reference of the instance. The call to the static method is the next: $conexiondb=db::getInstancia(); Well, but if I call to db::getInsta

RE: [PHP] GD & PHP

2003-08-28 Thread Javier Tacon
You need to compile PHP with the option --with-gd in the configure step. The function is imagecreatefromjpeg() -Mensaje original- De: Mike At Spy [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 17:32 Para: [EMAIL PROTECTED] Asunto: [PHP] GD & PHP Is there anything

[PHP] building php witk libiconv

2003-08-28 Thread Alain Bonnefoy
Hi, I don't know what to do with libiconv to build php4.3.3. My libiconv-1.9 is installed in /opt if I invoke configure --with-iconv=/opt the script runs fine but I get the following message at compile time: gcc: /usr//lib/.libs/libiconv.so: No such file or directory gcc: /opt//lib/.libs/li

[PHP] GD & PHP

2003-08-28 Thread Mike At Spy
Is there anything special I have to do to enable GD when using PHP 4.3.2? I'm getting an error of: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/sites/site37/web/photos/functions.php on line 594 When I use the imagecreatefromjpeg() function. Is it not usable with gd?

[PHP] PHP5 - self referencing classes

2003-08-28 Thread Thomas Hebinck
Hi all, I have a class which creates a new object and caches this object (see source at the bottom). The new object holds a link on the creator class. The __descructor function of both classes are never called - because the classes are destroyed (killed), when the script terminates. Is there a wa

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
of course, i've only just seen that the script removes it. it's been a long day, my apologies. just out of curiosity, why would you want the ability to reboot your box like that? On Thu, Aug 28, 2003 at 04:06:25PM +0200, Javier Tacon wrote: > > Exactly .. > Well, the script removes the rreboot f

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
Exactly .. Well, the script removes the rreboot file before the shutdown. For security choose a directory for rreboot file placed in a directory that only can be readed/writed by apache, and the php file in the example its very simple, but you can ask for a password, create a log, etc .. chown

[PHP] Including classes inside functions vs outside - scope/globalquestion?

2003-08-28 Thread Verdon vaillancourt
Hi :) Somewhat newbie question... I'm trying to include some open source classes into a project I am working on. The classes build a set of relational select menus from the contents of two tables. I have not trouble using the classes in a simple test page, but am running into problems when I try

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
On Thu, Aug 28, 2003 at 03:35:59PM +0200, Javier Tacon wrote: > > A more easy solution is that: > > Make a cron that executes every minut /tmp/rreboot.sh for user root > crontab -e > Add the line: > * * * * * /tmp/rreboot.sh > > The script is: > /tmp/rreboot.sh > --- > #!/bin/sh > i

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
A more easy solution is that: Make a cron that executes every minut /tmp/rreboot.sh for user root crontab -e Add the line: * * * * * /tmp/rreboot.sh The script is: /tmp/rreboot.sh --- #!/bin/sh if [ -f "/tmp/rreboot" ]; then rm -f /tmp/rreboot shutdown -r now fi --- Ma

[PHP] Re: reboot pc with PHP

2003-08-28 Thread Catalin Trifu
if you are really not interested in the security, then you can run the apache server as root; then you have root privileges for your PHP scripts. then you can use the system() function with no restrictions Cheers, Catalin "Petre Agenbag" <[EMAIL PROTECTED]> wrote in message news:[EMAI

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
You can write a little script with expect (man expect) and execute it from php with exec(). Other solution its to write a .procmailrc in root that executes the reboot when coming a mail with some text in subject or boyd, so, from php you only need to send a mail. -Mensaje original- De

[PHP] reboot pc with PHP

2003-08-28 Thread Petre Agenbag
Hi List I've gone through the list for previous questions and the only one that seems to be a solution is to use sudo, however, I cannot seem to get it right. Just as background: I want to make a small "admin" utill for an intranet machine, so the security risks don't bother me at all. Instead

Re: [PHP] Re: Animating with GD?

2003-08-28 Thread Blue Prawn
> >Not anymore due to the Unisys LZW patent issues.. GD has no support for > >GIF file anymore. > >Wait until next june.. Then you can create animated GIF files with GD > >(Unisys' patent expires). > > That patent already expired for the US (June 30, 2003). Canadian > patent expires July 7, 20

RE: [PHP] PHP Interview questions

2003-08-28 Thread Brian S. Drexler
Oh manit is WAY too early for a question like this... -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 7:31 AM To: Jay Blanchard; Curt Zirzow; PHP General Subject: RE: [PHP] PHP Interview questions [snip] However, Curt does bring up a g

RE: [PHP] Urgent help required for using Cron

2003-08-28 Thread Javier Tacon
For example, you want execute a script every day at 09:00 am: $ crontab -e And put this line: 0 9 * * * /path/to/your/php/binary /path/to/your/script.php Crontab only can say if the cron was executed correctly or not, but it doesn't say if your script in php has sent the mail correctly or not.

RE: [PHP] Urgent help required for using Cron

2003-08-28 Thread Jay Blanchard
[snip] I have to send mail to people automatically at specified time . Our environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a program in php to send the mail if some Condition is met. I want to activate this program at specified time using cron facility. So, How can we do tha

RE: [PHP] PHP Interview questions

2003-08-28 Thread Jay Blanchard
[snip] Which road would the other man point to if I asked him the way to Utopia? [/snip] Can you do it programmitically (with pseudo-code)? After all, we need to keep this on-topic :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Interview questions

2003-08-28 Thread Eyles, Richard
[snip] You come to a fork in the road. One fork takes to to Utopia (where you'd like to go) and the other takes you to the Black Forest (where you definitely do not want to go). There are two men standing there. You know that one always tells the truth, the other always liesbut you do not know

RE: [PHP] PHP Interview questions

2003-08-28 Thread Jay Blanchard
[snip] However, Curt does bring up a good pointgiven a real world situation create the decision logic (in code format) that demonstrates you grep the path needed to arrive at a conclusion. As many of us model business processes this is a valid method for determining familiarity with the problem

Re: [PHP] Urgent help required for using Cron

2003-08-28 Thread [EMAIL PROTECTED]
Hi briefly: you need to create a cron job by typing crontab -e at the command line. each line in the crontab has five fields which define the time at which the cron job will run. more info in man cron and man crontab. Cron sends a mail to the owner of the job when a job fails. you can pipe it

RE: [PHP] Bug...

2003-08-28 Thread Jay Blanchard
And you get a 500 error? First off, it is probably not a bug. If the first two reports get generated there may be a problem in the code for the third report. -Original Message- From: Joe Privett [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 6:28 AM To: Jay Blanchard Subject:

[PHP] Urgent help required for using Cron

2003-08-28 Thread Safal Solutions
Hi friends, I have to send mail to people automatically at specified time . Our environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a program in php to send the mail if some Condition is met. I want to activate this program at specified time using cron facility. So, How can we d

RE: [PHP] Bug...

2003-08-28 Thread Jay Blanchard
[snip] I run the script through a browser. The overall script takes about 36 minutes to run. I have changed the php.ini values to allow the script to run for longer than this. The script runs, but I always end up with a 500 error. [/snip] Have you also set your webserver software time accordi

[PHP] Re: Bug...

2003-08-28 Thread WebDevMagazine
Yes I can help you.please send me your OS , php version and what COM you are triyng to use. Regards Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] speed of mail() on two servers

2003-08-28 Thread [EMAIL PROTECTED]
Hello, I recall someone (pardone me i don't save list mails) pointing out that the delay could actually be in generating the message rather than in the sending. You are sending a customized message to each user aren't you? Would you be creating this message from what's in a mysql database or s

[PHP] Re: converting gif to jpeg

2003-08-28 Thread Kae Verens
Merlin wrote: Hello, I am wondering if it is possible and legal to convert gif to jpeg with php. This would be helpful for clients to upload their logo, since most have it as a gif document. Thanx for any comment on that. ImageMagick can read .gif, so you could filter the uploaded file through

[PHP] session_start() : read failed: Value too large for defined datatype (75) ...

2003-08-28 Thread Richard NAGY
Hello, I'm using an apache server 1.3.28 on RedHat GNU/Linux 6.2 with php 4.3.1. Before, I was using apache 1.3.14 with php 4.0.6. Since I have upgraded, I have problems with session_start. I have tried to set register_globals either to on or to off but it has no effect on this problem. Example :

Re: [PHP] Linking to files outside the directory structure...?

2003-08-28 Thread Tristan . Pretty
Getting there. I'm using... $path = "/home/risk/public_html/$bu/$file"; //Where $bu is the folder name where the file is, I've passed that from the previous form, no worries there. I've also passed the file name from the previous form, as I have the file type. header("Content-Disposition: att

Re: [PHP] speed of mail() on two servers

2003-08-28 Thread David T-G
Jabber, et al -- ...and then [EMAIL PROTECTED] said... % % having you tried ezmlm or to directly inject the message into the que? Yes, I've tried qmail-inject. I got down to about 0.41s/msg which is still terrible. Thanks & HAND :-D -- David T-G * There is too much anim

[PHP] converting gif to jpeg

2003-08-28 Thread Merlin
Hello, I am wondering if it is possible and legal to convert gif to jpeg with php. This would be helpful for clients to upload their logo, since most have it as a gif document. Thanx for any comment on that. Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] how to block a user downloading a file?

2003-08-28 Thread [EMAIL PROTECTED]
Hello, Since this is a cab file, i don't think you will be able to modify it. Why don't you put the cabs outside the document root? there was a discussion on doing something similar just this week on this very list. If you insist on having the stuff on the document root you can use .htaccess f

Re: Re[2]: [PHP] parsing domains

2003-08-28 Thread Mike J
> No it should just get rid of the www so your left > with domain.com and now that I see what you are > after it should have been: I don't aways use www.domain.com. Sometimes I use test.domain.com. I have about 14k of these pointing to the same script. Otherwise I would just remove the www -lo

Re[2]: [PHP] parsing domains

2003-08-28 Thread Tom Rogers
Hi, Thursday, August 28, 2003, 7:02:44 PM, you wrote: >> str_replace('/www.','/',$parseddomain); MJ> wont this just make me get a .com when I use my thing to parse the domain? MJ> -- MJ> ___ MJ> Get your free Verizonmail at www.verizonmail.com No i

Re: [PHP] parsing domains

2003-08-28 Thread Mike J
> So why does college suck? Afraid of learning? Feel free to ask me off the list and I'll explain why I started the site. Thanks for the code. Anyway way of making it one line and with the leading "."? J. -- ___ Get your free Verizonmail at www.veriz

Re: [PHP] parsing domains

2003-08-28 Thread John T. Beresford
So why does college suck? Afraid of learning? Anyway, you can solve your problem by simple parsing. An example is below. This will result in "edmondpaper.com" Obviously there are ways of refining this further, but if college sucks, you might not be interested in learning more :-). At 3:30 A

Re: [PHP] parsing domains

2003-08-28 Thread Mike J
> str_replace('/www.','/',$parseddomain); wont this just make me get a .com when I use my thing to parse the domain? -- ___ Get your free Verizonmail at www.verizonmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: parsing domains

2003-08-28 Thread Kae Verens
Collegesucks.Com Mike wrote: Quick question... I parse domains in my scripts like this to get the .domain.com out of www.domain.com. However, if someone visits my site with just domain.com in the url, I get .com back as the parsed domain. How can I make it so I aways get the .domain.com no matter

Re: [PHP] parsing domains

2003-08-28 Thread Tom Rogers
Hi, Thursday, August 28, 2003, 6:30:44 PM, you wrote: CcM> Quick question... CcM> I parse domains in my scripts like this to get the .domain.com out of www.domain.com. However, if someone visits my site with just domain.com in the url, I get .com back as the parsed domain. CcM> How can I make i

Re: [PHP] how to block a user downloading a file?

2003-08-28 Thread Tassos T
fatih olcer wrote: hi, how to block a user downloading a file? eg : when a user enter an address like http://localhost/downloads/testfile.cab i want to forward him to an other address like http://localhost i'm PHP newbie thanks for help. hi, you have to use this code : http://loca

[PHP] Bug...

2003-08-28 Thread Joe Privett
Hi, I am running PHP 4.2.3 on Apache 1.3 and using COM to write 3 reports using Excel. The problem I am having is that something is going wrong with this process, but I can not put my finger on it as no clues are presenting themselves. I run the script through a browser. The overall script takes

[PHP] parsing domains

2003-08-28 Thread CollegeSucks.com Mike
Quick question... I parse domains in my scripts like this to get the .domain.com out of www.domain.com. However, if someone visits my site with just domain.com in the url, I get .com back as the parsed domain. How can I make it so I aways get the .domain.com no matter what they use? Here is an

php-general Digest 28 Aug 2003 08:29:13 -0000 Issue 2263

2003-08-28 Thread php-general-digest-help
php-general Digest 28 Aug 2003 08:29:13 - Issue 2263 Topics (messages 160955 through 161010): IS THIS A BUG? 160955 by: Steve Todd 160958 by: DvDmanDT 160967 by: John W. Holmes 160968 by: Curt Zirzow 160971 by: Chris Shiflett 160972 by: Chris W

[PHP] how to block a user downloading a file?

2003-08-28 Thread fatih olcer
hi, how to block a user downloading a file? eg : when a user enter an address like http://localhost/downloads/testfile.cab i want to forward him to an other address like http://localhost i'm PHP newbie thanks for help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: php equivalent to asp's instr()

2003-08-28 Thread David Cuddeback
Hi Chris, I've always used strstr() for this _exact_ same purpose and it's worked just fine. I find it much more useful as an InStr()-like function than for actually doing anything with the string it returns. You'll want to note that the parameter order is $haystack before $needle. That goes fo

[PHP] Re: SMTP server response: 550 5.7.1 Unable to relay for

2003-08-28 Thread Manuel Lemos
Hello, On 08/27/2003 04:04 PM, ÀLex Camps wrote: i have windows xp with apache,php and argomail but i cant send emails from php why? It seems you need to authenticate with the SMTP server. You can't do that with the mail() function. Try these classes in conjunction. They come with a function nam

Re: [PHP] Re: speed of mail() on two servers

2003-08-28 Thread Manuel Lemos
Hello, On 08/27/2003 11:34 AM, David T-G wrote: % For the delivery, you can always tune qmail to try deliverying messages % to more recipients at the same time tweaking concurrencyremote option. % The default it 20 recipients at the same time but you can increase it to % 120 without patches. H

[PHP] Re: mail mime attachment

2003-08-28 Thread Manuel Lemos
Hello, On 08/27/2003 06:37 AM, Moritz Steiner wrote: Hi, has somebody a working code example of sending a mail with attachment, my code is unfortunately not working... That may be a bug in the mail() function. You may want to try this other class that has work arrounds for some of the mail() func

[PHP] fread(): SSL: fatal protocol error

2003-08-28 Thread Ray Van Dolson
I'm running PHP 4.3.3 compiled with --with-openssl against Red Hat 8.0's latest OpenSSL libraries (patched versions of 0.9.6) and am having some strange issues using fopen(), fread() and friends. Here's my code: function echo_test() { $opts = array( 'ssl' => array( '

Re: [PHP] beginner: cut text after " "

2003-08-28 Thread David Otton
On Wed, 27 Aug 2003 21:30:25 -0700, you wrote: >Want to remove the string after the first whitespace like: > >"here is a text what i have" >to: >"here" I'd explode() the string into an array, and take the 0th element of the array. $s = 'here is a text what i have'; $a = explode (' ', $s); echo (

Re: [PHP] beginner: remove the string after the first whitespace

2003-08-28 Thread murugesan
This code is working for me -murugesan - Original Message - From: "Andras Kende" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 10:03 AM Subject: [PHP] beginner: remove the string after the first whitespace > > Hello All, > > I have a

Re: [PHP] beginner: cut text after " "

2003-08-28 Thread John W. Holmes
Andras Kende wrote: Hello All, I have a very simple question: Want to remove the string after the first whitespace like: "here is a text what i have" to: "here" $word = substr($sentence,0,strpos($sentence,' ')); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ ph

[PHP] beginner: remove the string after the first whitespace

2003-08-28 Thread Andras Kende
Hello All, I have a very simple question: Want to remove the string after the first whitespace like: "here is a text what i have" to: "here" Thanks !! Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] beginner: cut text after " "

2003-08-28 Thread Andras Kende
Hello All, I have a very simple question: Want to remove the string after the first whitespace like: "here is a text what i have" to: "here" Thanks !! Andras Kende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] installation problem

2003-08-28 Thread Jeremiah Breindel
I was recently involved in installing PHP 4.3.2 on a NT 4 server with IIS 4. We followed all of the installation instructions, but whenever we tried to run a test script through a browser to see if PHP was installed correctly, all the page did was load. And load and load and load. It never displa

[PHP] Re: can pdf forms be used to submit data into a db?

2003-08-28 Thread David Robley
In article , [EMAIL PROTECTED] says... > hi guys and gals, aloha from hawaii, > > Not sure if this is the right place to ask, but i just need to know if it > is technically possible to have a pdf form be filled out online and then > once the user hits submit, php takes the data and puts it into a

Re: [PHP] WYSIWYG online editor for Macintosh?

2003-08-28 Thread Joel Rees
> Hi there. Slightly OT, but it's for a PHP project... We normally use a > plug-in WYSIWYG editor so that our clients can manage their content in a > word-like interface. Normally this works fine, but this time when we've > completed the site we've discovered they have an entire department that

Re: [PHP] Re: Animating with GD?

2003-08-28 Thread Ashley M. Kirchner
Ashley M. Kirchner wrote: >That patent already expired for the US (June 30, 2003). Canadian > patent expires July 7, 2004, the counterpart patents in the United > Kingdom, France, Germany and Italy expire June 18, 2004, and the > Japanese counterpart patents expire June 20, 2004. I forgot

Re: [PHP] Re: Animating with GD?

2003-08-28 Thread Ashley M. Kirchner
Edward Rudd wrote: Not anymore due to the Unisys LZW patent issues.. GD has no support for GIF file anymore. Wait until next june.. Then you can create animated GIF files with GD (Unisys' patent expires). That patent already expired for the US (June 30, 2003). Canadian patent expires July

FW: [PHP] dealing with arrays

2003-08-28 Thread Aris Santillan
hi this is the piece of code for($s=0;$s<$num;$s++) { $result = mssql_fetch_array($query); $result[2] = number_format($result[2], 2); ""; echo " "; echo ""; echo

Re: [PHP] Thank You for your help

2003-08-28 Thread Justin French
On Thursday, August 28, 2003, at 04:29 AM, [EMAIL PROTECTED] wrote: Hi guys, gals, first off i just wanted to thank all of you who responded to my question, they were very helpful...but the answers bring me to several new questions: 1) has anyone seen anything like this done with the reader

  1   2   >