[PHP] User validation and Session management

2002-03-25 Thread javier

Hi, I'm new to the newsgroup.
I would like to know how can I do with php to keep user track
and let him or not access to specified pages.

I thought about validating (u/p) first and then giving a session 
variable. And then on each script I would check sessionID with
a permissions table.

Is there any tutorial that talk about above?

Thanks.


Bye!


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




[PHP] Re: Another Session Question

2002-03-25 Thread javier

Have you got the url?


John Fishworld wrote:
> I've seen various tutorials on sessions where they specify the session id
> instead of just using one
> generated by php !
> 
> Why ?
> 
> 



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




[PHP] templates with php

2002-03-26 Thread javier

Has anybody uses other engine besides Smart or php-templates (@freebsd 
ports)

I trying to get into the subject but I don't know which to start with.


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




Re: [PHP] sorting data from a field

2002-03-26 Thread javier

To do that is it necesary to loop the $result variable and assign each
array($name => $value) ?


> Alternately, you can load all of the unsorted results into an associative
> array, and use PHP's native sorting functions (such as ksort() ) to sort the
> results.
> 
> 
> Darren Gamble
> Planner, Regional Services
> Shaw Cablesystems GP
> 630 - 3rd Avenue SW
> Calgary, Alberta, Canada
> T2P 4L4
> (403) 781-4948


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




[PHP] require or include ?

2002-03-28 Thread javier

When should I use require or include?
I read that include copies the content from the file to the script that
is calling it.
And require is like #include in C.


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




Re: [PHP] require or include ?

2002-03-28 Thread Javier


If I include for ex. common.php in a script and this script also calls
common.php what should I use require or include?


On Thu, Mar 28, 2002 at 04:44:04PM -0600, Rick Emery wrote:
> require() is used when you want the file included regardless of whether any
> information is used from it.  include() may be conditional.
> 
> -Original Message-----
> From: javier [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] require or include ?
> 
> 
> When should I use require or include?
> I read that include copies the content from the file to the script that
> is calling it.
> And require is like #include in C.
> 
> 
> -- 
> 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




[PHP] Re: Help with e-mail...

2002-04-03 Thread javier

Have you got access to your host machine?
You can send messages to your local user a then see if they reach 
destination.

Chuck "Pup" Payne wrote:
> I have just install a program called Web Calendar. It suppose to be able to
> send reminders via e-mail but I am not sure if PHP is set up to send e-mail
> or what is happening. I have turned on debugging and it is showing that
> there are remembers but it not sending anything.
> 
> Is there a simple test I can to to test php is talking to sendmail?
> 
> 
> Thanks,
> 
> 
>  -
>  | Chuck Payne   |
>  | Magi Design and Support   |
>  | www.magidesign.com|
>  | [EMAIL PROTECTED]|
>  -
> 
> 



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




[PHP] php+myslq+IDE

2002-04-03 Thread javier

Is there any free app. for php coding? I tried komodo but I can't get it 
to work in debug mode. Also tried Zend's Studio but it expires. :(
Is there any free choice?


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




[PHP] Re: php+java on freebsd

2002-04-03 Thread javier

Ivan Voras wrote:
> Can anyone tell me how to get java support for php working? I compiled
> apache with -pthread option, I properly configured php.ini
> (phpinfo() agrees), but I cannot overcome this:
> 
> (the message appears as a PHP error when trying to create any java objects)
> 
> Fatal error: Unable to load Java Library
> /usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so, error:
> /usr/local/jdk1.1.8/lib/i386/green_threads/libjava.so: Undefined symbol
> "fmod" in /usr/home/ivoras/public_html/jver.php on line 4
Maybe you're trying to create some objects that are not supported
in that version of java.
There's a native version of java for FreeBSD. You can get it from the 
ports /usr/ports/java


> 
> apparently, libjava.so links to a symbol 'fmod', which is in libm.so, but
> libjava.so is
> not linked to use libm.so. (?) (all jdk1.1.8 binaries are actually using
> compat3x libraries)
> 
> (I have no preference for a JDK, I just need the stuff working.)
> 
> --
> --
> Ashes to ashes, DOS to DOS
> ivoras @ fer.hr
> 
> 
> 



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




Re: [PHP] php+myslq+IDE

2002-04-03 Thread javier

Please send it to me. Since php coder became maguma I think they shut 
down the former site.

Eric Coleman wrote:
> Try PHP Coder (not Maguma's Version, becuase PHP Coder kicks it's ass)
> 
> I can email you the installed, as there site seems to be down now..
> 
> Eric
> 
> - Original Message - 
> From: "javier" <[EMAIL PROTECTED]>
> To: <>
> Sent: Wednesday, April 03, 2002 4:40 PM
> Subject: [PHP] php+myslq+IDE
> 
> 
> 
>>Is there any free app. for php coding? I tried komodo but I can't get it 
>>to work in debug mode. Also tried Zend's Studio but it expires. :(
>>Is there any free choice?
>>
>>
>>-- 
>>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




[PHP] references a functions

2002-04-04 Thread javier

I trying to code a kind of DB wrapper.
So when is dbQuery turn I run into trouble.
I read in php manual that refrences are not like C pointers. They just 
point to the same content.

I want to return the result from a mysql_query
but if I do something like this:

 function bdConsultar($strCon) {
 $idRes = @mysql_query($strCon);
 return $idRes;
 }

Should be called like this?

$myID = &bdConsultar("Select * from users");


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




Re: [PHP] references a functions

2002-04-04 Thread javier

I thought that apart from returning an id the result set was created 
within the scope of the function so when the function finishes the 
resulted was deleted;

But since is just an id an the result is stored somewhere else I 
wouldn't need any reference.

btw where can I read about references besides php manual?

Rasmus Lerdorf wrote:
> Note that you rarely change a result set, so there is very little point in
> returning a reference to it given PHP's shallow copy implementation.  And
> in your case you are just returning a resource id which you definitely
> aren't going to change.
> 
> But if for some reason you feel it is important (please explain why) then
> this is the syntax:
> 
> function & bdConsultar($strCon) {
>   $idRes = @mysql_query($strCon);
>   return $idRes;
> }
> 
> $myID = & bdConsultar("Select * from users");
> 
> But again, I don't think you are quite understanding references.
> 
> -Rasmus


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




Re: [PHP] references a functions

2002-04-04 Thread javier

Opossed to my thoughts worked fine.

Rick Emery wrote:
> What happened when you tried?
> 
> -Original Message-
> From: javier [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 1:01 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] references a functions
> 
> 
> I trying to code a kind of DB wrapper.
> So when is dbQuery turn I run into trouble.
> I read in php manual that refrences are not like C pointers. They just 
> point to the same content.
> 
> I want to return the result from a mysql_query
> but if I do something like this:
> 
>  function bdConsultar($strCon) {
>  $idRes = @mysql_query($strCon);
>  return $idRes;
>  }
> 
> Should be called like this?
> 
> $myID = &bdConsultar("Select * from users");
> 
> 



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




[PHP] mod_php4

2002-04-07 Thread javier

Will be any changes to mod_php4 since the release of apache 2.0.35?
I wanted to compile it (freebsd ports) with a apache 2.0.33 and I
had problems while compiling.


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




[PHP] templates and listbox

2002-04-10 Thread Javier

Does templates (eg php-templates or Smarty) fill automatically listboxes?
Or do I need to code it?


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




[PHP] templates and listbox

2002-04-10 Thread Javier

Does templates (eg php-templates or Smarty) fill automatically listboxes?
Or do I need to code it?


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




Re: [PHP] templates and listbox

2002-04-11 Thread Javier

But does it use templates? I want to use templates not functions that
generates html.

Analysis & Solutions wrote:
> On Wed, Apr 10, 2002 at 06:32:18PM -0300, Javier wrote:
> 
>>Does templates (eg php-templates or Smarty) fill automatically listboxes?
>>Or do I need to code it?
> 
> 
> If your list boxes are coming from data in a MySQL or ODBC database,
> check out my SQL Solution: http://www.sqlsolution.info/.  One of the
> things it does is generate form elements (ie text, checkbox, radio and
> option lists) automatically from your query results.
> 
> --Dan
> 



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




[PHP] Wich Database abstration layer?

2002-04-23 Thread Javier

Can anybody recomend me a "nice" DB abstraction layer that is not 
included in phplib?

Thanks!


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




[PHP] Which Database abstration layer?

2002-04-23 Thread Javier

Can anybody recomend me a "nice" DB abstraction layer that is not
included in phplib?

Thanks!


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




[PHP] Re: Session Registering

2002-04-25 Thread Javier

I think you have to populate the data in your pages not to wait
the browser to do the job. Cause sometimes work and some time not.

Craig Donnelly wrote:
> Im using session in my form, there are 6 pages to the form, It all works
> fine, until You work your way back through the form, to ammend the filled in
> details.
> 
> e.g - If I go to page 1, and fill out my name, and post to the next page,
> heres the code Im using:
> 
> 
> 
> PHP:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Its registered on the top of page2 with the following code:
> 
> 
> PHP:
> 
> session_start();
> $_SESSION['firstname']=$_POST['firstname'];
> 
> 
> 
> 
> 
> That works fine, I have a link on all my pages that links back to the
> previous page e.g Go Back
> 
> If I go back to the first page, from the second page the fields are
> populated fine, but If i continue onto page3.php then go back page1.php is
> no longer populated!!
> 
> Any Ideas why this is happening?? and If so a remedy, Is it a code issue or
> a conf Issue??
> 
> Thanks
> C
> 
> 



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




[PHP] Re: getting session data

2002-04-26 Thread Javier

To access session variables you need to use
session_start() first.

Deval Parikh wrote:
> hi,
> IF I am using this code in one script...
> 
> a.php
> -
>  
> $userip = $REMOTE_ADDR;
> session_name("sessiontest");
> session_register("userip");
> 
> ?>
> 
> so how can i use above session data in another
> script...like this way..???
> 
> b.php
> -
>  session_start();
> echo $userip;
> ?>
> 
> I can not got the result..please correct me.
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/



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




[PHP] session_register() twice?

2002-04-26 Thread Javier

What happens if I call session_start() twice?
Does it creates another session?

Cause something odd is going on with this simple script.

  if(!SesionActiva()){ -It checkes wether there an active session
  SesionCrear(); - It creates the session
  }

  /*SesionActivar();*/

  echo "" . session_id()."";

  MostrarPaginaPrincipal(); --Showing the main page.


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




Re: [PHP] session_register() twice?

2002-04-26 Thread Javier

I've got the index.php page that checks if there's a session created.
If it is not, it creates a new one.
I print the session_id;
Then I go through a link to a login.php page there I print the 
session_id and its a different one.

What could be the problem?


Sascha Schumann wrote:
> On Fri, 26 Apr 2002, Javier wrote:
> 
> 
>>What happens if I call session_start() twice?
>>Does it creates another session?
> 
> 
> It does nothing.
> 
> if (PS(session_status) != php_session_none)
> return;
> 
> - Sascha Experience IRCG
>   http://schumann.cx/http://schumann.cx/ircg
> 



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




[PHP] avoiding creation of multiple sessions

2002-04-26 Thread Javier

How can I do to avoid creating a session when reload/refresh button
is clicked?


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




[PHP] avoiding creation of multiple sessions

2002-04-26 Thread Javier

How can I do to avoid creating a session when reload/refresh button
is clicked?

every time reload button is clicked a new file in /tmp is created.


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




[PHP] sessions and reload/refresh

2002-04-27 Thread Javier

Is it possible that everytime un click the refresh button a
new session is created?
Here's my index.php
Every time refresh this page a new session is created.




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




[PHP] Re: lookin for a Menuing System...

2002-04-28 Thread Javier

There are many Javascript menu editors.
I think that's what you need.

Dan wrote:
> I could do this myself but I don't want to waist time writing something that
> I could have just asked for..
> 
> what I need is a menuing system..
> 
> When link is clicked the sub-topics appear under the topic you just clicked
> on..
> 
> e.g. if you where to click on Contact.
> 
> Contact
> --becomes:
> 
> Contact
>Enquires
>Account / Billing
>Media Enquiries
> 
> Much like this JavaScript one... except I need it in PHP...
> http://www.dynamicdrive.com/dynamicindex1/navigate1.htm
> 
> 



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




[PHP] Re: Question for you guys on best tools for a job

2002-04-29 Thread Javier

Why don't you use javascript to refresh the page from time to time.

Michael Champagne wrote:
> I'm not even sure this is possible without doing a client side java applet of
> some sort.
> 
> We are considering porting a standard client/server application to the web
> which updates itself dynamically in real time based on values in a database.
> 
> For instance, a field on the screen will change in real time between
> 'Pending', 'Working', 'Cancelled', etc. etc. based on a flag in the database.
> What would be the best tools for the job for an application of this sort?
> I've used PHP extensively and don't really see how it could be used in this
> case.  Any ideas?
> 
> Thanks in advance for any responses.
> 



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




[PHP] Re: Emails sent out twice

2002-04-29 Thread Javier

What php are you using?

Jean-Louis Letortorec wrote:
> Hello all:
> 
> I have a script that looks like:
> 
> 
> ...
> $name="Project #1";
> ...
> $title="NEW PROJECT: ".$name;
> $a=mail("[EMAIL PROTECTED], [EMAIL PROTECTED]",$title,$body, "From:[EMAIL PROTECTED]");
> ...
> 
> 
> 
> When I execute this code (there is no loop anywhere), ALL the recipients
> receive 2 emails:
> - the first one with the subject "NEW PROJECT:"
> - the second with the subject "NEW PROJECT: Project #1"
> 
> I cannot figure out why the first one is sent, and why with a partial
> subject.
> 
> Any idea?
> 
> 
> Thanks.
> 
> Jean-Louis



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




[PHP] Re: PHP is making errors for no apparents reason..?

2002-04-29 Thread Javier

How have you declared name?


>   $zquery = "SELECT name from users WHERE handle like '$row[handle]';
>   $zres = mysql_query($zquery);
>   $zrow = mysql_fetch_array($zres);
>   $user = $zrow[name];  
>   $query = "INSERT into husers values (\'$row[handle]\' , \'$user\')";
>   mysql_query($query);


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




Re: [PHP] Re: Very Large MySQL Query String

2002-05-06 Thread Javier

Hi, I think if you encode the file with base64 and store it in the
database the size of the document will be more than 1MB sure.

David Bouw wrote:
> Dear Kirk (and Julio)
> 
> Thanks for the response..
> 
> I don't want to use a link to the images because backing up my data and
> porting it to another machine is much easier. (Replicating is also very
> easy.) When storing the file separately this gets more complex, especially
> when you want to get this data from another machine...
> 
> The stored data isn't retrieved very often, so speed isn't really an issue.
> (Till now speed really never was an isse. When adding the right indexes
> MySql + PHP does incredible things!!.)
> 
> I do though use the suggested 'linking' method for an website where the
> images are needed on the website.. In the current situation though I store
> PDF images of invoices which are basically only needed to look something up
> if there is a problem...
> 
> Kirk, I already tried changing the properties of the column in which I
> store the images.. (Currently it is an longtext, but before this I always
> used an Longblob...)
> 
> I can't remember the exact sizes of MySQL, but I believe that an Mediumblob
> can handle 16 Megabyte..  (I know have little more than a 1 MB..)
> 
> I will try some things tomorrow, but I can't find out what the problem is..
> (Column size, PHP-Mysql string length limitation or maybe something I am
> overlooking..)
> 
> I can though echo the query to screen and see that the uploaded file is
> encoded to a very nice (large) text-string..
> 
> Any other suggestions are greatly appreciated.
> 
> With kind regards,
> David Bouw
> 
> 
> 
> 
> 
>>If I use the link to the file, i.e.
>>
>>   file//C:\filedir\file.pdf or .txt or whatever
>>
>>how do I  insert/update/delete the file since MySQL is holding only the
>>link?
>>
>>BTW David, what are the properties of the field you are inserting to?
>>Could that be the problem?
>>
>>-Kirk
>>
>>"Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message
>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>
>>>  Instead of uploading to Mysql, why don't you store the file at a
>>
>>directory
>>
>>>and on Mysql only the path to it?
>>>
>>>  Retrieving files from the hard drive is much faster than doing the
>>>  same
>>
>>on
>>
>>>Mysql, and also access to manipulation (insert, update, delete,
>>>etc...)
>>>
>>>--
>>>
>>>Julio Nobrega.
>>>
>>>Um dia eu chego lá:
>>>http://sourceforge.net/projects/toca
>>>
>>>Ajudei? Salvei? Que tal um presentinho?
>>>http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
>>>
>>>
>>>"David Bouw" <[EMAIL PROTECTED]> wrote in message
>>>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>>
I can't seem to figure out the following.

I use the http upload functions a lot, works great!!..
For some months now I have been using a small PHP program
which I use to upload PDF files of scanned documents and
insert them into a Mysql table..

Normally these files are small (<250 kb), but I now have a
PDF of 1 MB... When uploading files I run the
function: chunk_split(base64_encode($binaryfile));
to encode it, this to transform the binary file to text.. (Works
>>>
>>great!!!)
>>
When the query was called to insert the data, nothing happens, also
no error from mysql...  Only think I can think of is that the mysql
query string is to long.. ??  (The data when encoded is about 1.3 MB
of text)..

This is the source code..

if (!($userfile_size == 0))
   {$fd = fopen ($userfile, "r");
$contents = fread ($fd, filesize ($userfile));
fclose ($fd);
unlink ($userfile);
echo "Eerste RAW: ".strlen($contents);
$encodes_data = chunk_split(base64_encode($contents));
$userfile_name = str_replace(" ", "", "$userfile_name");
echo strlen($encodes_data)." - Displays text size ";
//Works
>>>
>>>right!
>>>
mysql ($databasename_boekhoud, "insert mubo_boekhoud_images
(data,
originalname, groep, type)
values '$encodes_data', '$userfile_name', '$groep',
'$userfile_type')");
>>>
>>>//
>>>
mysql_error(); //No error given..?
  }

Any suggestions are very much appreciated...

With kind regards,
David Bouw


>>>
>>>
>>
>>
>>--
>>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




[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Javier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What version of php and apache do you use?

Andy wrote:
| leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich
| dann:
|
| Syntax error on line 953 of /usr/local/apache/conf/httpd.conf:
| Cannot load /usr/local/apache/libexec/libphp4.so into server:
| /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No
| such file or directory
|
| die datei libphp4.so befindet sich auch definitiv nicht auf der maschine.
| Hab ich da was bei der compillierung falsch gemacht?
|
| Gruss Andy
|
|
| "Sven Herrmann" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
| [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
|
|>>There is no phpmodule in there, so I cant activate it. I did   include
|>
|>some
|>
|>>lines from my old config:
|>>
|>>AddType application/x-httpd-php .php4 .php3 .php
|>>AddType application/x-httpd-php-source .phps
|>>
|>
|>if you're using Apache 1.x you need to add:
|>LoadModule php4_modulelibexec/libphp4.so
|>
|>or if you're using Apache 2.x
|>LoadModule php4_modulemodules/libphp4.so
|>
|>
|>Sven
|>
|>
|
|
|


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzcTU4ACgkQNcG5oyVditsjtwCdH5LLJ+mPJz27xiuZXDrESbeR
gf4An3f37WvVJMcXuNPQmUIYyoHDbh/1
=MLof
-END PGP SIGNATURE-


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




[PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Javier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What about MD5?

Jimmy Lantz wrote:
| Hi,
| started playing with Mcrypt and just wanted to ask which encryption
| method makes the stronger encryption?
| (I can supply the necesary keylength).
| Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :)
|
| So what do I need it for? I'm going to use it encrypting files, sizes
| varies between some 100 k's and 4-5 mb's.
| / Jim
|
| Paranoia + A system w/o users = Safe system :)


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
=c0Rt
-END PGP SIGNATURE-


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




Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Javier

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I missed the part that talked about encrypting files. I thought it was
just for a password.

Sorry.


Thalis A. Kalfigopoulos wrote:
| On Tue, 21 May 2002, Ray Hunter wrote:
|
|
|>MD5 is not that secure compared to blowfish or twofish or the other
|>types of encryption available with mcrypt...
|>
|>Thanks,
|>
|>Ray Hunter
|
|
| How does MD5 relate to encrypting the file? It's just used as a hash
function.
|
| --thalis
|
|
|>
|>
|>-----Original Message-
|>From: Javier [mailto:[EMAIL PROTECTED]]
|>Sent: Tuesday, May 21, 2002 2:43 PM
|>To: [EMAIL PROTECTED]
|>Subject: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?
|>
|>
|>-BEGIN PGP SIGNED MESSAGE-
|>Hash: SHA1
|>
|>What about MD5?
|>
|>Jimmy Lantz wrote:
|>| Hi,
|>| started playing with Mcrypt and just wanted to ask which encryption
|>| method makes the stronger encryption? (I can supply the necesary
|>| keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no
|>| fish at all :)
|>|
|>| So what do I need it for? I'm going to use it encrypting files, sizes
|>| varies between some 100 k's and 4-5 mb's. / Jim
|>|
|>| Paranoia + A system w/o users = Safe system :)
|>
|>
|>-BEGIN PGP SIGNATURE-
|>Version: GnuPG v1.0.6 (MingW32)
|>Comment: For info see http://www.gnupg.org
|>
|>iEYEARECAAYFAjzqsWUACgkQNcG5oyVditt1ZgCdHrRHjk/Pvb8xfJFZyXBa2/SR
|>rGUAn3+5uV6YdDDWGmtz4ZxEYlYJV/57
|>=c0Rt
|>-END PGP SIGNATURE-
|>
|>
|>--
|>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
|>
|
|


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (MingW32)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzqtBcACgkQNcG5oyVdittlCACfc0q91tND2IRnQMmbQv68KZMu
WbcAoJ3F0qiB8txUzKTHmG/l0z7A7vTP
=Gjh3
-END PGP SIGNATURE-


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




[PHP] what's wrong with IE?

2002-03-22 Thread Alexander Javier


why is the $HTTP_POST_VARS array empty if i use IE? when i used NN, everything's ok. 
please help!



-
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®


[PHP] How can I execute a Command - rsh

2002-04-15 Thread Javier Casado

I have installed a php server into a w2000 machine, and i must create a 
user into a service of a sun machine, using a comand like

$> executable  

where param1, param2,... are forms' entries (W2000 IIS form).

Can I do a rsh (or a telnet) sesion with php?  How...

tnkx




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




[PHP] rsh or telnet, possible?

2002-04-15 Thread Javier Casado

I must execute a command in a sun machine, but the web server is IIS 
(into a W2000 machine).

The parameters are the form's fields.

Is it possible (better rsh, telnet is valid)?

tankx


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




[PHP] newbie question: templates with frames

2002-04-15 Thread Alexander Javier


Hello to all. Please help me in this problem of mine.  I have an html template with a 
frame. I'm using phplib's templating functions to replace values in the templates. How 
do i also replace values both in the main template (frleft.htm) and in the html page 
contained in the frame? My code looks like the following:

set_var("test", "nyahahaha");

$tpl->set_file(array(base => "frleft.htm"));

$tpl->parse(DefaultPage, base);
$tpl->finish(DefaultPage);
$tpl->p(DefaultPage);
?>








-
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax


[PHP] php 4.3 and php_pgsql.dll

2002-06-18 Thread Alexander Javier

hello people, i seem to have a little problem here.  I
hope someone could help.

i have a machine running apache on linux and another
one with apache on winxp.

i've downloaded and installed the php-4.3-alpha
version s for linux and windows. mysteriously, the
php_pgsql.dll is not included in the windows zip file.
 so, i used the one that came with php-4.2 for
windows.

i used php as a sapi module in apache. apache displays
an error message that says it fails to load the
php_pgsql.dll extension.

could it be of the version conflict? or what? please
help!!!




=




__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




[PHP] PHP + MySQL problem (strange behavior)

2001-12-05 Thread Javier Muniz

Hello,

I'm having trouble determining what's going wrong with a MySQL query that
I'm doing from PHP.  Now before you go blaming MySQL read on :)

I have a table with the following columns:
id (int)
name (varchar 20)
starttime (int)
duration (int)

now, i have a row that has a starttime of 60, when i attempt to do the
following update with PHP, it sets it to 0:

"UPDATE mytable SET starttime=starttime-30 WHERE name = 'myname'"

but when I run it from the MySQL command line, copy/pasted from the code, it
sets the value of starttime to 30 as expected.

Anyone have any clue why this is?


Javier Muniz
Chief Technology Officer
Granicus, LTD.
Tel: (415) 522-5216
Fax: (415) 522-5215


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP + MySQL problem (strange behavior)

2001-12-07 Thread Javier Muniz

Unfortunately, mysql returns no error string.  MySQL doesn't appear to think
it's
an error, as it does apply changes to the row I'm trying to change, it
simple isn't
applying the CORRECT change to said row :)

-Javier

-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:59 PM
To: Javier Muniz; '[EMAIL PROTECTED]'
Subject: Re: [PHP] PHP + MySQL problem (strange behavior)


On Thu,  6 Dec 2001 08:32, Javier Muniz wrote:
> Hello,
>
> I'm having trouble determining what's going wrong with a MySQL query
> that I'm doing from PHP.  Now before you go blaming MySQL read on :)
>
> I have a table with the following columns:
> id (int)
> name (varchar 20)
> starttime (int)
> duration (int)
>
> now, i have a row that has a starttime of 60, when i attempt to do the
> following update with PHP, it sets it to 0:
>
> "UPDATE mytable SET starttime=starttime-30 WHERE name = 'myname'"
>
> but when I run it from the MySQL command line, copy/pasted from the
> code, it sets the value of starttime to 30 as expected.
>
> Anyone have any clue why this is?

mysql_error() is a good debugging tool; it will return an error string 
that may be useful.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   A waist is a terrible thing to mind.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Issues with fopen & long file names?

2001-12-20 Thread Javier Muniz

I'm trying to open a file using php 4.1.0 under windows 2k server.  
The script uses fopen and the filename is long (approx 40 characters +
extension).
I'm getting the error:

Warning: fopen("c:\_file_345176fo90301b70374d2f30e5a11d5b.ext ", "r") -
Invalid argument in file.php on line 127

can fopen not handle long file names, or am I doing something wrong?  The
script uses \\ not \, so that's not the problem (even though only one \) is
displayed above.

if fopen can't display long file names, is there a function that will return
the short (i.e. _file_~1.ext) format?

any help is appreciated.

Javier Muniz
Granicus, LTD. (www.granicus.com)
Tel: (415) 522-5216
Fax: (415) 522-5215


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] XSLT problems....

2001-02-06 Thread Javier Muniz

In my experience this is caused by an error in your .xsl... not exactly
the most verbose error so I don't know what's actually happening here.

-jm



-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 5:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] XSLT problems


test.xml


  1
  :PHatCat
  http://freshmeat.net/projects/phatcat/
  A PHP CueCat Decoder.
  Oct 9th 2000
  Web/Applications
  GPL


  2
  About Me
  http://freshmeat.net/projects/aboutme/
  A system for recording/sharing preferences
  Apr 18th 2000
  Web/Tools
  GPL



test.xsl

http://www.w3.org/1999/XSL/Transform">


  XSLT Freshmeat Demo
  
  
  
  
  


  

  
  
  
  
  

  



test.php


Fatal error: msgtype: error in
/home/httpd/vhosts/mediawaveonline/test/xslt.php on line 4

I am *very* new to both xml and xsl but this interests me greatly,
please
help if you could.

--



Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Passing files to a browser

2001-02-08 Thread Javier Muniz

Actually, if you read the manual entry for fpassthru, it states that the
filehandle will be closed by fpassthru upon reading.
So you're trying to close your filehandle twice... get rid of the
fclose($fp) at the end and you should be fine.

-jm

-Original Message-
From: Christian Reiniger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 11:19 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Passing files to a browser


On Thursday 08 February 2001 18:43, Rob Root wrote:

>  $fp = fopen("test.txt", "r");
> header("content-type: text/plain");
> fpassthru($fp);
> fclose($fp);
> ?>
>
> And got:
> Hello, World
> 
> Warning:  1 is not a valid File-Handle resource in
> /home/robr/public_html/php/getpdf.php on line 5

That most likely means the fopen () failed.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.

- /. posting discussing the likelihood that an AC post that claimed to
be
posted by John Carmack during his honeymoon (and having the login info
at
home) was actually from him.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php site, parse error

2001-02-15 Thread Javier Muniz

Looks like the PHP site is down, parse error on site.inc... just an FYI :)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php site, parse error

2001-02-15 Thread Javier Muniz

Definately a bit frightening that a virtually static site has an include
that is over 300 lines long :)  Maybe just well documented?

-jm

-Original Message-
From: Martin A. Marques [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php site, parse error


El Jue 15 Feb 2001 17:41, escribiste:
> Looks like the PHP site is down, parse error on site.inc... just an FYI :)

Ohhh, I'd love to get me hands on some of the code these great guys do. :-)

Saludos... :-)

-- 
System Administration: It's a dirty job, 
but someone told I had to do it.
-
Martín Marqués  email:  [EMAIL PROTECTED]
Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Javier Muniz

Nope, with php the second argument of mysql_query is indeed the connection
identifier.

What happens when you run the query via the mysql client?

-jm

-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 9:32 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] MySQL COUNT Won't Work


Shouldn't that be

$result = mysql_query($sql,$db)
or die("Couldn't execute query.");  

So you're querying the database, and not the connection?


HTH
Jon


-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: 16 February 2001 17:27
To: PHP
Subject: [PHP] MySQL COUNT Won't Work


I'm totally stuck on this code. I get the error 
"Couldn't execute query." so I know where it's
failing but can't figure out what's wrong. I have
a database with 'title' as one of the fields. Based
on code in PHP Fast and Easy.
Jeff Oien



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Javier Muniz

Are you using 3.23.33?  If so try removing the space between the COUNT and
the open paren.  It looks like there may be a bug in the latest release
(seeing this problem on the mysql list for MAX, probably exists for COUNT as
well).

-jm

-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 9:37 AM
To: PHP
Subject: RE: [PHP] MySQL COUNT Won't Work


That's not it. Get:
Warning: Supplied argument is not a valid MySQL-Link resource in 
count.php3 on line 14
Jeff Oien

> Shouldn't that be
> 
> $result = mysql_query($sql,$db)
>   or die("Couldn't execute query.");  
> 
> So you're querying the database, and not the connection?
> 
> 
> HTH
> Jon
> 
> 
> -Original Message-
> From: Jeff Oien [mailto:[EMAIL PROTECTED]]
> Sent: 16 February 2001 17:27
> To: PHP
> Subject: [PHP] MySQL COUNT Won't Work
> 
> 
> I'm totally stuck on this code. I get the error 
> "Couldn't execute query." so I know where it's
> failing but can't figure out what's wrong. I have
> a database with 'title' as one of the fields. Based
> on code in PHP Fast and Easy.
> Jeff Oien
> 
>  $db_name = "Music";
> $table_name = "music";
> 
> $connection = mysql_connect("localhost", "", "") 
>   or die("Couldn't connect.");
> 
> $db = mysql_select_db($db_name, $connection)
>   or die("Couldn't select database.");
> 
> $sql = "SELECT COUNT (title) FROM music";
> 
> $result = mysql_query($sql,$connection)
>   or die("Couldn't execute query.");  //<   
> $count = mysql_result($result,0,"count(title)");
> 
> echo "$count";
> ?>
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Javier Muniz

You should use fieldnames in your selects... I'd imagine count(*) would be
slower just as select * is slower.

-jm

-Original Message-
From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 9:46 AM
To: PHP
Subject: RE: [PHP] MySQL COUNT Won't Work


I do lots and lots of count()'s in PHP and have never had any problems... 
of course, I do it a bit differently than you did..

// I always have these in a top level include
$UserName = "noneYa";
$Password = "yeahRight";
$myDatabase = "uhhuh";

$dbConn = mysql_connect( "localhost", $UserName, $Password ) or die( 
"Cannot Connect To Database Server" );
mysql_select_db( $myDatabase ) or die( "Unable To Connect To Database: " . 
$myDatabase );
// up to here

// then I always make sure the file is included at the top of my page, and 
then call this query like this...
$qQuery = "SELECT Count(*) as nTotal FROM someDB";
$rQuery = mysql_query( $qQuery, $dbConn );
$qrQuery = mysql_fetch_array( $rQuery );
print( $qrQuery["nTotal"] );



At 11:37 AM 2/16/01 -0600, Jeff Oien wrote:
>That's not it. Get:
>Warning: Supplied argument is not a valid MySQL-Link resource in
>count.php3 on line 14
>Jeff Oien
>
> > Shouldn't that be
> >
> > $result = mysql_query($sql,$db)
> >   or die("Couldn't execute query.");
> >
> > So you're querying the database, and not the connection?
> >
> >
> > HTH
> > Jon
> >
> >
> > -Original Message-
> > From: Jeff Oien [mailto:[EMAIL PROTECTED]]
> > Sent: 16 February 2001 17:27
> > To: PHP
> > Subject: [PHP] MySQL COUNT Won't Work
> >
> >
> > I'm totally stuck on this code. I get the error
> > "Couldn't execute query." so I know where it's
> > failing but can't figure out what's wrong. I have
> > a database with 'title' as one of the fields. Based
> > on code in PHP Fast and Easy.
> > Jeff Oien
> >
> >  > $db_name = "Music";
> > $table_name = "music";
> >
> > $connection = mysql_connect("localhost", "", "")
> >   or die("Couldn't connect.");
> >
> > $db = mysql_select_db($db_name, $connection)
> >   or die("Couldn't select database.");
> >
> > $sql = "SELECT COUNT (title) FROM music";
> >
> > $result = mysql_query($sql,$connection)
> >   or die("Couldn't execute query.");  //< >
> > $count = mysql_result($result,0,"count(title)");
> >
> > echo "$count";
> > ?>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] using tar to untar a file into a certain dir... In php of course

2001-02-16 Thread Javier Muniz

Don't calls to system() live within their own shell and environment?  If so
you may need to:

system("cd /destination/dir && tar -xpf /some/path/to/tarfile.tar");

this will also insure that if the cd fails for some reason, tar will not
execute.

-jm

-Original Message-
From: DanO [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:34 PM
To: Brandon Orther; PHP User Group
Subject: RE: [PHP] using tar to untar a file into a certain dir... In
php of course



good point.  i should think before i post.

here is another go:



i can't test this as i am on a windows box at the moment, but i think you
can get the gist of it.

change the working directory of php and then extract from another file.

DanO



-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:16 PM
To: PHP User Group
Subject: FW: [PHP] using tar to untar a file into a certain dir... In
php of course


From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:07 PM
To: DanO
Subject: RE: [PHP] using tar to untar a file into a certain dir... In
php of course


That just untars it into the current dir the php script is in.

-Original Message-
From: DanO [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:58 PM
To: PHP User Group
Subject: RE: [PHP] using tar to untar a file into a certain dir... In
php of course



have you tried:

mv mytar.tar /my/path/to/dir/; tar -xpf /my/path/to/dir/mytar.tar

this should work, but there may be a more direct unix-y way to do it.

DanO


-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:49 PM
To: PHP User Group
Subject: [PHP] using tar to untar a file into a certain dir... In php of
course


Hello,

I am making a php file that untars files.  What I can't seem to figure out
is how to untar a file into another folder.  I have tried:

tar -xpf file.tar /new/folder/*

  & and &

tar -xpf file.tar /new/folder/


does anyone know how to do this?

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Finding the? in $REQUEST_URI?page=blah

2001-02-16 Thread Javier Muniz

An exceptionally easy way to do this would be to pass both $PHP_SELF and
$REQUEST_URI.

Alternatively, you can use explode():



">
Username: 
etc

-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Finding the? in $REQUEST_URI?page=blah


I really wouldn't ask this if I wasn't completely exausted, but the last
thing I feel like doing just now is reading up on this when someone can
probably answer it in a matter of seconds.

OK, I've an error handling page.  Basically, I want to split (that might
even be one of the functions I'll have to use) this sort of url:

error.php?/pages/login.php?username=name

into:

/pages/login.php

I'm using :

header("location: error.php?page=$REQUEST_URI");

When echoing the request_uri back on the error page, it omits the error.php?
bit, so I get:

login.php?username=name

The reason I want to do this is so that I can use a re-login form that will
submit to the page the user has badly logged into, so if they logged in to
main.php, the request_uri would be something like:

/pages/main.php?username=name

Which I'd want to rebuild on the error page, into a form, like:

">
Username: 
etc

Can anyone help?

Thankees :)

James.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] HTTP Request - First line

2001-02-17 Thread Javier Gil

I want to obtain the first line of the header of the HTTP Request
(the request line). Is there a function to obtain this line.
Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] a good hosting experience

2001-02-21 Thread Javier Muniz

We're running 3.23.32, soon upgrading to .33 due to some security problems
with .32 (either tonight or tomorrow), and running the latest release of PHP
4.  Naturally, since I work for Granicus, I'm biased... but I think we're
one of the better PHP hosts out there as far as services go.  Our primary
focus is colocation, but our hosting offering is PHP/MySQL centric (No
postgres, very light perl support, etc), and the configuration of our
machines shows it (we've actually in the process of writing a system that
will allow you to analyze the performance if your scripts while they're
running on your website).

In any case, I'm trying to stay on this list as a contributer rather than a
spammer so please excuse the shameless plug for my employer, but if you're
interested and/or can't find anyone else, drop us a line at
[EMAIL PROTECTED] and we'll give you all the gory details :)

-jm

-Original Message-
From: Mark Maggelet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 11:52 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] a good hosting experience


On Wed, 21 Feb 2001 14:55:25 -0800, ..s.c.o.t.t.. ([EMAIL PROTECTED]) 
wrote:
>liquidweb.com has some nice looking deals.
>
>last time i checked, they supported 
>MySQL/PHP/Perl/lots of other stuff

well, most hosts do, but not many are using 3.23.30 or higher. I'm 
looking for a host that somebody knows for sure is running a current 
version of mysql.

thanks,
- Mark


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




php-general@lists.php.net

2001-02-22 Thread Javier Muniz

URLs must be encoded if they contain special characters (and should be
encoded always).  See urlencode().

-jm

-Original Message-
From: Tom Harris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing values containing a ? and a &


I want to assign a value using the url however the value contains both a ?
and an & so PHP (or the browser) seems to get confused.

Here's an example:

http://www.mysite.com/index.php?id=23&url=http://www.anothersite.com/file.ph
p?qid=234&forum=4

Everything after url= should be the value of $url but this is not the case.
Is there a way to solve this?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] security

2001-02-22 Thread Javier Muniz

Encode them, or set filesystem permissions in such a way (suggest using
groups) to allow apache to read files but not other users.

For instance, if your users are all members of the users group, and apache
runs as nobody, then set your files to be owned by the user with the nobody
group (chown user:nobody ) then set it to be readable by group, but
not others (chmod 640 ).

-jm

-Original Message-
From: Gustavo Vieira Goncalves Coelho Rios [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 9:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] security


How may i prevent my users from reading others php scripts?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] security

2001-02-22 Thread Javier Muniz

Those are the only two methods I'm aware of... Zend does offer it's Encoder
Unlimited on a subscription basis though that would allow you to encode all
of your users scripts (they actually list that as problem for which the
encoder is a good solution).

-jm

-Original Message-
From: Gustavo Vieira Goncalves Coelho Rios [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:55 PM
To: Javier Muniz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] security


Javier Muniz wrote:
> 
> Encode them, or set filesystem permissions in such a way (suggest using
> groups) to allow apache to read files but not other users.
> 
> For instance, if your users are all members of the users group, and apache
> runs as nobody, then set your files to be owned by the user with the
nobody
> group (chown user:nobody ) then set it to be readable by group, but
> not others (chmod 640 ).
> 
> -jm
> 
> -Original Message-
> From: Gustavo Vieira Goncalves Coelho Rios [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 21, 2001 9:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] security
> 

Thanks, but i am considering such an approach! Isn't there any other way
out?
May i consider using php in a shell server environment a stupid thing to
do ? Since security is very critical in such environments!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Javier Muniz

Try: 

echo $array[$i][course_num] . ' ' . $array[$i][course_title];

-jm

-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Arrays -- How do I insert a pair of data into an array


I am attempting to insert a set of data (actually a pair) into an array, 
without much success.  I would like to insert the data set ("course 
number", "course title") into a numerically indexed array so that when I 
want to output the array I can reference it like so:

echo("$array[$i]["course_num"] $array[$i]["course_title"]");


// where $i is just the index value that increments

I tried building the array like so (where $tuple[] is a valid result 
set from pg_fetch_row():

$array[] = array("course_num" => $tuple[crn],
"course_title" => $tuple[course_name]);

But all I gets outputted is:

Array["course_num"] Array["course_title"]

Any help with this would be greatly appreciated.  Thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Session Errors, do you recognize?

2001-01-10 Thread Javier Muniz

what's on line 2 of your index.php?  You appear to be sending output
before starting your session.  Have you tried including wpdbcon.php
before you do anything in your index.php?

-jm

-Original Message-
From: JB [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 6:48 AM
To: Brandon Orther; [EMAIL PROTECTED]
Subject: Re: [PHP] Session Errors, do you recognize?


actually.. still give me the same error after i fixed that. new code as
follows along with the error:

if (!session_is_registered('cart')) {
$cart = array();
session_register('cart');
}
else {
session_start();
}

?>


Warning: Cannot send session cookie - headers already sent by (output
started at C:\Program Files\Apache
Group\Apache\htdocs/store/index.php:2) in
../../wpdbcon.php on line 14

Warning: Cannot send session cache limiter - headers already sent
(output
started at C:\Program Files\Apache
Group\Apache\htdocs/store/index.php:2) in
../../wpdbcon.php on line 14


any other ideas?   =)

thanks



> You are missing a parentheses:
>
> if (!session_is_registered('cart') {
>
> correct:
> if (!session_is_registered('cart')) {
>   ^
> -Original Message-
> From: JB [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 6:05 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Session Errors, do you recognize?
>
>
> Hey, I keep getting the same error messages when trying to fire up
sessions
> in this code i wrote. i've written some test scripts to test sessions
on
my
> machine, and they are working, so the problem must lie within my code.
Here'
> what I'm getting, anyone know how to resolve this?
>
> Warning: Cannot send session cookie - headers already sent by (output
> started at C:\Program Files\Apache
> Group\Apache\htdocs/store/index.php:2) in ../../wpdbcon.php on line 14
>
> Warning: Cannot send session cache limiter - headers already sent
(output
> started at C:\Program Files\Apache
> Group\Apache\htdocs/store/index.php:2) in ../../wpdbcon.php on line 14
>
>
> wpdbcon.php --
>
>  $db = "mydb";
> $user = "mybot";
> $pw = "mypw";
> $mysql_access = mysql_connect("localhost", $user, $pw);
> mysql_select_db($db, $mysql_access);
>
> session_start();
>
> if (!session_is_registered('cart') {
> $cart = array();
> session_register('cart');
> }
>
> ?>
>
> i also tried doing
>
> if (!session_is_registered('cart') {
> $cart = array();
> session_register('cart');
> }
> else {
> session_start();
> }
>
> i thought it was sending conflicting data when it was trying to
initialize,
> didn't work either.
>
> thanks in advance.
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] session vars with recursive form

2001-01-12 Thread Javier Muniz

This is probably due to the fact that form values don't override session
values... this is a feature, not a bug.  (imagine if i could do:
http://www.yourdomain.com/highsecurity.php?user=admin and magically
become admin... very broken security)

-jm

-Original Message-
From: bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 11:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] session vars with recursive form


How can I correctly register session vars on a recursive form?

If I call a page repeatedly using:



The earlier variables keep getting lost.

How can I register the session variables correctly?  Each subsequent
page should set its own variable while remembering all those previously
set.

Right now the top of the page says:

---
session_start();

$thevals=array(alpha,beta,gamma,delta,epsilon);
while (list($key, $val) = each($thevals)) {
  if (!session_is_registered($val) ) {
session_register("$val");
  }
}
--

thanks,

bill


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] < Levels of Access >

2001-01-17 Thread Javier Muniz

Just a side note:  A very nice way to do this is using bitwise operators
to store all your access information into one int  This is handy for
saving space in databases, and bitwise operations should be incredibly
fast compared to string comparisons.

Cheers,
Javier

-Original Message-
From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 2:43 PM
To: Abe
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] < Levels of Access >


On Wed, 17 Jan 2001, Abe wrote:

> Hey Guys,
>
> I wonder if anyone can shed light...
> I have a system that internal users access -
>
> I have separated access levels into 1, 2, 3 etc.  So if you have
access 1
> you can view certain things - If you are 2 then you can view more or
other
> things.
>
> However the problem arises when someone in access level 1 wants to
access a
> level 2 function.  I then manually specify that:
>
> if (access = 2 or user=joe) {
> Allow the functions ...
> }
>
> This can get messy - as individuals will be specified all over the
place on
> a large system to override levels of access.
>
> Is there a sensible standard that is used to have levels of access but
> special people can access certain higher level functions.?
>
> I hope that makes sense.
>
> Thanks
>

Instead of having individual users specified at certain points, why
don't you
say that a user has to be a member of a certain group? That way in order
to
open an access lock for a user, all you have to do is add them to the
group.
You could even make the security levels groups themselves.

-- 
Ignacio Vazquez-Abrams  <[EMAIL PROTECTED]>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Session problem?

2001-01-19 Thread Javier Muniz

I am using the following function to add a serialized object to a
session:

function add_toCart($id,$array) {
session_register("OBJECT");
$c = new Configurator;
$c->readConfig($id);
$OBJECT = serialize($c);
header("Location: Cart.php");
echo "Redirecting..."
}

Unfortunately, the session file (in /tmp) is always empty after this
function executes.  I'm using PHP 4.0.4 with --enable-trans-sid.

Any help is greatly appreciated.

Cheers,

-jm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Session problem? (Correction)

2001-01-19 Thread Javier Muniz

The session file is not empty :)  the OBJECT portion of the session file
is empty. i.e. cat'ing /tmp/sess_whatever yields:

!OBJECT|

-jm

-Original Message-
From: Javier Muniz [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Session problem?


I am using the following function to add a serialized object to a
session:

function add_toCart($id,$array) {
session_register("OBJECT");
$c = new Configurator;
$c->readConfig($id);
$OBJECT = serialize($c);
header("Location: Cart.php");
echo "Redirecting..."
}

Unfortunately, the session file (in /tmp) is always empty after this
function executes.  I'm using PHP 4.0.4 with --enable-trans-sid.

Any help is greatly appreciated.

Cheers,

-jm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Help. creating excel file form mysql

2001-03-15 Thread Javier Onate

Hello,

I need to create excel files from data stored in mysql.
I'm using php in a linux box, so as far as I know I cant
use COM functions.

Is there a way to do what I intend

Tank you

-- 
Javier Onate Mendia
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Javier Muniz

should probably be:

function philtime($time) {
$hours = ($time - ($time % 3600)) / 3600;
$min = (int) (($time % 3600) / 60);
return ("$hours:$min");
}

This way you don't risk rounding up on your first cast to int and being off
by an hour... rounding is ok, however, for minutes since that is your most
granular interval.

-jm

-Original Message-
From: Phillip Bow [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Script to convert # of seconds to HH:mm


function philtime($time){
$hours = (int) ($time / 3600); 
$min = (int) (($time % 3600) / 60 );
return ("$hours:$min");
}
Should be 3600 since:
60sec = 1min 
60min = 1hour
60 * 60 = 3600sec/hour
--
phill

> How about something like this:
> 
> $secs = number of seconds;
> $hours = intval($secs/360);
> $minutes = intval(($secs-$hours*360)/60)
> $seconds = $secs - $hours*360 - $minutes * 60;
> 
> Hope this helps.
> 
> Michael Ridinger


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Giving my script the power!

2001-03-29 Thread Javier Muniz

I do a similar thing on my machines, only instead of having a java daemon
that runs as root I chose to create a database that the php script can
insert user and other information into, then a perl script that is called
from cron that fetches from the database and does the necessary user adds.

This is a nice system for adding users to many systems at once for a network
that is not running NIS, as all of the linux machines on my network can
fetch data from the database and add the users as necessary.

I don't, however, trust the security of this implementation, and only use it
on our internal network that sits behind a firewall.   I'd recommend that
you take the same precaution.

-jm

-Original Message-
From: Sebastien Roy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 1:28 PM
To: Brandon Orther
Cc: PHP User Group
Subject: Re: [PHP] Giving my script the power!


Hi,

I'm doing the exact same thing as you and I got the exact same problem.
After
getting almost crazy with trying everything possible to run a script as
root,
someone told me that I'm limited to the server permission. So I decided to
simply create a java deamon wich run as root. This deamon wait on a port for
commands (encrypted) to be executed.via fsockopen(...).  Surprisly, it was
easy and it work prety well...

Hope it helps

Sebastien Roy
[EMAIL PROTECTED]


Brandon Orther wrote:

> Hello,
>
> I am trying to make a script that can add users and multiple things to a
> linux box.  I have all teh programming issues solved except I need to make
> this script root, or make it able to run anyhting it want to.  Is there a
> way to make my php script liek a super user?
>
> INFO: Redhat 7 Apache1.?
>
> Thanks
> Brandon Orther
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] help on mail and proxy

2001-06-18 Thread Javier Onate
Title: help on mail and proxy


  I developed a small system in php on a linux (redhat 7.0)
box with mysql and php 4.0, which is meant, among other things, to
send e-mails to certain people whenever a new record is added to one
of the tables.
When the computer was connected to internet throw my office line,
without any package filtering or firewall, all worked fine. But when I
connected the same machine to the network of my client, which is
behind a proxy server, the mails just stopped to arrive to their
destinations. Of course I changed the ip number of the machine to the
one the system admin. gave to me. All the mails go to a machine inside
the network of the company where the delivery is made throw Lotus
Notes. I can reach that machine from mine by means of ping or
traceroute, but when the mails arrive they got stopped (timeout) by a
process (or machine?) named dgcorlnmtaX.server.com.
(where 1<=X<=3)
I tried to send them to internet throw the proxy and make them
arrive as before, but the proxy don't let them out. Only the port 80
is allowed, and I don't know how to make sendmail pass throw that port
in that machine. The reconfiguration of the rules of the proxy are
difficult due to the administrative rules of the client.

Perhaps you have any suggestions to make this mails arrive.
I will really appreciate your help.

Than you in advance

-- 

Javier Onate Mendia
[EMAIL PROTECTED]



[PHP] Problem with timeouts

2001-06-22 Thread Javier Muniz

I've written a PHP script that's used internally by an application backend.
It transfers files via FTP from one server to another.  This process often
takes in excess of 1hr.  My problem is that for some reason, even though
i've set the max_execution_time in the php.ini is set to 10800 (3 hours) the
script gets "CGI Application Timeout: The specified CGI application exceeded
the allowed time for processing.  The server has deleted the process." after
5 minutes of execution.

I'm running PHP 4.04pl1 under IIS 4.0.

Any help is greatly appreciated.
Thanks,
-Javier

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] formating numbers

2001-08-24 Thread Javier Bellido

Hi people!

I'm trying to migrate my site from perl to  PHP4. The question is how I get numbers 
look like this: 0001, 0002, etc


Thanks for your time & help




Javier Bellido

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Newbie on Sessions/Pages Management

2002-02-23 Thread Alexander P. Javier


I'm very new to PHP, as a matter of fact, I never had any experience anything about 
web-enabled applications development. I've been more into local Visual Basic and MS 
SQL Serve devt.  If there's any kind soul out there, please HLP

The question is: why do the values of my session variables disappear when i traverse 
through different php scripts? duhh  =(


Sincerely yours,
Alex



-
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games


[PHP] sessions

2002-02-23 Thread Alexander P. Javier

ok, i got i working now, thanx to all who helped especially michael, chris & edward

 alyx 



-
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games


[PHP] MySQL joins

2002-02-25 Thread Alexander P. Javier

why do i get errors on MySQL queries that have joins?

 alyx 



-
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games


[PHP] MySQL joins

2002-02-25 Thread Alexander P. Javier


the query is:

select appointment.*, date_format(appointment.startdatetime,'%m-%d-%Y') as yrappt from 
appointment left join guest on appointment.appointment_id = guest.appointment_id


i think it's syntactically correct, it returns the correct rows when run with the 
mysql.exe program but gets an error when run thru my php code in a browser.

by the way, i use apache-php-mysql for windows. and i program locally.  please 
H =(


 alyx 



-
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games


[PHP] I can't see the PHP variables....

2001-12-10 Thread Javier Morquecho Morquecho

Hi..

I'm making changes to an PHP application (Postnuke).

The problem is than I can not see the PHP variables, like
echo "host=".$HTTP_HOST;

But just in a specific modulethe question is, is there a PHP
instriction to enable an disable those variables???..

Thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Does PHP works with Netscape Web Server or IPlanet???

2001-01-22 Thread "Aguilar Peña, Javier"

Does PHP works with Netscape Web Server or IPlanet???
If it does.HOW

[EMAIL PROTECTED]
Thanks



RV: [PHP] Does PHP works with Netscape Web Server or IPlanet???

2001-01-22 Thread "Aguilar Peña, Javier"

It's me again. I've tried with IIS and PWS and everithing ok...but not
with Netscaspe which is the one I need.

Thanks again.

> -Mensaje original-
> De:   Aguilar Peña, Javier 
> Enviado el:   lunes 22 de enero de 2001 13:31
> Para: '[EMAIL PROTECTED]'
> Asunto:   [PHP] Does PHP works with Netscape Web Server or IPlanet???
> 
> Does PHP works with Netscape Web Server or IPlanet???
> If it does.HOW
> 
> [EMAIL PROTECTED]
> Thanks



RV: RV: [PHP] Does PHP works with Netscape Web Server or IPlanet???

2001-01-23 Thread "Aguilar Peña, Javier"

I setup IPlanet Web Server Enterprise Edition 4.1 on a PC. I've got an
example of PHP which is the one I'm using to test it. When it should execute
the php file called from the main page it seems to download it instead of
executing it. It all worked right with IIS and PWS. The PHP extension es
linked to PHP.EXE, but.sorry...could you tell me how to setup Shell CGI
directories...?? I'm quite new in all this. When I fill the CGI field on
iPlanet I get a Doctor Watson error, so what am I doing wrong? Why does it
work on PWS and fails with iPlanet??

Thank you all for your help.

> -Mensaje original-
> De:   Steve Edberg [SMTP:[EMAIL PROTECTED]]
> Enviado el:   lunes 22 de enero de 2001 18:19
> Para: Aguilar Peña, Javier; '[EMAIL PROTECTED]'
> Asunto:   Re: RV: [PHP] Does PHP works with Netscape Web Server or
> IPlanet???
> 
> At 1:36 PM +0100 1/22/01, Aguilar Peña, Javier wrote:
> >It's me again. I've tried with IIS and PWS and everithing ok...but
> not
> >with Netscaspe which is the one I need.
> 
> 
> I assume you're talking about Netscape on Windows? If so, yes it runs 
> fine, but only as a CGI - I used to have that setup until I moved to 
> an Apache/PHP module configuration. Off the top of my head, I had
> 
>   (1) set up Windows file associations to associate .php 
> extension with PHP.exe
>   (2) created Shell CGI directories for all my php scripts
> 
> There was a better way that someone had come up with that avoided 
> step (1) by editing the mimetypes.conf (?) file and associating the 
> php extension with the php executable within Netscape, but I can't 
> remember that method offhand - it's been a while.
> 
> Also, if you're looking for Netscape on Unix information, there used 
> to be a website that explained how to compile PHP to run as a NSAPI 
> module; unfortunately, that URL disappeared. I could dig up that info 
> for you anyway, if you're interested.
> 
> Lastly, I believe that PHP4 comes with experimental NSAPI support; 
> check www.php.net or www.php4win.de
> 
>   - steve
> 
> 
> >Thanks again.
> >
> >>  -Mensaje original-
> >>  De:   Aguilar Peña, Javier
> >>  Enviado el:   lunes 22 de enero de 2001 13:31
> >>  Para: '[EMAIL PROTECTED]'
> >>  Asunto:   [PHP] Does PHP works with Netscape Web Server or IPlanet???
> >>
> >>  Does PHP works with Netscape Web Server or IPlanet???
> >>  If it does.HOW
> >>
> >>  [EMAIL PROTECTED]
> >>  Thanks
> 
> -- 
> +--- "They've got a cherry pie there, that'll kill ya" --+
> | Steve Edberg   University of California, Davis |
> | [EMAIL PROTECTED]   Computer Consultant |
> | http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
> +-- FBI Special Agent Dale Cooper ---+



[PHP] Does anybody know how to setup PHP on a iPlanet Web Server (or Netscape Web Server)???? HEELPPP

2001-01-23 Thread "Aguilar Peña, Javier"

Hi everybody, it's me again.
Does anybody know how to setup PHP on a iPlanet Web Server (or Netscape Web
Server) HEELPPP

I post a few messages from yesterday. Could you help me???





[PHP] a PHP fucntion like window.confirm("Click OK to continue. Click Cancel to stop.");

2001-04-03 Thread Javier Morquecho Morquecho


Is there an PHP equivalent to the javascript:
 $x= window.confirm("Click OK to continue. Click Cancel to stop.");

  if ($x)

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Learning PHP

2002-04-20 Thread Victor Javier Martinez Lopez

I'm started with PHP and I'm interested in find any place
with some docs and example code. Can anyone help me?

Thanks in advance.




[PHP] Thanks

2002-04-21 Thread Victor Javier Martinez Lopez

Thanks everyone for your help.