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
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
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
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-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 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:
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
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
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
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
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)
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...
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
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;
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:
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
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
- 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:
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
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
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
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
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
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
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
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...
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
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
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
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
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
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
32 matches
Mail list logo