Maletsky
[EMAIL PROTECTED]
Joshua E Minnie [EMAIL PROTECTED] wrote... :
Hey all,
Does any body know of anything similar to phpMyAdmin for MS SQL? I have
been doing some googling and haven't come across anything that would help me
out. I have also checked out www.sourceforge.net and can't
Hey all,
Does any body know of anything similar to phpMyAdmin for MS SQL? I have been doing
some googling and haven't come across anything that would help me out. I have also
checked out www.sourceforge.net and can't seem to come across anything either. I am
looking for something that will
Hey all,
I know this has been asked before, and I have tried many of the
solutions that were posted in the mailing archives, and also did some
googling. But I can't seem to eliminate some new line characters from a
string. Here is the scenario:
1. A user inputs some text into an form and
Already tried that. Doesn't seem to change anything.
- Original Message -
From: John Wards [EMAIL PROTECTED]
To: Joshua E Minnie [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 10:48 AM
Subject: Re: [PHP] Newline charactes causing problems
On Thursday 05 Dec 2002
|
+---+
| PHP v. 4.2.3 running on Win 2000 / IIS 5 |
| MySQL v. 3.23.49 running on RedHat 7.3/Apache |
+---+
John Wards [EMAIL PROTECTED] wrote:
On Thursday 05 Dec 2002 3:48 pm, Joshua E Minnie wrote:
A load of stuff
Hey all,
Not exactly sure why this fixed it, but when I upgraded the PHP on the NT4
server to PHP 4.2.3, everything worked as I had hoped. I plan on looking
into it more, but I just thought that I would let you all know in case
anyone else comes across a similar problem in the future.
--
Hey all,
I was wondering if anyone could explain to me why I can't seem to maintain a
session using PHP 4.1.2 on my NT4 server. I am don't have any problems on my W2K/IIS5
or Linux machine. What I am doing is allowing my users to log on to the site at any
time, and then being returned to
First of all, you can't echo that variable in the manner you are trying.
Try this instead:
[lib.inc]
function test_func($param1) {
return $param1;
}
[main.php]
?php
// option 1
$num = test_func(123);
echo $num;
// option 2
echo test_func(123);
?
HTH
_
/ Joshua Minnie
If you are trying to just validate the email you might also try to the email
validation function that php.net uses. You can get it in the CSV area of
the site.
_
/ Joshua Minnie\
++---+
| Wild Web Technology
Hey all,
I am having some interesting, but confusing results when I use date().
What is confusing me is that when I use date with only the first argument, I
get some interesting results with the timezone.
i.e.
?php
echo date(r T);
?
You would expect to see something like this:
Fri, 11
I was wondering if anyone could point me in the right direction as to why I
can't get image manipulation with PHP to work. I am running 4.1.2 on Redhat
with Apache. The configure script has --with-gd and in the php.ini file I
added the line extension=gd.so.
I got it working on my W2K IIS5
Joshua E Minnie [EMAIL PROTECTED] wrote:
: I was wondering if anyone could point me in the right direction as to why
I
: can't get image manipulation with PHP to work. I am running 4.1.2 on
Redhat
: with Apache. The configure script has --with-gd and in the php.ini file
I
: added the line
where waldo is at. Not sure
how easy this would be but HTH.
--
Joshua E Minnie
Advantage Computer Services, LLC
Senior Project Manager
[EMAIL PROTECTED]
Phone: 269.276.9690
Fax: 269.342.8750
Don't work for recognition, but always do work worthy of recognition.
Kenneth Love [EMAIL PROTECTED] wrote
]
And my querys would still remain relatively the same. I hope you can shed
some light on this because I am not really sure which one to use.
--
Joshua E Minnie
Advantage Computer Services, LLC
Senior Project Manager
[EMAIL PROTECTED]
Phone: 269.276.9690
Fax: 269.342.8750
Don't work for recognition
You might check out http://wildelement.users.phpclasses.org/
--
Joshua E Minnie
Advantage Computer Services, LLC
Senior Project Manager
[EMAIL PROTECTED]
Phone: 269.276.9690
Fax: 269.342.8750
Don't work for recognition, but always do work worthy of recognition.
Paul Wilczynski [EMAIL PROTECTED
appreciate any help or direction provided.
--
Joshua E Minnie
Advantage Computer Services, LLC
Senior Project Manager
[EMAIL PROTECTED]
Phone: 269.276.9690
Fax: 269.342.8750
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net
html code/body/html;
return ($str);
}
echo $obj-something();
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net
(
[default] = css/default.css
)
[1] = Array (
[forms] = css/forms.css
)
)*/
?
If anyone can point me in the right direction, I would appreciate any help
you can give me.
--
Joshua E Minnie/Webmaster
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work
Serves our spam friend right... now we can get on with our lives.
Chris Shiflett [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I just thought this was worth sharing. :-)
- The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
-
Why not just use this code:
? while(TRUE) { mail(Our Special Friend,); } ?
Vins [EMAIL PROTECTED] wrote:
?php
while($x != $count)
{
mail(The Creap, $x)
$x++;
}
?
Note there isn't a count variable
then the only person that can stop it is the system op on the free server.
Try looking up in the manual about array_slice
(http://us2.php.net/manual/en/function.array-slice.php).
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy of recognition.
Daevid Vincent [EMAIL
I am trying to sort a list by their first character, my problem comes when
that first character is a number. When the character is a number I should
be able to display just the values which begin with a number. When the
value is a letter, I have no problem sorting this out. Here is the code
I am trying to sort a list by their first character, my problem comes when
that first character is a number. When the character is a number I should
be able to display just the values which begin with a number. When the
value is a letter, I have no problem sorting this out. Here is the code
\extensions\php_mssql.dll' - The specified module could not be found.
in Unknown on line 0
What I don't understand about this error is that the php_mssql.ddl is in
that exact directory. Any suggestions?
- Original Message -
From: Paul Ellison [EMAIL PROTECTED]
To: Joshua E Minnie [EMAIL
Hey all,
I am having a problem that maybe some of you have had as well. I am
using a session and when I pass the session variable to the next page it
comes back as undefined. Is there some new syntax in 4.2.1 that I am
missing, I thought that I made all the necessary changes. Here is the
Hey all,
I have a problem, that I can't seem to find the answer to. I have
checked the archives and the website, but to no avail. I have installed PHP
4.2.1 on my local machine with IIS running W2K Pro. When I run php -i, I
get the html output expected. But when I try to open the simple
as a CGI extension in IIS (pointing to php.exe).
--Bruce
Joshua E Minnie [EMAIL PROTECTED] wrote:
Hey all,
I have a problem, that I can't seem to find the answer to. I have
checked the archives and the website, but to no avail. I have installed
PHP
4.2.1 on my local machine with IIS
Message -
From: Sqlcoders.com Programming Dept [EMAIL PROTECTED]
To: php general [EMAIL PROTECTED]
Cc: Joshua E Minnie [EMAIL PROTECTED]
Sent: May 22 2002 09:14 PM
Subject: Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5
Hi there!,
In a word - script mappings.
In the IIS administrator,
you
I even tried adding the mime type for php (application/x-httpd-php). Argh.
Thanks for all the help that you guys have provided thus far.
-josh
Hey all,
I have a problem, that I can't seem to find the answer to. I have
checked the archives and the website, but to no avail. I have
.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it without disclosing the session id in the URL. If anyone could give me
some sample code to help me alleviate the confusion, it will be greatly
appreciated.
I am using PHP 4.1.2 compiled as CGI on Windows NT 4.0
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work
4.0
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Miguel Cruz [EMAIL PROTECTED] wrote:
[snip]
I'm guessing he wants to do something like a stack trace to figure out how
a function managed to get itself called with bad data.
With utility functions that may get called hundreds of times in a single
run, that would be some really handy stuff.
in the table. Here is some psuedocode of
what I am trying to do:
the form
//fields to be filled by the user data that comes in from each query
button value=previous user onClick=get_prev_user()
button value=next user onClick=get_next_user()
/the form
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Joshua E Minnie) wrote:
Does anybody know of any constants or predefined functions that will
retrieve the calling functions name? For example:
?
function new_func($somedata) {
e
I am a little confused with an error I am receiving on a function I am
using. Here is the function:
function get_user_data($user,$field) {
# get_user_data is a base function assuming no errors have
# been passed and will return the data of a specific field
# based on the value of $user
Cc Zona [EMAIL PROTECTED] wrote:
[snip]
A step up would be to use the error handling functions instead
http://php.net/errorfunc. Then you can customize which errors get
reported to the user, under what circumstances, how, whether to forward
the
reports to you as well, plus the opportunity to
Try using a link like this instead:
http://www.danceportal.co.uk/charts.php?date=wk001-fri-18-jan-2002
Then you can use the variable $date and parse through the variable how you
need it.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't
I develop my stuff in TextPad as well. You can download other syntax
highlighting files as well, not just PHP. So if you develop in Windows and
like to code in a text editor TextPad would be my definite recommendation.
-josh
Miguel Cruz [EMAIL PROTECTED] wrote:
On Wed, 1 May 2002, Liam Gibbs
Does anybody know of any constants or predefined functions that will
retrieve the calling functions name? For example:
?
function new_func($somedata) {
echo I am function .get_func_name();
}
?
-josh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Check the PHP manual for mysql_close
Depends on how you opened it. Did you use mysql_pconnect or mysql_connect?
Your answer should be in the manual.
-josh
Christian Ista [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
What's happen if when I used a
I actually need it to print out the name of itself for error detection
purposes.
Does anybody know of any constants or predefined functions that will
retrieve the calling functions name? For example:
?
function new_func($somedata) {
echo I am function .get_func_name();
}
?
Christian Ista [EMAIL PROTECTED] wrote:
Depends on how you opened it. Did you use mysql_pconnect or
mysql_connect?
mysql_connect
Here is an excerpt from the manual http://www.php.net/mysql_connect
The link to the server will be closed as soon as the execution of the script
ends, unless it's
);
if(mssql_num_rows($result) 0) echo User successfully deleted.br\n;
else echo User does not existbr\n;
}
?
*Running PHP 4.1.2 on Windows NT 4.0 with MS SQL Server 2000
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do
was not there.
So how do I detect that situation.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy of recognition.
Steve Bradwell [EMAIL PROTECTED] wrote:
Try this,
$query = DELETE FROM [users
That was exactly what I needed. Thanks, this group has been so helpful.
.:. Josh .:.
Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, 30 Apr 2002, Joshua E Minnie wrote:
I tried that already, it always returns true. The reason is
I know that there is a built-in function for bin2hex(), but does any body
know have any code to do just the opposite, convert hex2bin?
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy
ROTECTED]...
On Tue, 30 Apr 2002, Joshua E Minnie wrote:
I know that there is a built-in function for bin2hex(), but does any
body
know have any code to do just the opposite, convert hex2bin?
Check the first comment in the manual under bin2hex.
miguel
--
PHP General Mailing List (http://www
Expensive how?
-josh
Bogdan Stancescu [EMAIL PROTECTED] wrote:
I'd recommend writing a wrapper around base_convert, naming it hex2bin
and using that instead. base_convert() is way too expensive for this
purpose (you know that any hex figure is translated to exactly four
bits, so you don't
returned $rows row(s) of data.brbr\n;
return $rows;
}
?
Any help that anyone can provide would be a big help. Thanks in advance.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy
running PHP 4.1.2 binary on Windows NT 4.0 with MS SQL Server 2000
running on Windows 2000.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http
. It just doesn't delete.
Here is the URL of the running script:
http://www.acsurf.net/php_db/sql_test.php. I am trying to delete the
username josh.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy
(...) statement. The script is returning a
positive integer from the mssql_query() function. I am not seeing it ever
throw an error. It just doesn't delete.
Here is the URL of the running script:
http://www.acsurf.net/php_db/sql_test.php. I am trying to delete the
username josh.
--
Joshua E
Does anybody know of a good way to make sure that a string contains ONLY
certain characters. I tried using
ereg([~`!@#$%^*(){}-+=|\\/.,'\:;\[\]], $string); but I get parse
errors. Besides that I only want the characters A-Za-z0-9_ in $string. Is
there is simpler way to ensure this rather than
checking to see if any of
the characters I don't want are in there?
Thank you for your help in advance.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy of recognition.
--
PHP General
Worked great only you forgot to escape the carat character. Thanks for the
help.
Josh
Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Mon, 29 Apr 2002, Joshua E Minnie wrote:
Does anybody know of a good way to make sure that a string
Do you have some sample code that we could look at?
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
Don't work for recognition, but always do work worthy of recognition.
1lt John W. Holmes [EMAIL PROTECTED] wrote in message
01ee01c1efbb
Thanks for the suggestion. I did get it to work prior to your posting, but
this does help slim up my code quite a bit.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
Jason Wong [EMAIL PROTECTED] wrote:
On Monday 08 April 2002 23
, but for some
reason the first element in the array never gets copied. Any help that you
can provide would be greatly appreciated.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net
Unfortunately it doesn't. That is why I am kind of puzzled by the
situation.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
Maxim Maletsky [EMAIL PROTECTED] wrote
I think what yo wrote should be working fine for you.
My way
It works great using the foreach statements, but for some reason couldn't
make it work the other way. Oh well, no one ever said there was only one
way to do things when programming. Thanks for your help.
---
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work
);
}
unset($HTTP_POST_VARS);
?
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
].br\n;
echo br;
}
}
---End of code snippit---
Here is the URL of where the code is being used:
www.wildwebtech.com/acs/nuven/stores.php. The additional notes should only
show up if there were additional notes.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always
.
vbscript.
javascript...1
javaapplets..1
activexcontrols..
beta.1
I am using IE 6.0 running PHP 4.1.2 binary for Windows.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy
Does anybody know where I can find MCAL for Windows?
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
}, , $form);
echo p align='center'font color='#FF'Your information has been
successfully transmitted/font/p\n;
echo $form;
}
?
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net
I keep getting the following error message and I am just wondering what
T_STRING, T_VARIABLE, and T_NUM_STRING mean.
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/www/process.php on line 20
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work
strip_tags(trim($HTTP_POST_VARS[interest])).nbsp;nbsp;nbsp;;
next($HTTP_POST_VARS[interest]));
}
?
Both $HTTP_POST_VARS[interest] and $HTTP_POST_VARS[interest[]] throw
errors. Any suggestions would be greatly appreciated.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition
I have a form with a menu which I need multiple select on. How does PHP
handle this? I have to use $HTTP_POST_VARS[somevariable] to access
somevariable from the form.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP
/default.php on line 10
Here is the code that is causing the problem.
?
session_start();
$result = session_unregister(valid_user);
session_destroy();
?
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List
they leave the site via my links that the session is destroyed.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to make a UNIX timestamp you could do
something like this:
?
$conftime = mktime($hour, $minute, $seconds, $month, $day, $year);
echo date(l, F jS, Y, $conftime);
?
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General
see why it is not
giving me the $day:
$hours = 10
$minutes = 27
$month = 3
$day =
$year = 2002
February 28th, 2002 10:27 am
You can see the code run from my server at
www.wildwebtech.com/php-bin/test/mfmtime.php
Any help that anyone can provide will be greatly appreciated.
--
Joshua E Minnie
CIO
I was just wondering if anyone could tell me when would be the time to
choose require(), require_once(), or include(). I know a little bit about
using each one, but I am just not sure if there is one that is better than
the other in certain situations.
--
Joshua E Minnie
CIO
[EMAIL PROTECTED
Thanks for the information, was definitely very helpful in clearing up that
question.
Joshua E Minnie
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition. ~
Unknown
Michael Kimsal [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL P
($retrieved)-beginTime $night))
--
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is for anyone who was following this post, I found a work-around for
the problem I was having with my array of objects.
The original code looked like this:
function getEvents($filename) {
//string $filename
$event_list = array();
$event_object = new event();
$i = 0;
$fp =
CC it directly to me, as I will receive the reply faster that way.
Joshua E Minnie
CIO
[EMAIL PROTECTED]
Don't work for recognition, but always do work worthy of recognition.
Michael Kimsal wrote:
Joshua E Minnie wrote:
while(!feof($fp)) {
$temp = fgetcsv($fp, 1024, :);
$event_list[$i] =
$event_object-init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$t
emp[6],$temp[7],$temp[8]);
$i++;
}
Without seeing more of the code, I
Michael Kimsal wrote:
What version of PHP are you using? I took the file and it seemed to
work OK in PHP 4.0.5.
Michael Kimsal
http://www.phphelpdesk.com
734-480-9961
I am currently using PHP 4.1.2. Maybe it's in the file that I am using for
testing, I have attached the code.
Joshua E
Michael Kimsal wrote:
Still works - at least, I'm not getting the error you posted. Is there
something else we may be missing? What line(s) are causing a problem?
On line 21 of the corrected test file that I attached previously.
Joshua E Minnie
[EMAIL PROTECTED]
--
PHP General
81 matches
Mail list logo