[PHP] PHP and Windows 7 g6-bit

2011-06-15 Thread Byron Como

Does the precompiled windows binary work on win 7 64?

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



[PHP] PHP and Windows 7 64-bit

2011-06-15 Thread Byron Como

Does the precompiled windows binary work on win 7 64?

I downloaded the apache installer, works with no problems.
I got the php5 VC6 x86 Thread Safe version. It says x86 so I'm 
guessing that's the problem. I can't find a current 64-bit version.


Error message:

Faulting application name: httpd.exe, version: 2.2.19.0, time stamp: 
0x4dd6eda8

Faulting module name: php5ts.dll, version: 5.2.17.17, time stamp: 0x4d25fb49
Exception code: 0xc005
Fault offset: 0x000f424c
Faulting process id: 0xa7c
Faulting application start time: 0x01cc2b64b44cc59e
Faulting application path: C:\server\Apache2.2\bin\httpd.exe
Faulting module path: C:\server\PHP\php5ts.dll
Report Id: f2e941ea-9757-11e0-a2f1-005056c8

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



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



Re: [PHP] PHP and Windows 7 g6-bit (Solved)

2011-06-15 Thread Byron Como

On 6/15/2011 1:59 PM, Tim Thorburn wrote:

On 6/15/2011 11:37 AM, Byron Como wrote:

Does the precompiled windows binary work on win 7 64?

It does, however if you're using Apache as your webserver, for PHP 
5.3+ you won't be able to use the binaries from apache.org for 
Windows.  There is a link to Apache Lounge found here: 
http://windows.php.net/download/ which instructs you to download a VC9 
compiled version of Apache.


If you're using IIS, I think you can just download the version of PHP 
you're after and go.



The documentation on this page:

http://windows.php.net/download/

... is wrong/out of date and should be corrected. If I am mistaken I 
humbly apologize.


Sincerly,
Byron Como

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



Re: [PHP] PHP OOP

2009-02-10 Thread Byron
Where I study, Intro to OOP is taught in C# using Visual Studio 2003 and
further OOP concepts are taught in Java, with the academic computer science
of OOP alongside.

On Wed, Feb 11, 2009 at 2:40 AM, Carlos Medina i...@simply-networks.dewrote:

 Marcus Gnaß schrieb:

 Paul M Foster wrote:

 On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote:
  As a side note, I think students should learn a language like C before
 learning something like Perl, Python or PHP. Having to deal with
 defining/declaring variables and their storage methods before use I
 think makes for more conscientious programmers. And pointers are an
 education all on their own. ;-}


 For teaching programming or OOP I would choose a language which
 concentrates on the topic. The hard stuff, which you have to deal with in C
 for example, can be learned later. I'm glad that I started programming in
 Pascal, not in C. If today I had to learn programming as such I would
 definitively opt for Python! My choice for learning OOP would be Python or
 even better Java cause you don't have the choice to do it in a procedural
 way.

 Marcus

 Hi @ all,
 but this is a php list...

 Regards

 Carlos


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




-- 
I'm going out to find myself, if you see me here, keep me here untill I can
catch up

If I haven't said so already,

Thanks
Byron


Re: [PHP] Help and Advice needed please.

2008-08-24 Thread Byron
Yep, a mysql database seems like the way to go. Thanks to all who have
offered to help on this project. Perhaps we could get together and figure
out what needs doing, assign jobs etc. I have hosting already sorted. Cheers
guys.

On Sun, Aug 24, 2008 at 5:05 AM, sean greenslade [EMAIL PROTECTED]wrote:

 So Byron, what do you think? Do you like the idea of a mysql database?


 On Sat, Aug 23, 2008 at 11:57 AM, Luke [EMAIL PROTECTED] wrote:

 I'm up for helping too. Also, a big agree to Sean too, MySQL seems the
 best way to go here.

 2008/8/23 sean greenslade [EMAIL PROTECTED]

 I would be willing to help with this project. Because of all the different
 requirements of this, I would recommend a totally custom set of scripts,
 and
 a mysql database to hold all the data.

 On Sat, Aug 23, 2008 at 7:22 AM, Byron [EMAIL PROTECTED] wrote:

  Hey.
 
  I do some part-time IT work for a voluntary paramilitary youth
  organisation,
  and we're loooking for a system to digitize the personell files of our
  members. Here's a features list, all advice on how to implement will be
 a
  great help.
 
  * Web-accesable via login
  * Rank, Name, Phone Number, Address, Email Address, Physical Address.
  * Training History
  * Promotion History
  * Miscellanous Notes.
  * Different types of Administrator and notes that can be attached to
  personell files that are seen by different types of administrator.
  * Activity report page. I.e. This activity happenened on this date and
  these
  people attended from this time to this time. Attendance must be visible
 on
  personell files.
  * Attendance Register and counter for attendances of members.
  * UI that a 65-year old who believes dialup is fast (the Unit
 Commander)
  can
  find his way around.
  * Easily copiable and deployable. As in can be used by more than one
 unit.
 
  --
  I'm going out to find myself, if you see me here, keep me here untill I
 can
  catch up
 
  If I haven't said so already,
 
  Thanks
  Byron
 



 --
 Feh.




 --
 Luke Slater




 --
 Feh.




-- 
I'm going out to find myself, if you see me here, keep me here untill I can
catch up

If I haven't said so already,

Thanks
Byron


[PHP] Help and Advice needed please.

2008-08-23 Thread Byron
Hey.

I do some part-time IT work for a voluntary paramilitary youth organisation,
and we're loooking for a system to digitize the personell files of our
members. Here's a features list, all advice on how to implement will be a
great help.

* Web-accesable via login
* Rank, Name, Phone Number, Address, Email Address, Physical Address.
* Training History
* Promotion History
* Miscellanous Notes.
* Different types of Administrator and notes that can be attached to
personell files that are seen by different types of administrator.
* Activity report page. I.e. This activity happenened on this date and these
people attended from this time to this time. Attendance must be visible on
personell files.
* Attendance Register and counter for attendances of members.
* UI that a 65-year old who believes dialup is fast (the Unit Commander) can
find his way around.
* Easily copiable and deployable. As in can be used by more than one unit.

-- 
I'm going out to find myself, if you see me here, keep me here untill I can
catch up

If I haven't said so already,

Thanks
Byron


[PHP] Help with login

2008-06-27 Thread Byron
Hey, I think this should be working but it doesn't seem to be.

?php
/* Admin Login Page
TS Achilles Website
Created by Byron Glover */

require(config.php);
require(functions.php);

// Check for previous authentication
if (isset($_COOKIE[auth])  isset($_GET[page]))
{
include($_GET[page]..php);
  die();
}

if (isset($_COOKIE[auth])  !isset($_GET[page]))
{
include($GLOBALS['admin_index']);
die();
}
// Handle login form data that has been self-$_POSTed
if (
$GLOBALS['admin_log_user'] == $_POST[user]

$GLOBALS['admin_encrypt_pass'] == md5($_POST[password])
){
setcookie(auth, 1, time()+900);
header(Refresh: url=.$_SERVER['PHP_SELF']);
}

?

html
form method=post action=login.php
table align=center
tddiv class=h1 underlineAdministrator Login/div
trtddiv class=plaintextUsername: /div/tdtd
trtdinput name=username type=text
width=25/td/tr
trtddiv class=plaintextPassword: /div/tdtd
trtdinput name=password type=password
width=25/td/tr
trtd colspan=2 align=centerinput name=Login
type=submit/td/tr
/table
/form
/html


[PHP] Please stop me from tearing my hair out.

2008-06-19 Thread Byron
Right. I'm getting this error from the following code : *Parse error*:
syntax error, unexpected '}' in *C:\wamp\www\achillesweb2\install.php* on
line *39
*and I can figure there's probably a bunch of others. If anyone wouldn't
mind giving this a read over that'd be really helpful. Feel free to chip in
with any glaring obvious suggestions and points of interest you'd like to
raise, I probably need the help. Thanks in advance.*
*
---
Install.php
---
1  ?php
2  /*
3  Here lies a comment block that's private
4  Here lies a comment block that's private
5  Here lies a comment block that's private
6  */
7
8  require(config.php);
9
10 //Mysqlconnect functions
11
12 function ach_mysqlCon( $init=true )
13 {
14static $con = null;
15
16if( $init  $con === null )
17{
18   $con =
19   mysql_connect
20   (
21   $GLOBALS['mysql_host'],
22   $GLOBALS['mysql_user'],
23   $GLOBALS['mysql_pass']
24   );
25
26   if( !$con )
27   {
28   die( 'Could not connect: '.mysql_error() );
29   }
30   }
31 }
32 echo br ach_myqslcon function defined;
33
34 function ach_mysqlCloseCon()
35 {
36if($con = ach_mysqlCon(false))
37{
38mysql_close( $con )
39   }
40 }
41 echo br ach_myqslCloseCon function defined;
42
43 function ach_select_db()
44 {
45$db_select = mysql_select_db
46 (
47 $GLOBALS['mysql_db'], $con
48 );
49
50 if (!$db_select)
51 {
52 mysql_query(CREATE DATABASE.$GLOBALS['mysql_db'],$con)
53  }
54 }
55 echo br ach_select_db function defined;
56
57
58 function ach_select_table($col,$table)
59 {
60 mysql_query(SELECT.$col.FROM.$table)
61
62 if(!mysql_query(SELECT.$col.FROM.$table))
63 {
64 die( 'Could not connect: '.mysql_error() );
65 }
66 }
67 echo br ach_select_table function defined;
68 ?
__

and for your curiosity
--
config.php
-
?php
/* CONFIG.PHP
Global configuration file
TS Achilles Website
Created by Byron Glover */

// Mysql variables
$GLOBALS['mysql_host'] = localhost;
$GLOBALS['mysql_user'] = [EMAIL PROTECTED];
$GLOBALS['mysql_pass'] = ;
$GLOBALS['mysql_db'] = ach_db;

?


[PHP] Variables

2008-06-18 Thread Byron
Hi

I was wondering if this is the correct way to reference a variable from a
file that has been included inside of a function. Also just general
static/global variable usage.

For example:

Myqsql_functions.php

?php
require(config.php)

function ach_mysqlCon()
{
static $con = mysql_connect(global
$mysql_host,$mysql_user,$mysql_pass);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
}

function ach_mysqlCloseCon()
{
if($con)
{
mysql_close($con)
}
}
?


And the variables are defined in config.php

--
config.php
--
?php
//Mysql vars
$mysql_host = localhost;
$mysql_user = [EMAIL PROTECTED];
$mysql_pass = ;
?
--

So my questions are will ach_mysqlCloseCon() recognise the $con variable
in ach_mysqlCon() as it is declared as static? will ach_mysqlCon() recognise
the variables included from config.php as they are declared global? is this
all syntax'd properly?

Also, how would I, for example, change $mysql_host from a form?

Cheers and thanks for any and all assistance.


[PHP] textarea form input converting lt; and gt; to

2002-02-20 Thread Byron Albert

Hello,

 I have a few forms that  are used to input html.  We have run into a
problem of lt; and gt;  getting turned into  and  when you hit
submit, Or if you hit submit more than once. I have attached a sample
form.  The major problem here is that some times we want lt; and some
times we want to input html tags. Has any one else run into this problem
maybe even found a solution.

Any help would be appreciated.
Thanks
Byron



html
head
 titletest form/title
/head
body
form method=post
TEXTAREA NAME=test rows=10 cols=50? echo $test; ?/textarea
br
INPUT TYPE=submit NAME=submitaction VALUE=Submit
/form
br
what you typed
br
? echo $test; ?
/body
/html


--

Byron Albert[EMAIL PROTECTED]
System Engineer Internet.com a Division of INT Media Group
203-662-2848

Engineering does not require science. Science helps a lot but
people built perfectly good brick walls long before they knew
why cement works.  -Alan Cox




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




[PHP] mail() extra headers not working

2001-11-01 Thread Byron Albert

 Hello,

 I am trying to ad extra headers to email's I am sending through php. I
want to ad Reply-To: and Bounse-To: addresses.  But when add them useing
the  forth feild of the mail() funtion.
mail($recipient,$msubject,$message,Reply-To:  $sender);
but for some reason when I send this e-mail it puts a newline befor this
header so it becomes part of the message not the headers.  Any ideas on
what to do??
Byron


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