[PHP] Re: Is it possible to create a global namespace alias?

2010-10-05 Thread Matt Palermo
I'm assuming there is no way to make a global alias. Can anyone confirm/deny this? Matt Palermo wrote in message news:5e7b8989448b45dbbeeb6fb89b3f3...@rachet... Is it possible to create a global namespace alias in PHP or does the alias have to be defined in EVERY file that I use? Here

Re: [PHP] Re: Is it possible to create a global namespace alias?

2010-10-05 Thread David Harkness
On Tue, Oct 5, 2010 at 8:41 AM, Matt Palermo palermom...@gmail.com wrote: I'm assuming there is no way to make a global alias. Can anyone confirm/deny this? I reread the documentation on namespaces, and from what I can tell this is no way to do it. Each file maintains its own active

[PHP] Re: Is it possible to get the name of the top most calling script?

2007-06-10 Thread Al
If the scripts are using a common file, [e.g., config, functions, etc.] you could define two constants. define(ORG_FILE, __FILE__); define(ORG_LINE, __LINE__); barophobia wrote: Hello, I know that __FILE__ and __LINE__ report on the file and line that they occur in. What I want is to be able

[PHP] Re: Is this possible with php

2006-03-06 Thread Al
Mace Eliason wrote: Hi, I really don't think this is possible from what I know of php, but I thought I would as the experts. Is it possible to have php create directories and move files on a local machine. I have

Re: [PHP] Re: Is this possible with php

2006-03-06 Thread Austin Denyer
(Re-sending as I accidentally sent my original post directly to Al) Al wrote: Mace Eliason wrote: I really don't think this is possible from what I know of php, but I thought I would as the experts. Is it possible to have php create directories and move files on a local machine. I have

[PHP] Re: Is this possible with php

2006-03-06 Thread João Cândido de Souza Neto
PHP don't do this. The user must select a file to upload and then the PHP can work with this. PHP has no access to local files, think with me, how can PHP discover which machine in internet he has to access to get files. Mace Eliason wrote:

Re: [PHP] Re: Is this possible with php

2006-03-06 Thread Robert Cummings
PHP can do this, but you'd need it set up on each of the client computers and periodically run to check the temp folder and perform the upload. That's what any other application that can do similar does. Cheers, Rob. On Mon, 2006-03-06 at 15:30, João Cândido de Souza Neto wrote: PHP don't do

Re: [PHP] Re: Is this possible with php

2006-03-06 Thread João Cândido de Souza Neto
Ok, but you're telling that the client will be doing upload to server. Not the server doing a dounload from client. I was understood as a wrong way. I'm sorry. Robert Cummings wrote: PHP can do this, but you'd need it set up on each of the client computers and periodically run to check the

Re: [PHP] Re: Is this possible with php

2006-03-06 Thread tg-php
Yeah, you can't do the local computer file moving and all that with the same script as your server side component, but if you'd rather not learn C# or another language like that, but you're comfortable with PHP, I'd highly recommend checking out Winbinder (http://www.winbinder.com). Assuming

[PHP] Re: Is it possible to use header() to POST form data?

2005-12-15 Thread Gustavo Narea
Hello. pw wrote: Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? I guess you cannot use the header() function in that way. Take a look at the header() documentation http://php.net/header. What do you need to

[PHP] Re: PHP CLI - possible for mass mailing?

2005-09-28 Thread Manuel Lemos
Hello, on 09/27/2005 02:44 AM Denis Gerasimov said the following: I was said that using Perl script is more suitable for such task since PHP scripts have problems with sending large amount of mail. Is that true or not? Any success/failure stories? It is a myth that Perl is better (or worse)

[PHP] Re: Is it possible to get the whole address (including http:// ) ?

2005-04-21 Thread Jason Barnett
Labunski wrote: Hello, I know for example how to get http vars or basename, but this time I need to get the whole address, including http:// . Is it possible? Thanks in advance, Lab. http://php.net/reserved.variables ?php var_dump($_SERVER['REQUEST_URI']); ? -- Teach a man to fish...

[PHP] Re: Is it Possible?

2005-02-04 Thread Jason Barnett
Sagar C Nannapaneni wrote: I'm calling a php script with img tag for ex: img src=http://localhost/test.php?img=asfd; and the test.php is as follows... test.php ? some server side validations readfile(abcd.gif); ? --- Theres no

[PHP] Re: Is this possible ?

2004-01-18 Thread DvDmanDT
Do this: function MyFunc($num=NULL) { if(isset($_POST[var])){ $sql = mysql_query(select * from table_name where field=\$_POST[var]\ ); $num = mysql_num_rows($sql); // I want to use this result outside this function. $returnsomething =blah blah; } return $returnsomething; } $numrows=0;

[PHP] Re: php5 and possible oop features/questions

2003-10-06 Thread Tit \Black\ Petric
Not really what i was getting at dude, i dont see how defining a class variable will let me define a method outside of a given class, or to dynamically extend/implement other classes inside a general one? try again ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: php5 and possible oop features/questions

2003-10-06 Thread Eugene Lee
On Mon, Oct 06, 2003 at 12:36:49PM +0200, Tit Black Petric wrote: : : Not really what i was getting at dude, i dont see how defining a class : variable will let me define a method outside of a given class, or to : dynamically extend/implement other classes inside a general one? Why the desire to

[PHP] Re: php5 and possible oop features/questions

2003-10-05 Thread Devish
if you want to use variable's in a function you need to give the function the paramaters..if you do not with to use it like that.. declare the vars in the beginning of the class class classname { var $1; var $2; } greetz -- -- It's Not God

[PHP] Re: [PHP-DB] Possible to store arrays in mySQL without explode()/implode()

2003-06-07 Thread Matt
- Original Message - From: Jakob Mund [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 9:04 AM Subject: [PHP-DB] Possible to store arrays in mySQL without explode()/implode() is it possible to store an array in mySQL without using implode() / explode(), like this:

[PHP] Re: is this possible ...

2002-08-10 Thread Julio Nobrega
Yes, it's possible. You concatenate the form variables with the html, transform it to a file and attach to the email. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br M.E. Suliman [EMAIL PROTECTED] escreveu na mensagem

[PHP] Re: Is it possible...

2002-07-27 Thread lallous
You can't download a script when it is being parsed. If it is not going to be parsed you can download it as text. as for php.net , they have got a button on their site called: showsource click it and have the source of any page you want, Apollo [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Is it possible...

2002-07-27 Thread Lars Olsson
No. Since PHP is executed on the server, the only thing that is sent to the browser is pure HTML (and client-sided scripts like JavaScript). This means you cannot just get the source code of a PHP page by just browsing it. /lasso ([EMAIL PROTECTED]) Apollo wrote: Is it possible download

[PHP] Re: Generate every possible combination

2002-05-16 Thread Martin Wickman
Evan Nemerson wrote: I need to generate every possible combination of the the values in an array. For example, if... $array = Array(A, B, C); I really have no idea where to begin. The best lead I can think of is that there are going to be n! elements in the output array, where n is the

[PHP] Re: Generate every possible combination

2002-05-15 Thread Austin Marshall
Evan Nemerson wrote: I need to generate every possible combination of the the values in an array. For example, if... $array = Array(A, B, C); I want to be able to do something like print_r(magic_function($array)); which would output Array ( [0] = ABC [1] = ACB

[PHP] Re: Generate every possible combination

2002-05-15 Thread Austin Marshall
Austin Marshall wrote: Evan Nemerson wrote: I need to generate every possible combination of the the values in an array. For example, if... $array = Array(A, B, C); I want to be able to do something like print_r(magic_function($array)); which would output Array ( [0] = ABC

[PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Jochem
Why don't you install Mysql on your local machine and do your testing ? Jochem R [EMAIL PROTECTED] schreef in bericht 000501c1fa4c$8fca8fc0$0a6da8c0@lgwezec83s94bn">news:000501c1fa4c$8fca8fc0$0a6da8c0@lgwezec83s94bn... Hey there guys, I have a slight problem which i could not solve via Java

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Justin French
Yup, with local host you're not going to be able to access it from a remote machine (although it's worth asking your host). Just set up a test machine locally which is as close as possible to what your host runs (ie Unix, WinNT, whatever), with simular versions of PHP, Apache, MySQL, etc etc...

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
Justin French wrote: Yup, with local host you're not going to be able to access it from a remote machine (although it's worth asking your host). Actually you can connect to a mySQL database from a remote server. You just need to make sure that permissions are set up in the mysql table to

RE: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Mark Charette
Or read the man page on mysql_pconnect/mysql_connect ? -Original Message- From: Jochem [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 9:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Is This Possible? (Database - PHP) Why don't you install Mysql on your local machine and do your

Re: [PHP] Re: Is This Possible? (Database - PHP)

2002-05-13 Thread Robert Cummings
Robert Cummings wrote: Justin French wrote: Yup, with local host you're not going to be able to access it from a remote machine (although it's worth asking your host). Actually you can connect to a mySQL database from a remote server. You just need to make sure that permissions are

[PHP] Re: Is this possible?

2002-02-14 Thread J Smith
It's possible, but it might be easier to set up virtual hosts or something. If you're using apache, you can set this up in httpd.conf, using something like NameVirtualHost * VirtualHost * ServerName www.domain1.com Redirect permenent / http://www.domain.com/domain1 /VirtualHost

[PHP] Re: Is this possible?

2002-02-06 Thread Dave
I believe you can do this using an INNER JOIN command. I have not done this in sometime, and I will give you a sample from my sql book. Inner joins extract rows that are common to both tables, based on values in the common column. For example, you could write a query that would extract a list

Re: [PHP] Re: Is this possible?

2002-02-06 Thread bvr
Yes, it's entirely possible to abuse the PHP mailinglist by sending MySQL tutorials and useless complaints like this one. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php