Hello Guys
I have following code, sorry it's pretty big for posting, i want to
split the output into 2 colomns, been trying almost all still can't
get it working
here the link, with this code online http://funzz.cjb.net/itfaq/kbase.php
--
";
$numOfRows = mysql_num
I have a problem with php (4.0.6) and ldap (openldap sever 2.0.11):
When I use this .ldif file from shell I can enter this value without
problem:
--
dn: cn=pippo, dc=example, dc=it
uid: pippo
cn: pippo
sn: pippo
objectclass: person
objectclass: account
objectclass: posixAccount
objectcla
pkzip's the name.
M:
> Does someone out there know, how I can zip a folder with some files in it?
> It should be readable for Winzip.
>
> Enviroment: Win2000 Server.
> VB was available if useful.
> Additional Components (applications, dll's or whatever) could be loaded if
> needed.
>
> I didn't f
Your query is invalid, hence $test is false rather than a result set. I
usually do if ($test = mysql_db_query( ... )) to trap this. Don't put quotes
around table or field names, in your case 'Port$p' should be just Port$p and
'Port$p'.date just Port$p.date.
Tim
--
From:
On Mon, Oct 29, 2001 at 04:54:37PM -0700, Johnson, Kirk wrote:
> Thanks for the link, Kurt. Can you also point to any authentication code
> examples, or further discussion? The user comments in the manual suggest
> there are at least a couple ways to code stuff, ldap_compare vs ldap_bind.
> Any ad
I am trying to do a joined query using PEAR DB? My code looks something like
this:
$sql = "SELECT wwwpages.pid,wwwpages.name,media.pid,media.name FROM
wwwpages, media WHERE wwwpages.pid = '$pid'";
if(DB::isError($result = $db->query($sql))){
echo "ERROR:" . DB::errorMessage($result);
} else {
w
Hi,
from this command line test:
> select imglocation,height,width from img where imgname='alfstag1'
it looks to me like your imgname field is *characters* rather than *numbers*.
when ever I'm doing something like this (eg WHERE firstName="justin"), I
do it with a LIKE statement, rather than wi
MG PUBLISHING
4865 HWY 138,R.R 1
ST-ANDREWS WEST
ONTARIO, KOC 2A0
PRESS RELEASE
CANADIAN SUBSIDY DIRECTORY YEAR 2001 EDITION
Legal Deposit-National Library of Canada
ISBN 2-922870-01-4
M.G. Publishing is offering to the public a revised edition of the Canadian
Subsidy Directory, a guide cont
All,
I am opening a popup window using the following code:
My popup window then runs some PHP code and finally displays a status
message with a close window button. When the close window button is
clicked I need to close the popup window and refresh the parent window
or alternatively (prefera
Hi!
Where is file upload function? ;) From begining: some time I've found somewhere
this handler:
clearing_report_file is the input that is user sends to me.
if(!isset($clearing_report_file))
{
pp_xfer_trans();
}
else
{
if (!@copy($clearing_report_file, $CFG["loc
> The action for the form is only fired if the onClick="window.close() is
> removed. My question is how can I close the window and refresh or reload
> the specified window.
>
function endWindow()
{
window.opener.location.reload();
window.close();
}
Close Window
M:
--
PHP Ge
Dear Venerable PHP List,
I hope this isn't viewed as impolite on this list. I just wanted to
write all of you to thank you for the immeasurable contributions you
have made to the project I've been working on for the last three
months:
http://www.readfrank.com/
It is a site supporting an Eng
On Tuesday 30 October 2001 20:33, David Yee wrote:
> Well for that example I'm using 0 as the index for the first element of
> the array, so deleting element #2 results in 3 being deleted. BTW to
> correct myself in the second example I gave I want:
>
> $a = (1,2,4,5) instead of (1,2,3,4).
>
> >
Hi all!
Any idea how to use (install) asian fonts on an
english version of RH? I need them in the gd
library, to generate an image with chinese/japanese
text.
any clue greatly appreciated!
Daniel BI
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
> I have following code, sorry it's pretty big for posting, i want to
> split the output into 2 colomns, been trying almost all still can't
> get it working
Harik,
First off, have you checked the manual
(http://uk.php.net/manual/en/function.mysql-result.php) and the
recommendations against th
WoW, thank you very much DL Neil, this is the best reply i've ever got during my
time on the web (since 1994).
--
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-mai
php-general Digest 31 Oct 2001 13:07:32 - Issue 967
Topics (messages 72947 through 73007):
Re: php & mysql prob...
72947 by: David Robley
72948 by: Jason Brooke
72949 by: sc
72950 by: David Robley
72953 by: sc
72955 by: Jim Lucas
72956
Hi,
When I execute:
I get error:
Warning: SQL error: , SQL state 01000 in SQLConnect in
/usr/local/apache/htdocs/odbc.php on line 1
See attachment for phpinfo().
BTW 1
The ODBC config itself works fine. I can make a connection and retrieve data
from the database using a tes
So desperate I even forgot the attachment...
> -Original Message-
> From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 31 oktober 2001 14:40
> To: Php-General (E-mail)
> Subject: [PHP] Desperate: odbc_connect() does not work! Please help!
>
>
> Hi,
>
> When I execute:
>
>
Nope, unfortunately, nothing. It's a really weird problem. It's like the
PHP function I wrote for generating the random image will only work the
first time.
...Rene
> -Original Message-
> From: Hugh Danaher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 10:59 PM
> To: Ren
Sorry, here are my settings:
Configure Command:
'./configure' '--with-mysql' '--with-apache=../apache_1.3.19'
'--enable-track-vars' '--with-custom-odbc=/progress/dlc91/odbc/lib'
ODBC Supportenabled
--
Active
How I made My First Million.
One sunday morning I opened my Outlook Mail-box and read a letter from my good friend.
I live in a small town and I really like the way things go. Never aimed for anything
that big. I would rather prefer a simple life. But there was something in this letter
that su
Please stop that "·$"·%$"·$ sending advertising
Hi,
I have a hopefully simple problem. Look at the following simple script:
This script runs properly on my productive system (Linux, Apache, PHP
4.0.3pl1). But on my Development-System (W2k Server, Apache 1.3.20, PHP 4.0.6) I
always get a Warning, that variable x in not definded.
Ok, thats tr
Thank you all. It now works fine!
I used the way with the add-on for winzip to make it command line able.
There is indeed a command line tool.
First it did not want to work at all until I found out, that the trial
version of winzip wants the user to press a key (in the command line) to
proceed -
On Wednesday 31 October 2001 14:48, René Fournier wrote:
> Nope, unfortunately, nothing. It's a really weird problem. It's
> like the PHP function I wrote for generating the random image will
> only work the first time.
I think it is not php that caches it. As I undertsand you wrote a
script th
>From my php.ini:
;;
; Error handling and logging ;
;;
; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E
I have an equation that results in a floating point. The equation has
no errors and works fine most of the time. When certain values are
passed into the equation I get -1.#IND as the result. I have tried
using round() to limit the size of the number, this hasn't helped, I'm
not ever sure if
in php.ini look for
;;
; Error handling and logging ;
;;
specially for
error_reporting=
and set it properly.
- Original Message -
From: "Harald Witt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 1
Hello,
I want to set member variables out of their class. The code class is:
I access to this class from another php file and want to set this member variable:
$c = new translator();
echo $c->telefono; /* this member isn't set but in constructor method has been
set*/
I have written t
If defined ($x) ???
If !empty ($x) ???
...Well ...
- Original Message -
From: Martín Marqués <[EMAIL PROTECTED]>
To: Harald Witt <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 3:43 PM
Subject: Re: [PHP] PHP-arnings
> On Mié 31 Oct 2001 11:17, you wrote:
Based on the snippet you have sent us you need
to at least start by enclosing your column names
in your accesses to the associative array containing
your results.
Each line just use print_r or var_dump:
while($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
{
print_r($row);
}
This will sh
> Hello,
> I want to set member variables out of their class. The code class is:
>
>
> class translator {
>
> var $nombre;
> var $departamento;
> var $despacho;
> var $telefono;
> var $correo_electronico;
> var $pagina_personal;
>
> function translator(){
> $nombre = array("Nombre","Nam
Try something like this (you'll need to populate it afterward):
$this->array = array();
Then populate it with the data.
Mike Frazer
"Andrzej Roszkowski" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi!
>
> I have to create array of classes.
>
> When I
I retry using the following snuppet:
...
while (!connection_aborted() && !feof($fp) )
{
echo fread($fp, 1000);
}
but nothing change.
I try also with connection_status() and ignore_user_abort(false) but nothign
change.
If the user abort the download progress, the php process hang.
Kraa,
The 01000 error is a 'General Error', probably at connect time.
This suggest that your DSN settings might be bad or not being passed into
PHP.
Is your DSN named "results" and is that the one you are using in your tests?
Also, are you setting your environment variables as appropriate? e.g.:
Apache has a high learning curve. PHP isn't terribly hard to pick up on if
you already know the basics of programming.
Also, you may want to check out the newsgroup
comp.infosystems.www.servers.unix for help with Apache if you continue to
have problems. It appears from all the info you gave us
Hello,
I want to Know how can I save information on a Data Bse that will be access
for many persons at the same time.
I use Postgressql
Thanks.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
PH
I believe you would be getting a number echoed to the screen or dumpfile,
but you want the values, correct?
$telefono is declared as an array. Calling an echo statement on an array
won't give you the values of the array elements. In order to have them all
printed to screen, try:
foreach ($tele
On Wednesday 31 October 2001 02:32 am, you wrote:
> So, I'd recommend giving that a try. From my understanding (limited) of
> MySQL, use = in the case of $id=2, and LIKE in the case of firstName
> LIKE "justin".
Um...you *can* do that, but I don't think you want to. Using LIKE means that
MySQL
Hi
Just yesterday I installed Apache 1.3.22/PHP 4.0.6 to replace an
ancient install of Apache 1.3.9/PHP 3.0.12. This is on FreeBSD 3.2.
I have several sites which display content in different languages using
Apache's AddLanguage, and LanguagePriority directives (page.php.en,
pa
Yeah, I got these kind of warning when I set error_reporting(E_ALL);
Anyway, this shouls do it:
The point is when you get 'non defined var', just define it before, even
empty (i.e, $x = '') or check it with isset();..
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/pro
.
Thanks to Kurt and Justin for the help offered on this simple (now that it
is working) problem.
I do not know where my stumbling block was but after a good nights rest and
some coffee this morning I have this and the GetImageSize function
incorporated.. I will list the code incase someone find
Thanks very much, Stig, very helpful! We are just scouting the technology
right now, so my more precise questions will come later ;) We will be using
SSL. Given that, it looks to me like "decision maker" mode is the way to go?
Kirk
> -Original Message-
> From: Stig Venaas [mailto:[EMAIL
.
Thank you for the heads up on using like. I was wondering since there will
be 2 similar variables from each page var1 var2 (identical except for the
number). I programmed in DataFlex for about 6 years back in the late 80's
early 90's but have not done anything db wise in over 8 years I st
Title: Blank
Recently I have had to defend the use of PHP
in light of a number of screw-ups with the mail function in 4.0+. It seems
that some email addresses will simply "not work" with mail. I have been
shopping around for a smtp direct class ( http://www.zend.com/codex.php?id=347&single=
Blankwhat os was it?!?!?
- Original Message -
From: Matthew Luchak
To: Php-General (E-mail)
Sent: Thursday, November 01, 2001 2:04 AM
Subject: [PHP] defending PHP mail function
Recently I have had to defend the use of PHP in light of a number of
screw-ups with the mail function in 4.0+.
WIN 2000
Blankwhat os was it?!?!?
--
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]
Which addresses won't work?
- Original Message -
From: "Matthew Luchak" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 2:04 AM
Subject: [PHP] defending PHP mail function
Recently I have had to defend the use of PHP in light of a n
My favorite email libraries are ..
SMTP class
http://www.phpguru.org/download.php?script_id=10
And working in conjunction with SMTP class ..
HTML Email Class
http://www.phpguru.org/download.php?script_id=4
-Original Message-
From: Matthew Luchak [mailto:[EMAIL PROTECTED]]
Sent: Wedn
On Wednesday 31 October 2001 07:45 am, turtle wrote:
>
Glad we could help. Also, you can re-write the above so you don't have to
define two sets of tags by doing the following:
";
?>
Not a big deal here, but if you start writing multiple lines of HTML code,
you probably don't want to enc
thats wierd it added blank infront of it all...wierd
it might have been the smtp server its self that had rules or something...
- Original Message -
From: "Matthew Luchak" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 2:09 AM
Subjec
I'd be interested to see an example of an address that will "not work"
Which MTA are you using? On which OS? More info!
(obPeeve): Please don't post in HTML.
Cheers
Jon
-Original Message-
From: Matthew Luchak [mailto:[EMAIL PROTECTED]]
Sent: 31 October 2001 16:04
To: Php-General
The addresses I know about are clients that are already a little peeved
with me so I can't send them out for testing but I have found at least 4
addresses that will "not work" (no error message, just dead air) with
Mail(). It is something about the string of letters that does it
because if I tr
On Wednesday 31 October 2001 08:16 am, you wrote:
> The addresses I know about are clients that are already a little peeved
> with me so I can't send them out for testing but I have found at least 4
> addresses that will "not work" (no error message, just dead air) with
> Mail(). It is something
Well hey, if mail() won't send to those addresses, what's wrong with us
testing them? :-)
Can you send to those addresses from a regular email client? If so, can you
do it from the command line with your MTA?
jon@maya~$ sendmail [EMAIL PROTECTED]
hello there
.
Cheers
Jon
-Original Messa
>Well hey, if mail() won't send to those addresses, what's wrong with us
>testing them? :-)
;)
>Can you send to those addresses from a regular email client? If so, can
you
>do it from the command line with your MTA?
Of course I am talking about valid addresses, in fact there is at least
one
On Wednesday 31 October 2001 08:40 am, you wrote:
> for now it's PHP that's in question
AFAIK, this is the first I've ever heard of probelms with mail() not sending
to perfectly valid email addresses. Scalability issues and other performance
problems, sure, but that's a different animal.
Gi
Hello,
> Matthew Luchak wrote:
>
> Recently I have had to defend the use of PHP in light of a number of
> screw-ups with the mail function in 4.0+. It seems that some email
If you are using Windows, that seems to be a problem that the mail()
function implementation does not handle
SMTP servers
OK. here's why I think it's in PHP's SMTP support:
There is an address that fails in 4.06 yet functions in 4.04 - exactly
the same code, same SMTP server, same .ini, everything the same.
I wouldn't question the class if I hadn't tested my own code and
settings first. I've been trying to trac
Here's what I've got, starting at the top...
==
Title
[SNIP]
[SNIP]
>
==
Here's why I think it's PHP4: If I look at these pages on my local machine
(WinME, Apache 1.3.20, PHP4.06 module, MySQL 3.23.14 (not
On Wednesday 31 October 2001 09:08 am, you wrote:
> It doesn't do much good to test on a nix box because what I'm looking
> for is a solution to a PHP/SMTP problem.
Really? No good at all, huh? I would think that would answer the question
right there if it was an SMTP problem or a problem that
On Wednesday 31 October 2001 18:18, René Fournier wrote:
> Here's what I've got, starting at the top...
>
> ==
> header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');// Date in
> the past header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . '
> GMT'); //
> Really? No good at all, huh? I would think that would answer the
question
> right there if it was an SMTP problem or a problem that lies elsewhere.
If
> you take SMTP out of the equation, and the problem still occurs, then you
> know that's not the issue. If the problem does go away, then you
Yes! That's it! I added that srand function, and it works great. Thanks!
..Rene
> -Original Message-
> From: Tamas Arpad [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 10:58 AM
> To: René Fournier
> Cc: Php-General
> Subject: Re: [PHP] Re: Weird caching problem with PH
I apologize for the only-vaguely-PHP-related nature of this, but I'm
endlessly impressed with the knowledge here.
I'm looking for a way to clamp down a network machine (we're on a T1) to
modem speeds (28 to 52 K) for testing purposes.
Is there software (preferably for Windows) that would do this
On Wed, 31 Oct 2001, Michael Hall wrote:
> I'm looking for a way to clamp down a network machine (we're on a
> T1) to modem speeds (28 to 52 K) for testing purposes.
Well, mod_throttle on the server side will do this for you. Client
side.. hrum. A linux box with bandwidth controls, a packetee
Hi Andrew,
I'm using the Merant DataDirect 3.6 Progress SQL92 ODBC drivers and they
seem to be working fine when I try their test C program. I can connect to
the Progress database en retrieve data.
I'm using their driver manager as well (--with-custom-odbc).
The test C program uses:
SQLConnect
.
Thank you Kurt,
The day for the server to be move from Cal to Fla is the 31st (today)
I would image that it is somewhere in transit at the present time...
Will send you an email with another address you can respond to...
Thanks for all of your help
Mike
"Kurt Lieber" <[EMAIL PROTECTED]
duno about for windows, but there's quite a bit around on packet shaping for
Linux and *BSD which amounts to the same thing - could be worthwhile sticking
an old server in the middle with some different rules on different ports
(i.e. port 81 set up for 14k4 equiv, 82 for 28k8 equiv, etc..)
so
Kraa,
I'm not sure why the two sample apps are using different connection calls;
It's not terribly relevant - both are legal.
Driver manager and driver are not typically dependent on each other, no.
The fact that the connection fails in odbctest is probably due to a missing
parameter that iODBC
Hi,
The problem is that a Progress 9.1c is not available at openlinksw.com for:
Client: Linux glibc2.1 (x86)
Server: UnixWare 7 (x86)
Only Progress 8.3b is supported.
So you are saying that a setting in the .ini files or some environment
variable could be missing.
I will have a look at it.
T
Your files are being uploaded to the pre-defined temporary directory.
$userfile contains the name of the temporary file the file was uploaded as.
After you run all the checks on the file to make sure its valid, you should
use copy() to move the file to its permament home in your file system, then
In perl I do something like this:
if (!($ENV{'REMOTE_ADDR'} =~ /\b(132\.210)/))
or
... $ENV{'REMOTE_HOST'}
PHP is not Perl. So how do I parse the user's remote address or host to
display one thing if IP = 127.0.0.1, another if = 209.247.2.3 another if
host = "remote.somewhere.com
Hi list,
I have recently installed qmail-1.03 now what settings should I make in
php.ini file to send email with mail() function. Thanks.
if ($REMOTE_ADDR=="127.0.0.1") {
do something
} elseif ($REMOTE_ADDR=="remote.somewhere.com") {
do something else
} else {
eeks! its the end
}
List of all the predefined variables:
http://www.php.net/manual/en/language.variables.predefined.php
--
Liz Fulghum
-
If you have installed Qmail and removed Sendmail create symlinks to the
qmail sendmail wrapper and you should not have to edit you php.ini. Read
the qmail INSTALL file for more.
# ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
-Original Me
Kraa,
Sorry for the confusion; we should have that component available by the end
of the week.
Best regards,
Andrew
> -Original Message-
> From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 2:50 PM
> To: '[EMAIL PROTECTED]'; Php-General (E-mail)
> Subjec
I't just came into my mind, if 1 simple split that arrey in to 2
arrays, it would be much simplier and wouldn't need second loop, i
just wanted to know how can i split 1 array in 2 arrays
Thank You
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Good evening
I was wondering how can I split, array that has 60 elements in it,
into 2 arrays with 30 elements each?
Thank You very much and have a good night :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
Based on what criteria? if you just want to split the array at element 30,
you could use array_splice to get the necessary data...
- Original Message -
From: "Daniel Harik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 2:16 AM
Subject: [PHP] split array in 2
Want to split it in half
1 Big array:
1
2
3
4
5
6
Want to make
1 Small array:
1
2
3
2 Small array:
4
5
6
Thank You
--
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 administr
take a look at the manual
http://www.php.net/manual/en/function.array-slice.php
it will show you the right way to do it
jim
- Original Message -
From: "Daniel Harik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 11:25 PM
Subject: Re[2]: [PHP] split arra
$smallarray1=array_slice($bigarray,0,3);
$smallarray2=array_slice($bigarray,3,3);
On Wed, 31 Oct 2001 23:25:55 -0800, Daniel Harik wrote:
>Want to split it in half
>
>1 Big array:
>
>1
>2
>3
>4
>5
>6
>
>Want to make
>
>
>1 Small array:
>
>1
>2
>3
>
>2 Small array:
>4
>5
>6
>
>Thank You
>
>
--
M
Don't forget that you should clear out that memory space, especially if it's
an array of arrays or an array of objects or something along those lines:
unset($bigarray);
Just good programming practice, that's all. I doubt it would ever be a
problem on today's servers, but it's still a good idea.
Or do you really want: First array:
1
3
5
Second array
2
4
6
Corresponding to the two columns across the screen, and controlled by the same
iteration index?
=dn
- Original Message -
From: "Daniel Harik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 01 November 2001 07:25
Subject:
On Wed, 2001-10-31 at 10:23, Michael Hall wrote:
> I'm looking for a way to clamp down a network machine (we're on a T1) to
> modem speeds (28 to 52 K) for testing purposes.
>
> Is there software (preferably for Windows) that would do this? Better yet,
> would this software be free?
I've not us
You could also grab the midpoint of the array:
$count = round(count($array), 0);
then populate your new arrays by using a foreach loop:
$x = 0;
foreach($array as $key => $value) {
if ($x <=$count) {
$array1[] = $value;
} else {
$array2[] = $value;
}
$x++;
}
"D
You may find this helpful:
$arr = array('a','b','c','d','e');
$second_half = array_splice($arr,floor(sizeof($arr)/2));
print_r($arr); // Array ( [0] => a [1] => b )
print_r($second_half); // Array ( [0] => c [1] => d [2] => e )
In the above, $second_half will be one la
Correction:
$count = count($array);
$count = $count/2;
$count = round($count,0);
"Liz Fulghum" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You could also grab the midpoint of the array:
>
> $count = round(count($array), 0);
>
> then populate your new arra
I'm working on my first shopping cart web application (done in php) and have
started to look into ways to secure it. After reading up a little bit on
mcrypt I have some basic questions about it:
1. If I use mcrypt to encrypt user input before storing it in a database,
do I have to use it in
"Mike Eheler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Beyond that, why not keep it conforming to HTML, and use an tag,
> for example:
>
> This is some text .
>
> That way if you need to view the page "as-is" in a browser or whatever,
> it'd still look f
"Dl Neil" <[EMAIL PROTECTED]> wrote in message
042101c157f6$4cd9fb90$c014100a@jrbrown">news:042101c157f6$4cd9fb90$c014100a@jrbrown...
> Two inter-dependent problems:
> 1 a means of identifying a cipher within the text
> 2 a means of replacing the cipher with HTML code
Succinctly stated.
>
"Yz James" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey John,
> something like this might work:
>
>
> $string = "This is a string with an embedded image [bird.gif,this is a
> bird]";
>
> $string = preg_replace("/\[(.*?\.)(gif|jpg),(.*?)\]/i", " alt=\"\\3
More generally, this should work:
$smallarray1=array_slice($bigarray, 0, sizeof($bigarray) / 2);
$smallarray2=array_slice($bigarray, sizeof($bigarray) / 2);
I haven't tested it though...
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 4:32 PM
I'm not having an easy time understanding the discussion
in the doc for eval().
I want to read this string from a file:
xxx zzz
and then "run" it.
I tried this code:
zzz';
eval($string);
?>
but I get
"Parse error: parse error in eval.php(11) : eval()'d code on line 1
Do I h
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (John A. Grant) wrote:
> I tried this code:
> function somefunc($text,$n)
> {
> for($i=0;$i<$n;$i++){
> echo $text;
> }
> }
> $string='xxx zzz';
> eval($string);
> ?>
>
> but I get
> "P
Hello,
I am trying to get php4 to use mssql function under WindowsXP. I don't
know if this is a problem or not.
I uncommented the extensions line in the php.ini file that says:
extension=php_mssql.dll
But when I try to use mssql_connect it says call to undifiened function.
Does anyone know a
Hello,
Since I am not able to get msssql functions running. Can someone please
give me instructions on exactly what I need to do to get the functions
werking?
Thanks Brandon
In article <01A4B59FD1EBD311838100A0C98BE0D9AD5D91@chef>,
[EMAIL PROTECTED] (Kirk Johnson) wrote:
> The manual at http://www.php.net/manual/en/language.types.array.php mentions
> that "empty" and "default" are "special keywords". Does anyone know of any
> lists of PHP's predefined constants and
1 - 100 of 130 matches
Mail list logo