[PHP] Create Online Test Program

2003-01-03 Thread Devin Atencio

Dear PHP Users,

I am in the process of trying to create an Online Program that will
give questions and possible answers then score the test. I was wondering
if anyone has done this type of thing already and might be able to give
me some pointers on what the best method of doing this might be?

Devin


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




[PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Devin Atencio


I am trying to get PHP to send mail through my FreeBSD machine
and my machine is running Sendmail 8.12.4, and I have the path
to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3
but it fails to send mail. My /var/log/maillog shows the attempt
but nothing happens:

Oct  8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody,
size=331, class=0, nrcpts=0,
msgid=[EMAIL PROTECTED],
relay=nobody@localhost

Any ideas about what could be going on here? 

Devin Atencio





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




Re: [PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Devin Atencio

Yes I do have -t -i at the end of the path but it still doesn't
work. Any other ideas?

On Tue, 2002-10-08 at 11:17, Adam Voigt wrote:
 In your sendmail path, do you have -t -i appended to the path?
 Like: /usr/bin/sendmail -t -i
 
 Adam Voigt
 [EMAIL PROTECTED]
 
 On Tue, 2002-10-08 at 13:15, Devin Atencio wrote:
  
  I am trying to get PHP to send mail through my FreeBSD machine
  and my machine is running Sendmail 8.12.4, and I have the path
  to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3
  but it fails to send mail. My /var/log/maillog shows the attempt
  but nothing happens:
  
  Oct  8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody,
  size=331, class=0, nrcpts=0,
  msgid=[EMAIL PROTECTED],
  relay=nobody@localhost
  
  Any ideas about what could be going on here? 
  
  Devin Atencio
  
  
  
  
  
  -- 
  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] XSLT - Sablotron

2002-09-05 Thread Devin Atencio

 
I am trying to find out a way I can pass a variable that is basically
an XML document to xslt_process and make it all work. My script
works if I have:
 
 
$xp = xslt_create();
$result = xslt_process($xp, 'test.xml', 'test.xsl');
 
however, if I try to do:
 
 
$xp = xslt_create();
$result = xslt_process($xp, $xmldata, 'test.xsl');
 
it won't work. $xmldata contains an XML document, but for some reason
it errors out on me, any ideas on how to make this work? I basically
have
the XML data generated dynamically from a database and then I want to 
pass it to the XSLT to process the page.
 
Any help would greatly be appreciated.
 



[PHP] Floating point exception (8)

2002-06-26 Thread Devin Atencio


Dear PHP,

I am not sure if this is the mailinglist I need to address but I recently
installed Apache 1.3.26 (Unix) PHP/4.2.1 mod_perl/1.27 AuthMySQL/2.20
mod_ssl/2.8.9 OpenSSL/0.9.6a, running on FreeBSD 4.3-STABLE. I notice
that in my error logs for Apache I see the following line every few seconds.

[Wed Jun 26 16:59:00 2002] [notice] child pid 85595 exit signal Floating point 
exception (8)

Is there a fix for this?

Devin Atencio

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




[PHP] PHP Chat Program?

2002-06-14 Thread Devin Atencio


Dear PHP Users,

I have a client who currently has a website setup with iChat which
is several years old and we are currently having problems with it. I need
to find a PHP Chat program that will be very easy and simple. I just
wanted to see if anyone here has used a program and really likes
it and can recomment it ?

Devin Atencio

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




[PHP] Formatting Time

2002-05-15 Thread Devin Atencio


I want to a kewl script that will format time from seconds. I have a script
that returns the number of seconds a person has been an employee and
I want to format it in human readable format like:

1 year 6 months 14 days, etc.

Any help would be appreciated it.





[PHP] Regular Expressions

2002-04-23 Thread Devin Atencio


I need to check a variable to see if the format fits one
of the following:

[EMAIL PROTECTED]
 or
*@domain.com
 or
*@*.domain.com

How can I do this with regex? Any help would be greatly
appreciated.

Devin Atencio

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




[PHP] Getting All Variables?

2002-04-19 Thread Devin Atencio


Is there an easy way in PHP to have it display to screen all the variables
that
it has in memory? So i can see what variables there is and what they are set
to?


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




[PHP] Reading Session File from /tmp directory

2002-04-18 Thread Devin Atencio


I am trying to read a session file from the /tmp directory then
restore the PHP variables from this but I can't get it to work, i'm
doing the following:

$acontents = file(/tmp/sess_$sessid);
 $data = $acontents[0];
  unserialize($data);

$sessid is a valid session id, but unserialize doesn't give me
the values for $hostname, $username, etc?

Any help?

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




[PHP] Sessions / Serialized Data

2002-04-17 Thread Devin Atencio


If i have a session going with PHP4 and I want to basically
pull the entire serialized data and then insert it into the
database is there a variable that contains the serialized data
or would I have to just basically read the /tmp/sess_sessid file
and then save that into the database?



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




[PHP] Sessions and transferring between sessions?

2002-04-16 Thread Devin Atencio


I was wondering if I had a session going under a non-ssl and then
have the URL go to a secure session, the session Id changes, is there
a way to keep the same session id so i don't loose any data in the
non-ssl session?



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




[PHP] Block IP Script?

2002-04-04 Thread Devin Atencio


I was wondering If I made a database to store a list of IP CIDR
in a database to block, how I could take an IP of a customer coming
in and find a quick way if it matches a blocked IP in the database?

For instance, in the database I would store something like this:

208.219.20.0/24 

Then if someone came in on 208.219.20.22, it would know that the entire
class C was blocked. Is there an easy way to deal with this type of
thing in PHP/MySQL?

 

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




[PHP] Incrementing number by .1 or substracting .1

2002-04-04 Thread Devin Atencio


Dear PHP Users,

I am trying to figure out how to write a script to increase
a number by .1 or decrease a number by .1 but the number needs
to be in the syntax of x.x. For instance the counting of 5.0 to
6.0 would go:

5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0

or vise versa for subtract. How could I do this? Any help would
greatly be appreciated.

Devin Atencio


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




[PHP] Emulating POST ?

2002-03-28 Thread Devin Atencio


I need to somehow write a PHP Script that will POST
XML type stuff to UPS like this:

?xml version=1.0?
AccessRequest xml:lang=en-US
   AccessLicenseNumberTEST262223144CAT/AccessLicenseNumber
   UserIdtestUser/UserId
   PasswordtestPW/Password
/AccessRequest
 

?xml version=1.0?
 TrackRequest xml:lang=en-US
  Request
   TransactionReference
CustomerContextExample 1/CustomerContext
XpciVersion1.0001/XpciVersion
   /TransactionReference
   RequestActionTrack/RequestAction
   RequestOptionactivity/RequestOption
  /Request
  TrackingNumber1Z12345E1512345676/TrackingNumber
 /TrackRequest

How could I do this? Any help would be greatly appreciated?


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




[PHP] Talking XML over SSL with PHP?

2002-03-28 Thread Devin Atencio


I am trying to write a program that will talk to UPS. It appears that
the requirements is that i must talk SSL and then submit XML type documents
as a POST. Would it be easy in PHP to talk SSL via Socket Layer? Any help
would be appreciated.


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




[PHP] Reading PHP Session Files?

2002-02-18 Thread Devin Atencio

I have a program that saves session information into the database. It saves the session
info much like the PHP4 session files. I need to allow my script to pull the session 
info
out of the database then update one of the fields and then write back out the entire
session string back to the database, how can i do this?

The session info in the database looks like this:

a:1:{i:0;a:7:{s:2:id;s:16:Default identity;s:8:fullname;s:13:Devin 
Atencio;s:9:from_addr;s:0:;s:12:replyto_addr;s:0:;s:9:signature;s:0:;s:10:sig_dashes;i:0;s:9:sig_first;i:0;}}





[PHP] Imap-uw Horde::IMP

2002-02-14 Thread Devin Atencio


I am currently running an old version of imap v4 from FreeBSD 4.1, and
I was going to install the latest 2001c library onto my computer. I realize
that after installing the library i should recompile PHP, but is there any
problems that anyone knows that will affect anything by doing this
upgrade?



[PHP] Encoding/Decoding

2002-01-29 Thread Devin Atencio


Dear PHP Users,

I was wanting some input on your ideas. I want to be able to encrypt
data and then store it into a database and then decrypt the information
and display it when I need the data. I have played around with a few
things from the PHP website but have problems with a few things.

Does anyone currently have a kewl encode/decode function that they could
send me to look at? 

Any help would be appreciated.

  __\/__ 
  .  / ^  _ \  . 
  |\| (o)(o) |/| 
#.OOOo--oo--oOOO.---# 
#   # 
#   Devin Atencio [EMAIL PROTECTED] # 
#   Sys Admin Dept  # 
#_Oooo._# 
  .oooO   (   ) 
  (   )) / 
   \ ((_/ 
\_)
 


-- 
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] Reading File into Array and Searching

2002-01-15 Thread Devin Atencio


Dear Users,

I basically want to do the following. I have  file that contains everyone
that logs into
our mail server a day and then I want to basically load that file into an
array and then
search the array to find out how many times that person logged in and then
take
the last login and capture that information from the file.

I have tried doing something like this but it doesn't seem to work:

$fcontents = file(/tmp/popper.test);

while (list ($line_num, $line) = each ($fcontents)) {
$new_array[$line_num] = $line;
}

$key = array_search(wasatch.com,$new_array);
print count($new_array). matches found.\n;

Can anyone shed some light to help me? I'm using PHP 4.1.0 :)



-- 
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] Encoding Code

2002-01-04 Thread Devin Atencio


I have mcrypt installed and I would like to encrypt
Like say a block of code then insert it into a database.
It looks like when I encrypt more than 1 word it seems
To get weird on me and doesn't encrypt or decrypt 
Correctly.

Does anyone know how I can encrypt like a paragraph
And then beable to have it decrypt the entire thing
Correctly?

  __\/__ 
  .  / ^  _ \  . 
  |\| (o)(o) |/| 
#.OOOo--oo--oOOO.---# 
#   # 
#   Devin Atencio [EMAIL PROTECTED] # 
#   Sys Admin Dept  # 
#_Oooo._# 
  .oooO   (   ) 
  (   )) / 
   \ ((_/ 
\_)
 



-- 
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] SWF and PHP 4.0.6

2001-09-13 Thread Devin Atencio


I am trying to get SWF installed into PHP for a customer and I am having some problems.
I downloaded the file dist.99.freebsd.tar.Z and uncompressed the file. Then reading the
page on swf on the PHP.net website I did as one user suggested and copied the libswf.a
into the /usr/local/lib and then copied swf.h into /usr/local/include and then compiled
php with ./configure --with-swf=/usr/local and then it bombed on the compiling of PHP
doing.

/bin/sh /home/d/dreamboy/php-4.0.6/libtool --silent --mode=link gcc  -I. 
-I/home/d/dreamboy/php-4.0.6/ -I/home/d/dreamboy/php-4.0.6/main 
-I/home/d/dreamboy/php-4.0.6 -I/home/d/dreamboy/php-4.0.6/Zend -I/usr/local/include 
-I/home/d/dreamboy/php-4.0.6/ext/mysql/libmysql 
-I/home/d/dreamboy/php-4.0.6/ext/xml/expat/xmltok 
-I/home/d/dreamboy/php-4.0.6/ext/xml/expat/xmlparse -I/home/d/dreamboy/php-4.0.6/TSRM  
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la 
.libs/libphp4.a(swf.o): In function `php_if_swf_openfile':
/home/d/dreamboy/php-4.0.6/ext/swf/swf.c(.text+0x7ef): undefined reference to 
`swf_openfile'
.libs/libphp4.a(swf.o): In function `php_if_swf_closefile':
/home/d/dreamboy/php-4.0.6/ext/swf/swf.c:236: undefined reference to `swf_closefile'
.libs/libphp4.a(swf.o): In function `php_if_swf_labelframe':
/home/d/dreamboy/php-4.0.6/ext/swf/swf.c(.text+0x970): undefined reference to 
`swf_labelframe'
... cut because of length ...

Is there a better way to do this? Is there a better library to use for Flash with PHP?
Any suggestions would be appreciated?



[PHP] Back/Forward

2001-07-11 Thread Devin Atencio


I have a page that brings up the info on a rock, I wanted to
add the functionality of doing like a next and previous option
to go thru all the rocks in my database. I can't figure out how
to exactly do this, could someone give me some help?


-- 
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] Apache/PHP4 Question

2001-06-18 Thread Devin Atencio


I have a Server Running Apache 1.3.14 and it has PHP4 running
as a module. For our customers we require that they use .cgi
for all of their scripts and so if a user wants to run a php4
script on our server they use www.blah.com/myphpfile.cgi with
of course the first line being #!/usr/local/bin/php4, then our
server runs the php4 script as the user rather than running
as the server username. 

I noticed a security whole if a customer stuck a .htaccess
file in the Directory and then added the following, it would
allow them to stick .php files in their home directory and have
it run as the server and be parsed automatically. Is there a way
to make it so that they can't do this and me not have to disable
the AllowOverride FileInfo, cause right now I have to disable that
feature cause of the security problem that it allowed to happen.

Anyone have any idea of what I can do?

   /'^'\
  ( o o )
--oOOO--(_)--OOOo
Devin Atencio
ArosNet Systems Administration .oooO
EMail: [EMAIL PROTECTED]   (   )   Oooo.
\ ((   )-
 \_)) /
   (_/
 



[PHP] PHP 4.0.5 Apache 2.0

2001-05-03 Thread Devin Atencio


I was wondering if anyone has gotten Apache 2.0 Beta to install with DSO
Support and got PHP 4.0.5 to compile as a DSO using Apache 2.0? I am
using FreeBSD 4.3 and can't seem to get it to work for the life of me.

   /'^'\
  ( o o )
--oOOO--(_)--OOOo
Devin Atencio
ArosNet Systems Administration .oooO
EMail: [EMAIL PROTECTED]   (   )   Oooo.
\ ((   )-
 \_)) /
   (_/
 

-- 
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] Finding Duplicate Numbers?

2001-04-17 Thread Devin Atencio


I have a SQL Table that has over 1,000 records and I was wanting
to write a script that would find duplicate phone numbers and
then list the duplicate phone numbers. I have been trying to
think on how to do this but I can't think of a way. Can someone
please help me on some code I could write to do this?

Thanks in advance.

   /'^'\
  ( o o )
--oOOO--(_)--OOOo
Devin Atencio
ArosNet Systems Administration .oooO
EMail: [EMAIL PROTECTED]   (   )   Oooo.
\ ((   )-
 \_)) /
   (_/
 

-- 
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] PHP4 CGI Problem

2001-03-09 Thread Devin Atencio


I am running PHP 4.0.4pl1 as a CGI and I have a PHP file that is something
like this:

#!/usr/local/bin/php4
?

passthru("/bin/ls -al /home/devin/*");

?

but for some reason it doesn't return anything in the browser, but when
I run the php file from unix it works just fine, any ideas?


   /'^'\
  ( o o )
--oOOO--(_)--OOOo
Devin Atencio
ArosNet Systems Administration .oooO
EMail: [EMAIL PROTECTED]   (   )   Oooo.
\ ((   )-
 \_)) /
   (_/
 

-- 
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 4.0.4pl1 as CGI

2001-01-12 Thread Devin Atencio


I am trying to compile PHP 4.0.4pl1 as a CGI on my FreeBSD 3.4-STABLE box
and I seem
to be having problems for some reason. My configure line reads:


   /'^'\
  ( o o )
--oOOO--(_)--OOOo
Devin Atencio
ArosNet Systems Administration .oooO
EMail: [EMAIL PROTECTED]   (   )   Oooo.
\ ((   )-
 \_)) /
   (_/



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