While looking thru php funcions (mixed ora_getcolumn ( int cursor, mixed
column) in partucular)
I came across type MIXED. What does that mean? There is no such type
mentioned in the php
docs under TYPES section.
thanks.
max.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Hello,
Looking for statically linked pre compiled ImageMagic binaries (convert,
mogrify, ect.) to run from the cgi, with PHP exec on FreeBSD.
thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Is exist something similar in PHP?
Regards.
Max.
--
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]
Hi,
If I use die or exit() it break execution of php script but also
browswer stop parsing html code. How to avoid this?
Regards.Max.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the li
Hi to all,
I'm using this to get date from mySQL database:
...
$p_datum = $row["mydatefield"];
$mydate = getdate($p_datum);
$month = $mydate['month'];
$mday = $mydate['mday'];
$year = $mydate['year'];
..but I allways get 1/1/1970.
Can anybody help me?
--
PHP General Mailing List (http://
27;t work ... :(
(I've restarted my apache server)
Can anyone help me, please?
many thanks in advance
max
--
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]
Hello all,
$x = array(03,04,08,10);
$y = array(100,110,120,130);
I need these arrays be converted to:
$x = array(01,02,03,04,05,06,07,08,09,10,11,12,13);
$y = array(0,0,100,110,0,0,0,120,0,130,0,0,0);
Can somebody give an answer ?
Thanks.
Max
Hello all,
I have two arrays as follows:
$x = array(3,4,6,8);
$y = array(10,20,40,10);
I need these arrays could be merged with '0' in between.
Result expected :
$x = array(1,2,3,4,5,6,7,8);
$y = array(0,0,10,20,0,40,0,10);
Can anybody help me ?
Thanks in advance.
Max
Arr = array();
> $newArr = array_fill(0, $n-1, 0);
> for($i=0;$i $newArr[$x[$i]-1] = $y[$i];
> }
> print_r($newArr);
> ?>
>
>
> "Max" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hello all,
>
> I have two arrays
> In this case are you sure that the file is being sent via proc_open()? can
> you provide a simplified script that does this?
Sure, here's a test script, the output from it, and a few words on the email I
receive:
array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "/tmp/err
> can you proc_open() anything else and get it to accept more than 16KB ?
> also 4.4.1 is out.
No, I've just tried the same with /bin/cat, I get the same result, i.e.:
array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "/tmp/error-output.txt", "a")
);
$text = "";
for ($
Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an
error in the log file, which will perhaps help trace the issue:
cat: stdout: Broken pipe
> The output is:
> 10240
> 6144
> which makes up exactly the magic 16384 bytes. So it's certainly not a
> qmail issue.
--
Hi-
How can I control the decimal places returned by an arthimetic function?
I would like this divsion function to only return two decimal places
(rounded up).
$calcsize = $value / $oneGig;
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Warning: socket_connect() unable to connect [60]: Operation timed out in
/usr/home/maxc/public_html/admin/functions.inc on line 66
Is there any way to time out this function? I only want to wait 5 seconds.
Thanks in advance,
Max
"Johannes Schlueter" <[EMAIL PROTECTED]> wrote i
Hi-
I was wondering if someone could help me with a regex to test for a valid
domain name (foo.com).
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi-
Warning: socket_connect() unable to connect [60]: Operation timed out in
/usr/home/maxc/public_html/admin/functions.inc on line 66
Is there any way to time out this function? I only want to wait 5 seconds.
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To
advance,
Max
preg_match ("/\:\[(\S+)\]\:(\S*)/",$transport,$matches);
print_r ($matches);
$tranport = ":[127.0.0.l)";
print_r ($transport) -> Array ( )
** I want this to return "127.0.0.1"
$transport = "smtp:[64.70.36.4]:25";
print_r ($tr
Hi-
I was wondering anyone out there is using the verisign payflo product with
php and could share their experiances with me.
Are there good alternate choices that I should be looking at?
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Hi-
I was wondering if php had a case function?
Instead of building a large if/elseif/else block I would like to do a case
$page in (list).
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
redirected to if they did not have a valid
session id.
I removed the session handling and ... success!
This is not an acceptable solution because I need the
session to be valid.
Any help would be most appreciated.
Thanks,
Max
--
Oz Impact Multimedia
Innovate, Immerse, Inspire
www.ozimpact.com
Are they things like
php45a45s879a787g54a21s3a12g3a21s31a3a?
If so, yup i know the feeling
297,548,197 of them using up 128GB of storage on my HD!
Don't worry
They're just sessions
Oh and don't worry
Unless your site is a huge wooper with 500,000 - 1,000-,000 users loggin in
a day, you won't get hu
Hello there.
Basically I'm trying to make a file manager with PHP.
Here's what I need to do
Ok I have artists and coders working for my site
No FTP
I want them to be able to upload/download files from me as and when they
please without having to email me the files
The files that will be uploade
You on MySQL?
If so do this
UPDATE tblName SET firstcol = '$var41stcol', $secondcol = '$var42ndcol'
and so on
"Steve Jackson" <[EMAIL PROTECTED]> wrote in message
01c2c3a0$27591b50$[EMAIL PROTECTED]">news:01c2c3a0$27591b50$[EMAIL PROTECTED]...
> I am having trouble with this.
> I need to up
It can be done with ASP and JSP. ROFLMFAO! No it shouldn't be reported to
their bugs database! It's not a bug! It just isn't a feature of PHP! You
could suggest it to them though...
"Victor" <[EMAIL PROTECTED]> wrote in message
01c2c34a$0ee9e140$237b7018@JUMPY">news:01c2c34a$0ee9e140$237b70
www.php.net/manual
"Beogradjanin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Zdravo php-general,
>
> Hi I have setup PHP Apache MySql.
> I;m new in this stuff where can I learn hot to make web pages in
> PHP...???
>
> +++Info About this E-mail+
I am trying to populate array values and keys from a variable with no
luck.
Lets say I have the following array.
$data1 = array('ONE'=>1,'TWO'=>2,'THREE'=>3,'FOUR'=>4);
And I want to create part of the array with the string below:
$str= "'THREE'=>3, 'FOUR'=>4";
$data2 = array('ONE'=>1,'TWO'=
se, Help dynamicaly creating an Array
Try eval(), like this:
$str= "'THREE'=>3, 'FOUR'=>4";
eval("\$data2 = array('ONE'=>1,'TWO'=>2,$str);");
Max Sullivan wrote:
>I am trying to populate array values and keys from a var
Hi,
I use : apache 1.3.26, php 4.2.3, postgresql 7.2 (under solaris 7).
I attempt to modify my old sources which run with the previous versions
and I meet a problem with the cookie.
I read that we can see the contents of a cookie with 2 methods :
echo $testcookie
echo $_COOKIE["testcookie"]
lem.
>
> There is an option in your ini.php file that refers to 'global variables'
> You need to set this on, otherwise reference to them with the absolute
> variable name.
>
> Best Regards
> Bob Irwin
> Server Admin & Web Programmer
> Planet Netcom
> -
Hi,
I wish test the session. I use php 4.2.3 et session.auto_start is 1.
My first example is :
Session example
";
echo "hello ! : $cpt times";
session_unset();
session_destroy();
}
?>
I don't find the solution to use setcookie ; I try the two instructions
above (the script is
Marek Kilimajer wrote:
>
> You miss closing }
>
Thanks, but that's a copy-paste error and that's not my problem really.
mb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Max Buvry wrote:
>
> Marek Kilimajer wrote:
> >
> > You miss closing }
> >
>
> Thanks, but that's a copy-paste error and that's not my problem really.
>
> mb
Solved : my solution for information (before test with url !)
5 )
{
$cook_par
I meet a probleme with the session.
My example considers 2 scripts :
- the first script (test_session_url.php) opens a session
(session.auto_start=1 in php.ini), defines a counter,
prints some information and an hypertext to execute the second script
which
has session id as parameter
---
Hi,
I use php 4.2.3 with session.auto_start = 1 in php.ini
What I use with URL session :
$_SESSION= array();
unset($_GET[session_name()]);
session_destroy();
Header("Location: next_script.php");
with cookie session :
$cook_param= session_get_cookie_params();
$l
Hi,
I use Postgresql 7.2.2 + php 4.2.3 and I meet a problem with
transaction and connections interruption.
The application is the famous example of the bank accounts and the money
transfers. I consider a table named "DEAL" where each transaction is
saved. Each tuple has an id number as key. When
ased - http://asp2php.naken.cc/ is the link.
> Also it is using a MSSQL database if that helps at all.
>
> Thanks
> Brandon
>
Max Pyziur BRAMA - Gateway Ukraine
[EMAIL PROTECTED] http://www.brama.com/
--
Hi.
Why doesn't PHP convert mutiselect values with plain names (not array-like)
to arrays. Is there any reason to not doing this?
Example:
I have a page with multiselect, which name is SEL1
(I cannot use square brackets because I need to use a JavaScript on the
page, so, it's not allowed in varia
""Chad Guilette"" <[EMAIL PROTECTED]> wrote in message
000701c0d962$d28fb670$0100a8c0@optimus">news:000701c0d962$d28fb670$0100a8c0@optimus...
> I'm currently working on a project and I've come across a problem which
I'm
> sure has been discussed several times before but I still need some
> assist
= mysql_fetch_array($sqlresult)) {
$username = $row['username'];
}
}
The count value is set correctly but: when the while() loop is
executed...no values are set (there are a lot more, but I shortened it for
spaces sake). So, $username is null. If I remove the $count line, it
works
I've tried using $HTTP_COOKIE_VARS to get information about the cookie has
been passed to the current script but I always get a cookie size of 1
containing no information. I have also tried using $_COOKIE but with no
success. I'm running apache1.2.23 and php 4.1.2. Suggestions?
Max
We have PHP and APACHE (1.3.19) installed and an instance of apache is
running with php support enabled.
I need to set up another instance of httpd using a seperate config file.
However I cannot get PHP support enabled.
I cannot find where the PHP modules are. I called a phpinfo() on the
instan
I have an Apache server built with mod_php4.c linked into the executable.
e.g.
bash-2.03$ httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_php4.c
mod_perl.c
What changes do i need to make to http.conf before I can use php in web
pages which will work please?
--
Thanks lot
Is that all?
> Probably something like:
>
>
> AddType application/x-httpd-php .php4 .php3 .phtml .php .inc
> AddType application/x-httpd-php-source .phps
>
>
> On Thursday 28 March 2002 23:40, Max Wilson wrote:
> > I have an Apache server built with mod_php
refix] filename
*** Error code 1
Stop in /usr/home/maxmouse/php4/Zend.
*** Error code 1
Stop in /usr/home/maxmouse/php4.
Now, here's the specs on my machine FreeBSD 4.4-Release, libtool-1.4.1,
bison-1.30, autoconf-2.13, automake-1.4-p5.
Any ideas?
Max
--
PHP General Mailing
ility which I find very helpful - 'catdoc'.
It's homepage is:
http://www.ice.ru/~vitus/catdoc/
> hope that helps
>
> regards
>
> Ankur verma
> HCL Technologies
> Noida
> India
Max Pyziur BRAMA - Gateway Ukraine
[EMAIL PROTECT
Either recompile PHP as a cgi OR use lynx to do it so:
lynx -dump http://www.mysite.com/myscript.php
You can then collect the output in the usual ways.
M
> --
> From: AJDIN BRANDIC[SMTP:[EMAIL PROTECTED]]
> Sent: 21 June 2001 09:07
> To: [EMAIL PROTECTED]
> Subject:
l.
http://nikosoft.free.fr/nswm.htm
For freshmeat's listing check here:
http://freshmeat.net/search/?q=webmail
> TIA
>
> Adrian
Max Pyziur BRAMA - Gateway Ukraine
[EMAIL PROTECTED] http://www.brama.com/
--
PHP Genera
$expire = date("l, d-M-y H:i:s", ($time));
setcookie("cookiemonster", $cookiedata, $expire, "/", "domain.com.", 1);
It needs to be secure, hence the 1. Also, I need the domain to be
"domain.com" and it cannot be www.domain.com. Can anyone
Can anyone suggest a decent IDE for php? Currently, I'm using phped and I'm
not overly happy with it's performance...
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To c
Is there any way to see whether or not the cookie setting has actually
worked without going to another page? I suspect there isn't but I'd like
confirmation ;)
Cheers
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
Header redirect isn't vaiable in this situation.
> --
> From: Jason Radley[SMTP:[EMAIL PROTECTED]]
> Sent: 31 August 2001 17:00
> To: Galvin, Max
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Setcookie
>
> $alertthem = &quo
I want to be able to include a graphic or something of that sort in a form
mail (using mail() from ). Is this possible?
Max
--
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
apache reply with content-type: text/html for
.html PHP4 documents.
Apache Version Apache/1.3.20 PHP/4.0.6
Could you help me, please.
--
Max Kluev
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
ect format and
the domain actually exists. Can anyone lend a hand?
Max
--
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]
best way to do this?
Max
--
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]
p on line 82
Thanks so much in advance,
--
Cheers,
Max
GNU/Linux - User #477672
PGP: 0x6C29B594
2010/1/18 Ashley Sheridan
> On Mon, 2010-01-18 at 12:20 +0000, Max Zimmermann wrote:
>
> Hello everybody,
>
> I have chosen this list because my problem is related to one particular
> style of php installation. At least I think so.
>
> I'm running php 5.2.11 and ple
2010/1/18 Richard Quadling
> 2010/1/18 Max Zimmermann :
> > 2010/1/18 Ashley Sheridan
> >
> >> On Mon, 2010-01-18 at 12:20 +, Max Zimmermann wrote:
> >>
> >> Hello everybody,
> >>
> >> I have chosen this list because my problem
2010/1/18 Robert Cummings
>
>
> Ashley Sheridan wrote:
>
>> On Mon, 2010-01-18 at 12:20 +, Max Zimmermann wrote:
>>
>> Hello everybody,
>>>
>>> I have chosen this list because my problem is related to one particular
>>> style of php i
wrong?
Greets, Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
did in the example shown above.
Is there any way to avoid this or a build in function to strip
that crap??
greets,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
// perform the reg exp replacement
$out = preg_replace($pattern, $replacement, $in);
echo $out,"\n\n";
[EMAIL PROTECTED]:~$ php preg.php
this is a string : "Hi everyone my name is \"Mathieu\"!" Here is
a second string : "PHP is just perfect"
Is this rigth?
--
Max Anotnov (idler at instanceof dot ru)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
send direcly to my mailbox)
--
Max Anotnov (idler at instanceof dot ru)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jochem Maas :
mathieu leddet schreef:
Thanks a lot Max (and Jochem), you solved my issue.
PS - you solved the issue but did you learn what a [negative] look
behind assertion is?
Mathieu, I agree with Jochem.
If you periodicaly solve issues, such this - you must know about behind
Teck wrote:
Hi,
I'm trying to find a way to get part of a string where the part is
matched with regular expressions.
So, for example, if I have a string:
a2b3cd5ef6ghi7232jklmn
I need to grab "12b3cd5" using regular expressions and store the part in
a variable.
$var = do_something("",""
Captain wrote:
hi,
i want to do YES/NO confirmation (like POPUP). If YES, it will upload a file
PHP is server-side, not client-side. You can have the confirmation
passed as a GET variable in a two-step process for example, i.e. first
show a confirmation form if $_GET["confirm"] is not set, el
Captain wrote:
My requirement is, i want to upload one file. i am checking whether it
exists or not in Server side.
Your script will have to work in stages, generating a page and sending
to the browser on each stage:
1. Make a form to upload a file for the user to submit - this is just
ordina
Ron Piggott (PHP) wrote:
Is there a PHP function which verifies a valid date has been entered
(-MM-DD)? Ron
http://www.php.net/manual/en/function.checkdate.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Taylor-Johnston wrote:
How can I use "if" to see an array contains something?
if (sizeof($array)) ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Whatever form information you want to pass has to be part of the form.
WILLEMS Wim (BMB) wrote:
In the second script, the value of this will be in $_POST["database"].
$wim isn't part of your form - it will /not/ get saved into the next PHP
script. You can handle it through input type hid
of course your contact information.
Thanks,
Max
max [at] clarksys [dot] com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pdf's either.
Never used it myself, but FPDF says it can do this using the FPDI
extension.
http://fpdf.org/en/FAQ.php (see item 17)
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- that's print
quality for text. But the image should be at print resolution, i.e.
300DPI or better, preferably a 24-bit PNG.
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
abstraction layer such as ADODb or PEAR::DB (there are lots of others).
You'll commonly find convenience functions to do things like output
query results into an HTML table. Why waste time debugging the wheel?
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t got pretty out of date anyhow. php-editors.com is a good alternative
suggestion.
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n just that app under php 4 cgi until the vendor updates to support
php 5. Google is unusually laconic on this, but perhaps I just offended
it with too many daft queries on the subject... :)
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www.php.net/)
El Bekko wrote:
Max Schwanekamp wrote:
Can anyone offer or point me to a summary of differences between
running php as an Apache module vs as a cgi executable? Specifically,
I'm wanting to upgrade our servers to php 5 but there is one crucial
third-party app we're using that still
,
Max
Add an Entry
First/Last Names:
Address:
City/State/Zip
Telephone Number:
Email Address:
";
} else if ($_POST[FirstName] != "") {
//time to add to t
for a drop donw inside the
element, the code doesn't work, and I get a parse error. The code will
work outside the element.
I assume I am just missing something dumb. Could someone please
enlighten me. I can post my code if it will help.
Thanks,
Max Krone
--
PHP General Mailing List
Hi everyone,
I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0,
FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a
buffer are accepted perfectly, which makes it an exact 16 KB. If a
buffer is larger, the rest is discarded. No errors appear anywhere - and
Hi list,
after upgrading to PHP 4.4.1, I'm having the following problem: Apache is
running in prefork mode. index.php includes func.php, which defines some
functions and connects to MySQL. For a while (1-2 requests) everything runs
ok, except mysql sockets keep stacking up. And then - wham
> Try using require_once or include_once
Well, here's all the fun starting. This is relatively long, but please bear
with me.
First of all, yes, I did include_once, require_once, even resorted to "if (!
$inc_done) include_once("func.php")", and setting $inc_done in func.php.
No-go, was still gett
On Saturday 05 November 2005 17:49, James Benson wrote:
> > I've had a different set of scripts employing a different "func.php".
> > However, in both of those, mquery() is defined. But
> > they do *not* include anything else, and the
> So you defined mquery() in both files and one include's or re
> It would also be helpful to see the mquery() script - maybe someone else
> may know more then!
Well, mquery is simply "mysql_query($query);", in the stipped-down version
I've had to resort to for testing. Basically, does nothing, since even
mysql_connect that USED to be at the start of func.
> I cant see this being an issue with PHP because it would do that for
> every function, have you tried using a different function, something
> simple say,
I've been trying it in various ways - for the simplest functions, it takes
hundreds of request to appear, for the more involved things whic
> Maybe the following [1] thread on the FreeBSD ports lists does help you.
> I (and the other sysops/users of this machine) are waiting for a patch
> for this problem
> You're not the only one :-)
> [1]
> http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027038.html
Oh, thanks a lot!
I've been having a problem with PHP 4.4.1 and mod_rewrite, which, as Geert
Booster kindly pointed out, has been reported on
http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027038.html,
which also has a link to the PHP bug report in the thread. Not sure if this
is relevant to PHP5
Google "sql injection php" or something like that and you'll
get lots of resources. E.g.:
http://dev.mysql.com/tech-resources/articles/guide-to-php-security.html
PS - Hello all! This is my first post to the list; I've been lurking
for a week or two.
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Which version of PHP are you using? On php 4.4.0 (SuSE 10.0 default RPM, not
custom build, so perhaps I'm missing some extras you're using?) the following
script works fine:
I get no boo. intval doesn't convert my "ten" to a number. Moreover, the
output of the following:
produces an e
If I misunderstood the intval part of your post, than the [proposed already]
is_numeric solutions are the way to go. is_numeric will, however, unlike the
conversion functions, return false if there's anything but a number in the
string, so, i.e., is_numeric ("10a1") will return false, but intv
te, has anyone had an issue with PHP and mod_rewrite of the same
nature on a non-FreeBSD install?
Thanks!
Max.
On Tuesday 08 November 2005 21:07, Geert Booster wrote:
> I've seen this problem on a FreeBSD 5.3 machine with Apache2 and PHP
> 4.4.1_1. The problem looks to be a proble
I have had various problems with upgrading one or the other, until I took it
as a rule to recompile both upon an upgrade. On the machine I do things
completely manually on [which has it's drawbacks], I generally also upgrade
to the current version of PHP together with any Apache update, and
v
the user typing 11l when they mean 111
B) you don't want to accept a value of 0
In principle, that's the only problem with "intval" - a "0" will evaluate
as false in a logical statement. Unless one wants to make sure it's a full
number from start to end, o
ion, not PHP. That said, what you're describing is
INSERT...SELECT syntax. In your example, something like:
INSERT INTO mytable (name, code, price)
SELECT 'NEW', code, '33' FROM mytable
WHERE name = 'BASE' /* or whatever rows you need to copy */
Suppor
s too spare, PhpMailer is
reasonably quick and has proven quite stable (I've built a couple
newsletter apps using it). What's the advantage of Richard's package
vs. the Pear one (on which he is a lead dev) vs. PhpMailer?
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP
John Nichel wrote:
Jay Blanchard wrote:
[EMAIL PROTECTED] ?
I am getting failure notices out the wazoo for some very old messages
to the
general list.
I am too.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
recordset array
$recordset = array();
for($i=0;$i<$recordcount; $i++)
{
$recordset[] = mysql_fetch_assoc($db_cursor);
}
//clean up, etc. [omitted]
Then use array_walk() or similar...
HTH
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www
If this is on the same web page, your question has nothing to do with
PHP - look into, i.e., JavaScript.
suresh kumar wrote:
hi,
i am using 2 combo box one for country & another
one for city.when i select country name from combo box
their corresponding city names has to be changed in
their c
49); // 7 weeks = 49 days
Test:
echo 'Last Sunday\'s date was '.date("m/d/y",$lastsunday);
echo '7 Weeks prior to Last Sunday, the date was
'.date("m/d/y",$sunday7weeks);
--
Max Schwanekamp
http://www.neptunewebworks.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 115 matches
Mail list logo