Not to mention that read would most likely be a tinyint(1), and thus
shouldn't be fed a character.
Stut wrote:
Please include the list when replying.
James Blandford wrote:
It seems i have fixed it >_< thanks for your time thou. It turns out
that I couldn't have "read" as a field name due to
Take a look at array_walk()
http://be2.php.net/manual/en/function.array-map.php
It might be better for what you're doing.
Juan Ignacio Borda wrote:
this code doesn't work on my PHP Version 5.2.1 (i'm trying to protect a
stie from XSS)
como';
$a[]=Array('hola','hello');
array_walk_recursive($a
ked with a dependency scanner. It said
all DLLs were loaded, but when restarting Apache I'm still getting the
same error.
I even tried copying the needed files to system32 and the windows
folder, still no luck.
Ben
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
hen?
When doing a quick search through the Sybase folder I didn't see
anything relating to PHP, just connectors for ADO.NET, ODBC, ...
Ben
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Niel Archer wrote:
Hi
I have the Sybase Open Client installed (with Sybase Central etc).
Are the libraries in a location that PHP has access to. For example,
the MySQL client libraries pretty much have to be in the php directory
or it doesn't work.
Niel
There shouldn't be a problem with t
Niel Archer wrote:
Hi
Look in php.ini or use phpinfo() to check your configuration. Make sure
that 'c:\wamp\php\ext\' is the extension_dir path, assuming that is the
name of your directory.
Loading extensions works fine, I'm able to load cURL and mysql just fine.
Also make sure you have the
Mikael,
The file actually exists. I've tried copying it to various places (php
root, wamp root, system32 and the WINDOWS folder), but still no luck.
Ben
Mikael Grön wrote:
Ben,
first of all, check if the file php_sybase_ct.dll actually exist in the
directory c:\wamp\php\ext\
If it
k correctly?
Thanks,
Ben.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm on PHP Version 5.1.2.
Is there any good walkthrough for upgrading PHP on a Windows machine?
I've tried upgrading before but it failed.
Ben
[EMAIL PROTECTED] wrote:
What version of php? 5.2.0 works fine, while some of the previous 5.1.X didn't
work.
-Messaggio or
my opinion when you should be able to use the Sybase library.
Thanks,
Ben
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;m trying to solve is that I've got a legacy site that
needs to have register_globals on but I don't want register_globals to
be on for the rest of the sites.
Ben
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;m trying to solve is that I've got a legacy site that
needs to have register_globals on but I don't want register_globals to
be on for the rest of the sites.
Ben
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
", "enabled");
php_info_print_table_end();
}
ZEND_FUNCTION(hello_world)
{
zend_printf("Hello Ben Chivers");
}
ZEND_FUNCTION(passphp)
{
char buf1[1024] = "";
size_t bt;
php_stream * stream = php_stream_open_wrapper("php://input", "w+b",
REPORT_
Marlene,
Seems like your scripts need the appropriate permissions to access the
database directory, using the local account assigned for your Web server to
process requests.
~ Ben
- Original Message -
From: "Marlene Burckhalter" <[EMAIL PROTECTED]>
To: <[EMA
Has anyone heard of this company? I just bought a motherboard from them for $20
dollars, seems to good to be true.
http://www.tigersurplus.com
Thanks
BJ
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Has anyone heard of this company? I just bought a motherboard from them for $20
dollars, seems to good to be true.
http://www.tigersurplus.com
Thanks
BJ
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I had the same problem a couple of weeks ago.
register_globals=On
magic_quotes_runtime=Off
Ben
"Jack" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear all
> I had write a script like this :
>
> $link = "page.php?day=$day&month=$month&
My phpinfo? page shows gd (extension gd2.dll) has been eabled, but I still cannot see
any images? any simple way to test gd function really installed and work/or not?
I am using: Win-xp+Apache2+php4.3.2
Thank you for reply in advance.
Walter
-
Do y
l is
in c:\server\PHP\extensions\php_gd2.dll)
; Directory in which the loadable extensions (modules) reside.
extension_dir = c:\server\PHP\extensions
- Original Message -
From: "Walter Ben"
To:
Sent: Saturday, June 14, 2003 2:16 PM
Subject: [PHP-WIN] Pls help- can't load G
Server : Apache 2PHP 4.3.2 OS : Win XP Pro i can't load GD2 extension php_gd2.dll in
PHP , when i
start Apache , it always alert "Can't load dynamic
library php_gd2.dll" .
I'm sure that no problems in my config . When i use
other dll file such as php_java.dll, it has no errors
and work
Children, please.
If you type:
C:\apache\htdocs\filename.jpg
In the address bar of your browser it should display it, if it doesn't then
I'd just ignore it and move on...
My copies of IE6 and Mozilla display jpegs when told to.
--
Ben O'Neill
"Anthony Ritter" <
He was missing a "{", otherwise it was fine.
--
Ben O'Neill
"Kobus Myburgh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,
I have done a similar thing that worked reasonably well in Visual Basic
(however, included is a PHP snippet which might do th
Find:
[mail function]
; For Win32 only.
SMTP = localhost
In the PHP.ini file, and make sure it's set, then you'll need to be running
an SMTP server (e.g. IIS).
--
Ben O'Neill
"John Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
Goto IE, Tools, Advanced, and un-check using friendly error mesasges. That
should give a move helpful error message.
--
Ben O'Neill
"Thomas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i have just installed
> php-4.3.1-Win32
> mysql-3.23.55
Using that it would be:
$array_length = count($myArray);
$myArray[$array_length] = $new_data;
As arrays start at 0, and count() returns the number of elements.
- Ben O'Neill
"Chris Kranz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Something like...
&
Well, you can add items onto the end of an array by doing:
$myarray[] = "added on end";
--
Ben "SheepCow" O'Neill
GameSpyDaily Weekend Editor
http://www.gamespydaily.com
"Matt Babineau" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
ssage-
From: Ben Edwards [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 10:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Which Web server to run under XP
I am using XP and have been trying to work out which web server to use
with
PHP & MySQL.
First I tries IIS and it said I have an OC
Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
********
* Ben Edwards +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online coll
ould keep trying for IIS though.
and as far as Apache requiring Sp1. Maybe v2.0.latest does, Get 1.3.27-win32
(PHP suppoort for Apache2 is expierimental anyway)
Regards,
Sean
-Original Message-
From: Ben Edwards [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 11 January 2003 1:11 PM
To: [EMAI
e is that it is something to do with securety.
Are there any other web servers I could use or are there work rounds for
the above.
Regards,
Ben
****
* Ben Edwards +44 (0)117 968 2602 *
* Critical Site Bui
.htaccess file. But thats another story.
Ben Davis
Nashville, TN
[EMAIL PROTECTED]
www.davisben.com
- Original Message -
From: "Christian Leberfinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 12:25 PM
Subject: [PHP-WIN] crypt() on w
know what line to put in the httpd.conf file.
Thanks
Ben Davis
www.davisben.com
Hey,
I am trying to work out PHP sessions, but are having some trouble at the
first step.
This code, which should be simplistic:
Results in this output:
Warning: open(/tmp\sess_52be4d339fbffacf1efc495cf16ed383, O_RDWR) failed: m
(2) in c:/documents/web/page1.php on line 2
your session id is: 5
Is there a particular directory that is considered the PEAR library in the
PEAR piece of PHP? I'm getting an error in Horde that says that my PEAR
library path might be missing from include_path.
Ben Fogt
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit:
PHPROOT! so, when i put the files in
"c:\apache\php", it works.
why does php_xslt.dll expect the files to be in PHP root? how can i change
this to be able to pick up files from the document root itself?
thanks,
ben
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, v
George
Thank you. I didn't understand the meaning of the "void" preceding the
syntax in the statement. I should have looked this up, and have now. Thank
you for pointing me in the right direction - much apreciated!
Ben
"George Nicolae" <[EMAIL PROTECTED]> wr
Hello
I've installed mysql and php on W2K with IIS5.0 and I'm having some trouble
closing my connection, which is established via odbc.
I have been using the following php code to connect:
$link = odbc_connect("forum", "ben", "dulwich")
or di
apache.dll file...
= It's exactly where I'm telling apache it is, but it can't find it.
Any ideas?
Thanks,
Ben
How does one do this?
-Original Message-
From: alain samoun [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 1:43 PM
To: elias; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Make a CD with Apache & PHP
php to exe ;)
-Original Message-
From: elias [mailto:[EMAIL PROTECTED]]
Sen
Have you tried backticks? 'echo `uptime`';? That has worked for me in
the past... it seems, from other postings, that people have nothing but
trouble with exec() and system().
Good luck,
Ben
-Original Message-
From: Dave Milford [mailto:[EMAIL PROTECTED]]
Sent: Friday, Jul
In your httpd.conf file (/etc/httpd/conf/httpd.conf, typically, on unix
anyway) find the lines that looks something like
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
And just add .php3 to the first list (so it would read .php .phtml
.php3) If you hav
If this is too 'big' of a solution (ie, you don't need all that
functionality) you could just 'include header.inc', 'include
footer.inc', etc. Check the manual for details..
Although, templates will probably be a bit more flexible, I would
guess...
Ben
I used the thing from phpbuilder worked a treat, many thanks
""Ben Gillam"" <[EMAIL PROTECTED]> wrote in message
9gt53d$lfh$[EMAIL PROTECTED]">news:9gt53d$lfh$[EMAIL PROTECTED]...
> For example, if someone puts the following into a textbox..
>
> "H
For example, if someone puts the following into a textbox..
"Hi my name is bob smith
and im talking to you now
and hitting enter every now and then"
and the name of the textbox is $message
how could i get it to take the contents of the text box and put it in
$message as is, with blank lines a
I am getting the following on a Windows 2000 Professional installation when
I try to start a session:
Warning: open(/tmp\sess_9ab091b811c5675d90fabf4392b3c110, O_RDWR) failed: m
(2) in
e:\inetpub\wwwroot\cd\common.inc on line 27
Any help would be much appreciated.
Regards,
Ben
Yes but you can call the Header() function in the middle of the page if you
need to.
You just need to put this line as the VERY FIRST line of the script:
This uses the PHP Output Buffering functions.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332
ld be usefull to.
also, the script your trying to execute, and does the script actually run? or
does it just time out.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the I
$YOUR-STRING=
eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","\\1://\\2\\3", $YOUR-STRING);
hth
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.c
er that is larger that I think 2.5Kb, this way, IE knows that its a
custom error doc, and displays this instead.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
I know this is a windows list, but
I need to know how to configure Sendmail on a Redhat Linux machine to relay
messages through another host.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http
I need to open an image and convert its binary type to hex,
what I need to do is a bin2hex on the binary info of the image, sounds simple
enough. Although, I can get php to open the image and read the (binary)
contents into a string, can someone help me.
Thanks.
-- Ben Cairns - Head Of
)."\n";
print("Unseen: ". $status->unseen )."\n";
print("UIDnext:". $status->uidnext)."\n";
print("UIDvalidity:". $status->uidvalidity)."\n";
} else
print "imap_status faile
conn);
$howmanyrows = mysql_num_rows($howmanyrows);
if ($howmanyrows == '0') { $auto_inc_id = '0'; } else {
$auto_inc_id = (($howmanyrows+1));
};
I'm not sure if that will work, but its a start.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 013
HTH...
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Mailing List (http://www.php.net/)
To unsu
How do I set a cookie in IE5,
I cant do it, it just wont let me...I have looked at php.net and have tried
the examples there, but they don't seem to work!
HELP, Please
-- Ben Cairns
E-Mail: [EMAIL PROTECTED]
Just Because It Works, Doesn't Mean It Isn't Broken
--
PHP
I have a string that I want to MD5 (No prizes for guessing its a password),
what I want to do is MD5 two strings (one supplied by the user, and one by my
server) and compare them. How can I do this?
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
.
Thanks.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-ma
if (screen.width==640) { Your Redirect Here}
if (screen.width==800) { Your Redirect Here }
if (screen.width==1024) { Your Redirect Here }
Hope this is what you need
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web
The wildcard in PHP is a %
E.G.
select * from YOUR_TABLE where SOME_FIELD like '%$dan%'";
Hope this helps
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sens
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-ma
Please ensure that you do actually have the ldap dll, as these do NOT ship
with the windows installer.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORM
the path of the include file withing an included file need to be relative.
I cant remember if they need to relative to the Main script, or the first
include file
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http
dreds of rows. How can I add
all of the values together?
Any help appreciated, cos. I'm stuck!..
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNO
in your lib.inc.php
put localhost as the host value
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Ma
You could try putting this at the top of your script:
ignore_user_abort(true);
Although, if it taking 20-30 mins, then I think you may need to optimize
your code, or get a WinNT box with a bit more boot.
If you want, I can quote
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel
Have you thought of using a cookie?
As PHP is server side, it cannot write to the users machine, only the
server.
JavaScript may be able to help you here though, but I cant think of any
sotrce code that imediatley springs to mind
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel
ggestions would be appreciated
Ben Franske
Ben Franske
Master Technical Wizard
http://www.franske.cjb.net
AOL Instant Messenger: BenFranske
---
Founder, CEO, Owner, President Ben Franske Enterprises
Master Technical Wizard, Edina High School ht
I have this script:
";
}
}
fclose ($fp);
?>
It reads a csv file (actually its tab seperated) into an array called $data.
When I call this in my browser, this is fine. But what I need to do is to
put this information into a MySQL database...
The file contains these fields:
region
event
make sense?
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscri
I have this line of code in a script:
$todays_date=date("dmY");
It generates something like this:
01022001
What I need to do is get something like this from it:
Thursday, February 01, 2001
Um, How?
Thanks in adavance...
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Thanks You guys, that was what i was looking 4
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Mailing
ith the syntax?
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Mailing List (http://www.php.net/)
To uns
)
Year (Numerical - 4 digits)
but this information has to come from the SERVER as the site visitors will
be all over the world, and the date's will be wrong
Thanks in advance
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED
It may be that you need to uncoemment the ldap line in you r php.ini file.
This is under the loadable extensions bit.
I forge the exact syntax, but I know its in there
-- Ben Cairns, Head Of Technical Operations, Intasept.com
E-Mail: [EMAIL PROTECTED] | Web: http://www.intasept.com
try replacing host with localhost
and ensure that MySQL is actually running
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@
ORDER BY POST_ID desc LIMIT
'$lower','$upper'
$lower and $upper are defined from the url.
But that doesn't seem to work. Any ideas?
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://w
I have a script that looks at a web page, parses it and grab the HTML content
between two Tags, then outputs the result to a file.
What I need to do is another script to read this file, remove more text
between two tags, and then display this.
How can I do this?
-- Ben Cairns - Head Of
77 matches
Mail list logo