Re: [PHP] Self generating variables/arrays

2006-11-25 Thread Larry Garfield
If eval is the answer, you're asking the wrong question.

You haven't given enough information to really say the best way to do what it 
is you're doing.  However, I suspect that explode() and arrays of arrays 
(i.e., $a[1][2]) will do what you need to do much better than messing around 
with eval.

On Sunday 26 November 2006 00:19, jekillen wrote:
> Hello;
> I am writing some code that will format results of a search for display.
> I need to split an array into several different arrays but I won't know
> before hand how many, so, I am looking for a way to dynamically
> generate arrays for this purpose.
> My present direction is to use the following code:
>
> for($i = 0; $i < $c; $i++)
>  { eval('$a_'.$i.' = array();'); }
>
> Where '$c' is the derived number of arrays need to hold the
> pieces of the bigger array. My confusion, though, is; since
> these are created in the scope of the for loop, I don't know
> if I can use them elsewhere in the code. The Global statement
> sends them outside the scope of the function this code is in,
> or does it? And I'm not even sure I am on the right track.
> Perhaps someone can say yay or nay on the spot, if not
> I can go back and do some experimenting.
> Thanks in advance
> Jeff K

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Self generating variables/arrays

2006-11-25 Thread jekillen

Hello;
I am writing some code that will format results of a search for display.
I need to split an array into several different arrays but I won't know
before hand how many, so, I am looking for a way to dynamically
generate arrays for this purpose.
My present direction is to use the following code:

for($i = 0; $i < $c; $i++)
{ eval('$a_'.$i.' = array();'); }

Where '$c' is the derived number of arrays need to hold the
pieces of the bigger array. My confusion, though, is; since
these are created in the scope of the for loop, I don't know
if I can use them elsewhere in the code. The Global statement
sends them outside the scope of the function this code is in,
or does it? And I'm not even sure I am on the right track.
Perhaps someone can say yay or nay on the spot, if not
I can go back and do some experimenting.
Thanks in advance
Jeff K

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD, and GD JPEG

2006-11-25 Thread sublimenal

Hey you need to ./configure it into your php installation via the command
line

Jeff-153 wrote:
> 
> 
>   Hi there.
> I installed a script but it requires GD and GD JPEG
> 
> I downloaded GD, and GD JPEG
> 
> But how the heck do I install it?
> 
> Thanks guys
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/GD%2C-and-GD-JPEG-tf2705080.html#a7543299
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD.. con't

2006-11-25 Thread Richard Lynch
On Sat, November 25, 2006 4:25 pm, Jeff wrote:
> Do I have to compile it with a C program?

You do not need to compile GD on Windows, unless you are a masochist. :-v

Use http://php.net/phpinfo to find out where you php.ini file is, or
should be.

Whatever directory that shows for "php.ini", put your php.ini file there.

Then edit it and find the line about php_gd.dll, or something like
that), and un-comment it by removing the ';' at the beginning.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD.. con't

2006-11-25 Thread Jeff

Do I have to compile it with a C program?

What programs do people suggest I use to make PHP Files?

Is there a simple C program that will create basically whatever you want to 
do, without knowing the language?


I recall studying it in school, vaguely recalling the code...

Thanks,
Jeff


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD, and GD JPEG

2006-11-25 Thread Jeff


 Hi there.
I installed a script but it requires GD and GD JPEG

I downloaded GD, and GD JPEG

But how the heck do I install it?

Thanks guys

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] To install a small program from a web browser

2006-11-25 Thread Dotan Cohen

On 25/11/06, Navid <[EMAIL PROTECTED]> wrote:

Thanks guys. I found out (or he actually revealed to me) what he wants his 
members to download
without their knowledge. I refused to work on his project. I knew it sounded 
fishy.



Good for you. You don't need to be a part of that, and I can only
guess what 'that' is.

Dotan Cohen

http://what-is-what.com/what_is/microsoft.html
http://lyricslist.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] To install a small program from a web browser

2006-11-25 Thread Navid
Thanks guys. I found out (or he actually revealed to me) what he wants his 
members to download
without their knowledge. I refused to work on his project. I knew it sounded 
fishy.

--- Navid <[EMAIL PROTECTED]> wrote:

> See that's the thing. It's a membership I don't think I would be inclined to 
> do it at all. But
> then again he will reveal to me soon what he acsite. But he still wants to 
> install programs
> without knowledge to the users of his membership site (and no it's not a 
> pornography site...I
> don't do pornography sites). If it was something public tually wants users to 
> install. Would I
> be
> using Filesystem functions to achieve this or CURL or what? Any 
> recommendations on what I should
> read into? Thanks
> 
> > 
> > On Thursday 23 November 2006 11:01, Navid wrote:
> > > Hello everyone,
> > >
> > > I have a client that wants me to build a membership-based website soon. He
> > > has small programs for his members to install. He wants to post a link for
> > > them so that when they click on it the program installs on their machine
> > > automatically. I tried to discourage him from doing that, but he insists 
> > > on
> > > it. His request sounds kind of fishy to me but then again it's for his
> > > members. Is this possible to do? Thanks in advance to all who can help.
> 
> --- Larry Garfield <[EMAIL PROTECTED]> wrote:
> 
> > The program logic is quite simple.  Provide a link to a .exe file.  User 
> > clicks on it, and the browser will ask if they want to save it or run it.  
> > If 
> > the click run, then it runs and installs whatever malicious code he is 
> > trying 
> > to get them to install. :-)  They can also save it and run it later (I 
> > generally recommend this anyway).
> > 
> > If he wants to get around the browser's "hey, are you sure about this?" 
> > messages, then you know it's not above board and should refuse to do so on 
> > moral grounds.  
> > 
> > If the programs themselves are legit, and it's for an internal app of some 
> > kind or a close community or whatnot, then it should be OK, and the 
> > added "are you sure" step is appropriate.  Heck, SourceForge does that; 
> > here's a redirect/link to a .exe file (or .tar.gz, or .zip, or whatever), 
> > have fun.  From there on in, it's the user's problem.  It's only if the 
> > site 
> > tries to get around the browser confirmation or masquerade the program as 
> > something other than a downloadable and installable program that there's a 
> > problem.
> > 
> > Depending on what these programs are a java applet or a Firefox plugin may 
> > be 
> > more appropriate to the task, but that's a separate issue.
> > 
> > -- 
> > Larry Garfield  AIM: LOLG42
> > [EMAIL PROTECTED]   ICQ: 6817012
> > 
> > "If nature has made any one thing less susceptible than all others of 
> > exclusive property, it is the action of the thinking power called an idea, 
> > which an individual may exclusively possess as long as he keeps it to 
> > himself; but the moment it is divulged, it forces itself into the 
> > possession 
> > of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
> > Jefferson
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] To install a small program from a web browser

2006-11-25 Thread Rory Browne

But he still wants to install programs

without knowledge to the users of his membership site (and no it's not a 
pornography site...I
don't do pornography sites).


Let me paraphrase that.

He still wants to circumvent the users security, and install programs
without their knowledge.

Incase I haven't been quite clear so far, let me spell it out.

He wants to commit a crime. In assisting him to do so, you will be an
ascessory to his crime.

Circumventing the security of his members ( unless his members == his
employees, and  he owns the computers his employees use ) is a serious
offence, and one which you should have no part in.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php