format_mysql_string($string)
{
$string = StripSlashes($string);
$string = ereg_replace("'", "''", $string);
return $string;
}
Reuben D. Budiardja
At 09:19 PM 3/12/01 -0600, Kenneth R Zink II wrote:
My MySQL insert statements is returning errors when a fi
You can use the built in number_format function.
Check out:
http://www.php.net/manual/en/function.number-format.php
Reuben D. Budiardja
Web Database Application Programmer / Analyst
Devcorps, ITS
Goshen College, IN 46526
At 10:40 AM 3/19/01 -0700, Karl J. Stubsjoen wrote:
Hello,
Has anyone
want to make some methods/functions private,
for security reason.
Thanks for any help.
Reuben D. Budiardja
--
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
. But the idea basically is
download everything first from server side, and display what is necessary
from client side. That way you minimizing the reload/refresh, which take
painfully long time for some of the clients.
Hope that helps
Reuben D. Budiardja
Reuben D. Budiardja
Web Database Application
only a certain file/page can call that pseudo-private method, by
checking which page call that method.
Please let me know if you find any further information on this. Thanks in
advance
Reuben D. Budiardja
At 06:26 PM 3/28/01 +0100, Peter Van Dijck wrote:
say you include a function in a page
hen in the array, do:
$make = array('Make','12','keyword','1:30','select', $temp_option ,'text');
Hope that helps.
Reuben D. Budiardja
At 06:35 PM 3/31/01 -0600, Kenneth R Zink II wrote:
I'm trying to figure out how to do a WHILE inside of an array.
Here is the while statement.
$modyear = "
appreciated.
Thanks.
Reuben D. Budiardja
--
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]
that will
be greatly appreciated.
Thanks.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
( [name] = timecard.png [type] = image/png
[tmp_name] = none [size] = 0 ) )
You see that [tmp_name] is none (whatever that means), and size is zero.
why is that?
The webserver and the browser is on local LAN, and there is no firewall.
Thanks for any help.
Reuben D. Budiardja
On Wednesday 13
at /home/web/.
Thanks for your help.
Reuben D. Budiardja
On Wednesday 13 February 2002 09:31 pm, Lars Torben Wilson wrote:
On Wed, 2002-02-13 at 18:26, Reuben D Budiardja wrote:
Thanks. I follow the manual. I changed my php.ini:
upload_tmp_dir = '/home/web/'
which is writable by web
On Wednesday 13 February 2002 09:57 pm, you wrote:
On Wed, 2002-02-13 at 18:53, Reuben D Budiardja wrote:
print_r $HTTP_POST_FILE gives me:
Array ( [userfile] = Array ( [name] = timecard.png [type] = image/png
[tmp_name] = /home/web/phpZKBTak [size] = 38656 ) )
But I still can't find
Aha Yes, it works fine now. Again, thanks a lot.
Rdb
On Thursday 14 February 2002 12:18 am, you wrote:
On Wed, 2002-02-13 at 19:18, Reuben D Budiardja wrote:
Yes, I have. I follow the example exactly from
http://www.php.net/manual/en/features.file-upload.php.
Well, that's the problem
Hi,
Is there any easy efficient way to re-number the array index? for example,
if I have an array with only something like:
$arr[1] = t
$arr[4] = e
$arr[7] = s
I would like the index to be re-numbered so that I can have
$arr[0] = t
$arr[1] = e
$arr[2] = s
This is useful sometime because a
/usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: invalid ELF header
/usr/local/apache/bin/apachectl start: httpd could not be started
Any help on this would be greatly appreciated. Thanks in advance.
Reuben D. Budiardja
--
PHP General Mailing List (http
You can use the one or the combination of:
date();
mktime();
strtotime();
eg:
echo date(l, strtotime(22 July 2003));
Check the php online doc for explanation of each function.
Rdb
On Tue, 2002-07-23 at 20:24, Cirkit Braker wrote:
Is there any way to get the day of the week given a date.
On Tue, 2002-07-23 at 21:35, David Robley wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
I tried to upgrade from PHP 4.2.1 to 4.2.2 due to the security bug
announce in the web site. When I do make install, it stopped with
errors. The following are the last few lines
and start with un-tar the
download. Many times. But still no luck.
Thanks.
Rdb
Ian
On Wednesday 24 July 2002 14:13, Reuben D. Budiardja wrote:
On Tue, 2002-07-23 at 21:35, David Robley wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
I tried to upgrade from PHP 4.2.1
Hi, Thanks for the reply, but somehow I got it to work yesterday.
Someone else in this list pointed out the same problem and file a bug
report. They say it's fixed in CVS.
http://bugs.php.net/?id=18522edit=2
Reuben D. Budiardja
On Wed, 2002-07-24 at 19:49, David Robley wrote:
In article
a function that is fully compatible with
str_replace for php 4.0.5, but case-insensitive (something like
stri_replace). I don't really want to reinvent the wheel here.
Thanks in advance.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
labourious to change them
to reg exp.
There should be something simpler and more elegant to do this.
Thanks.
Rdb
J
Reuben D Budiardja wrote:
The feature that I use in str_replace is to put the 'search' and
'replace' argument as an array, as described in the documentation for php
= 4.0.5
the wheel. If anyone knows about this,
please let me know. I appreciate the help.
Thanks in advance.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
But Thanks for the reply.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
happens if the user suddently, for some unknown
reason, want to delete all the cookies in the middle of doing the
survey? I don't know for sure but they are also cookies limitation for
storing data. So my advice, always try to use server side solution for
something like this.
Hope this helps.
Reuben D
On Friday 02 August 2002 10:02 am, lallous wrote:
I have this:
//file1.php
?
include('../libs/lib1.php');
?
now lib1.php:
?
include ('helper.php');
?
If i run file1.php -includes lib1.php - fails to include helper.php ! !
how can i solve that?
We need more information that this.
On Friday 02 August 2002 10:41 am, lallous wrote:
I mean this:
i have this tree:
./libs/*.php
./user/file1.php
now i'm in ./user/ directory
i run file1.php
it includes ../libs/lib1.php which in turn will include helper.php
(./users/helper.php) -- will fail!
how can i programmatically
wondering if php can access the
database, just like the way it does with MySQL, for example.
I am not really familiar with M$ stuff, since I usually use MySQL or Oracle.
But I have a client who insist to use M$ Access.
Thanks for any respond.
Reuben D. Budiardja
--
PHP General Mailing List (http
quote instead of double quote. I have to escape all the
single quote, since the HTML code is also intermix between HTML and
javascript, which has single and double quotes.
How do I best solve this problem? Thanks a lot for any response.
Reuben D. Budiardja
--
PHP General Mailing List (http
all html. and dont care about special signs.
goodluck.
Martin
Reuben D. Budiardja [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all,
When using Apache web server, with php module, I can intermix between HTML
code and PHP. But when using PH
workaround?
Thanks.
Reuben D. Budiardja
--
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]
Take a look at the function array_merge
http://www.php.net/array_merge
Reuben D. B
On Friday 17 August 2001 08:46 am, you wrote:
say I have
$array1 = array(name=NULL,thread=NULL,id=NULL);
$array2 = array(0=fred,1=3,2=);
I want $array1 to have the values of array2 - or $array2 to hve
.
How do I pass the array to the javascript function? If someone could help
me, I would really appreciate it.
Thanks in advance.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Use number_format() function.
See http://www.php.net/manual/en/function.number-format.php for detail.
Reuben D. B
At 11:22 AM 5/9/01 -0700, Gerry wrote:
Could you suggest a function for displaying decimal zeros.
For example I have this:
$num = 2.00;
$num2 = 3.00;
$result = $num + $num2;
echo
I remember that a somewhat similar issues was discussed here sometime ago.
Check the list archives ( I think the subject was Progress Bar).
Hope that will give you some ideas also.
Reuben D. B
At 12:32 PM 5/9/01 -0500, Jacky wrote:
Hi all
Does any one know how to do the progession bar to
use to Oracle, and tried to find it in mysql.com, but has not
yet succed. And I'm a bit under time pressure.
Thanks for any help in advance.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hello,
I have one-dimensional array with a very a lot elements (say, about 300).
What is the best way to pass it through URL? do I use something like implode
the whole thing and then pass it, or do I use something like serialize, or
any other way?
Thanks for any reply.
Reuben D. Budiarjda
I have a multi-dimensional array. I want to trim every values so that none of
them have trailing space.
What is the most efficient way to do that ?
I don't necessaryly know the dimension of the array ahead of time, so the
function need to be able to handle it recursively.
Thanks
Reuben D
Someone told me that there is another php compiler, called APC. Check it out
here:
http://apc.communityconnect.com/
I haven't got a chance to try it yet, so if you'll let me know the result I'd
be happy to hear about. You can e-mail me off list about that.
Hope that helps.
Reuben D. Budiardja
D. Budiardja
--
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]
and author, that would be great.
Thanks.
Reuben D. Budiardja
--
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]
It seems that I cannot include secure pages, something like
include (https://www.bla.com/)
will fail. Any way to get around this? or is this intentional?
Thanks
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
.
echo your header in PRE to see it if you miss any new line, etc.
Reuben D. Budiardja
On Wednesday 11 July 2001 12:15 pm, Marcus James Christian wrote:
Hello,
Ok I've got a script going to a Bcc but can't seem to get it to work
when it's like this?
?php
include(mailinglist.inc);
$recipients
Great, I'd like to steal it too then :). I just check php.net, but
couldn't find it.
In what section would you put it?
Thanks.
Reuben D. Budiardja
On Tuesday 10 July 2001 05:34 pm, Rasmus Lerdorf wrote:
Have any of you seen those calendar applications that let you program
events
Hmm, I tried it, and my excel 2k could not read it either. I even change the
echo to fwrite, and delete all the headers. What did you do to your source
code? just copy it or did you modify it?
Could you possibly send it to me off list?
Thanks
Reuben D. Budiardja
On Friday 13 July 2001 01:36
on this will be appreciated. Thanks in advance.
Reuben D. Budiardja
--
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]
, passthru returns the value 2, which I don't know what it means.
Any help on this will be appreciated. Thanks in advance.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
the permission is already 755.
Ok, and does this play program actually work without a controlling tty?
I can only guess what you mean here, but I think that's a good point. Maybe
the play program wouldn't work withough a controlling tty. Do you know how
to check, or any work around?
Thanks.
Reuben D
*) ...;
// Search surname entry
$sr=ldap_search($ds,o=My Company, c=US, sn=S*);
echo Search result is .$sr.p;
$result = ldap_get_entries($ds, $sr);
print_r($result); // Let's just see what's in there.
Hope that helps.
Reuben D. Budiardja
//Johan
--
PHP General Mailing List (http
Hello,
How do I get the filename or script name if I run it in php comamnd line? For
example, if I run this
bash$ php test.php
I want to get something inside test.php that tells me the filename is
test.php, but *without* the actual path.
Thanks
Reuben D. Budiardja
--
PHP General Mailing
Seems that $PHP_SELF is not defined when it's run from the command line.
Reuben D. Budiardja
On Tuesday 17 July 2001 10:29 am, Jason Bell wrote:
$PHP_SELF returns the filename with the full path. from there, you can use
split to split the string wherever a / occurs, then call count, to get
. __FILE__ will give my my_api.inc instead. I
need it because my_api.inc do all sort of authenticating, session, etc.
Any solutions?
Thanks.
Reuben D. Budiardja
On Tuesday 17 July 2001 10:52 am, Boget, Chris wrote:
Seems that $PHP_SELF is not defined when it's run from the
command line
Any help on this would be greatly appreciated.
Thanks.
Reuben D. Budiardja
--
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]
running from web. Doing that for every single
apps would be a pain. But apparently since there is no other way, at least at
this point, it will have do for some apps.
Thanks.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Oracle-Connection resource
in bora_test.php/b on line b5/b
br
bWarning/b: Supplied argument is not a valid Oracle-Cursor resource in
bora_test.php/b on line b7/bbr
Any help on this would be greatly appreciated.
Thanks.
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net
Hi,
It seems to me that OCILogOff does not return anything. Evenif I do
something like this:
$conn = OCILogOn("user", "passwd", "db");
$logoff = OCILogOff($conn);
$logoff is always empty. Does anyone know about this? any help?
Thanks.
Reuben D. Budiardja
--
went better.
It could be the problem with the DB itself, but I really don't want
something like that to happen again using OCI*. Any ideas?
Thanks a lot.
Reuben D. Budiardja
At 08:05 AM 2/6/01 -0600, you wrote:
See the comments here. http://www.php.net/manual/en/function.ocilogoff.php
*, but wondering if it worths the effort. Is it
really faster?
Thanks for any answer/comment you can give me.
Reuben D. Budiardja
--
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
Try this:
for($i=0;$i count($the_array); $i++)
$sum = $sum + $the_array[$i];
or if the index of your array is not in order, try this:
while($element = array_pop($the_array))
$sum = $sum + $element;
Hope that helps.
Rdb
At 06:38 PM 2/7/01 +0100, you wrote:
No I've explained this
Try this:
if($radio1 == $opt1)
{
do whatever
}
rdb
At 04:39 PM 2/8/01 +, Miguel Loureiro wrote:
Hello,
I have sometging like this:
input type="Radio" name="radio1" value=? echo $opt1 ?"Opt1
how I know if some user choose some radiobutton???
I tried if($opt1) , but without
try:
isset($var);
return true is variable is set, false otherwise. Check www.php.net for more
info.
Reuben D. B
At 11:21 PM 2/12/01 +, SED wrote:
Hi,
I'm sending a form, with check-boxes, via post to PHP-script and if the
boxes are not checked they don't post value for its variable - Can
Bassically what you wanna do is to delete all the variables you set up when
the user log in. So, if you gave the session ID when a user log in, delete
if from the database when user log out.
Reuben D. B
At 03:52 PM 2/27/01 -0600, Jacky@lilst wrote:
Jack
[EMAIL PROTECTED]
"There is nothing
Javascript (js) is client side and PHP is server side. So what you can do
to call the php function is by re-submitting the page, with somekind of a
flag from the js to call the php function.
You write the php parts like:
if($flag)
callTheFunctions(args);
Reuben D. B
At 04:28 PM 3/1/01
to find a tutorial site
on the net for javascript, probably it will have an example of doing
something like that.
If I remember correctly, I think I saw something like that in the tutorial
for javascrip in http://hotwired.lycos.com/webmonkey/ (it's been a long
time).
Hope that helps.
Reuben D
Hello,
Anyone knows a simple calendar program that will let people to add event, and
then after the event is approved by webmaster / moderator, the event would be
added to the calendar ?
Just like the calendar for Upcoming Events on www.php.net. What program is
that ?
I've looked at
Hello,
Anyone knows a simple calendar program that will let people to add event, and
then after the event is approved by webmaster / moderator, the event would be
added to the calendar ?
Just like the calendar for Upcoming Events on www.php.net. What program is
that ?
I've looked at
.
Most of apps are some sort of plugins or integrated to a web-based mail apps
like Horde/IMP or SquirellMail. I am looking for a standalone version that
generates procmail file that I can just copy to the ~/.procmailrc (via
cronjob, for example).
Thanks.
RDB
--
Reuben D. Budiardja
Dept. Physics
Hello,
I need to implement a client for Web services. My first option is to use SOAP,
but it seems that the pear SOAP package is still in beta. Do you think it's
ready for a production quality site? If not, what are my other options? What
do people use in this case?
Thank you.
RDB
--
PHP
Hello,
On Saturday 01 October 2005 17:13, jonathan wrote:
you could try the native SOAP extension in php5.
A client asked me about this recently and I told him I thought he
should use java / axis because of problems with PHP / SOAP
specifically as it relates to handling certain data types.
Hello,
I've been installing php-4.4.0 and php-5.0.5, and it both cases I can't find
the pear executable in the install directory. For instance:
# ls /usr/local/php-5.0.5/bin/
php php-config phpize
IIRC, pear executable (ie. the package manager) used to be bundled with PHP.
In fact, I think a
the message from error_log() function
in the log file.
So, is it possible to have a setup where error_log would send the message to
the screen output (ie. the browser for web application) ? or am I missing
something ?
Thank you for any help.
RDB
--
Reuben D. Budiardja
Dept. Physics and Astronomy
On Wednesday 08 February 2006 17:24, Curt Zirzow wrote:
On Wed, Feb 08, 2006 at 01:25:18PM -0500, Reuben D. Budiardja wrote:
Hello,
For debugging purposes, I have display_errors = On in the /etc/php.ini
on my development server.
I'm trying to use the error_log() function to log errors
, Reuben D Budiardja wrote:
Hi All,
I'm in the middle of crisis. I need to meet the deadline tomorrow, and
tonight the www.php.net seems to be down.
Anyone know any mirror site of www.php.net?
I need function reference and manual only, and I have been always totally
dependence on www.php.net
a variable or method a private,
I would really like to know. Thanks for any comments.
Reuben D. Budiardja
Web Database Application Programmer / Analyst
Devcorps, ITS
Goshen College, IN 46526
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
] = yehaa
at one time. Is this possible at all?
Thanks in advance for any reply.
Reuben D. Budiardja
--
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
On Sun, 12 Jan 2003 [EMAIL PROTECTED] wrote:
I want to count characters without space character.
$char=hello world
so the result should be 10.
Can anybody help me?
$char=hello world;
$temp=str_replace( , , $char);
echo strlen($temp);
should give you 10.
RDB
--
--
PHP
Hi,
I think this has been asked here before and I've looked around the archive but
didn't find anything. So I ask again.
Does anyone know if there's a utility/script/program in php that will allow
one to parse and/or import iCAL calendar format to database, such as mySQL or
PostGreSQL?
Hi all,
My guess is I miss something really dumb, but here is my problem. I want to
use ereg to find some pattern, but it doesn't seems to work. The same pattern
uses with ereg_replace, works fine and replaced the pattern. Here is my code,
and the output:
?
$string = This is a %ANS[1] test,
Hi all,
If I have the following string:
$str = This is a %ANS[1] test, and %ANS[2] test, and %ANS[10], test
and want to use
ereg($pattern, $str, $regs);
what is the $pattern should be so that in $regs I have
$regs[1] == %ANS[1];
$regs[2] == %ANS[2];
$regs[3] == %ANS[10];
...
In fact, the
On Tuesday 05 August 2003 05:20 pm, Scott Fletcher wrote:
Hi!
How do I get the php function exec() to spit out the data from the Unix
Shell Environment onto the webpage? I mean, I can create a script in bash
shell environment using the terminal on the Unix machine and it would spit
out
On Tuesday 05 August 2003 05:13 pm, Derrick Fogle wrote:
Thoughts on frequent switching in and out of PHP mode:
? switch in, do some code
?Switch out, static HTML
? switch in, do more code
?Switch out, more static HTML
I've found that I prefer programming this way, for the most part,
On Tuesday 05 August 2003 05:21 pm, Jim Lucas wrote:
This method has been my personal choice for the past 3-4 yrs in coding,
I have not found any problems with it thus far.
But I am gradually switching all my code over to a seperate template style
design as where I have all my values in a
Hello,
I compiled and installed from source php-4.3.1 with the bundled GD. I enabled
it during configure using --with-gd, and double check that using phpinfo. The
bundled GD says it's 2.0. But when I tried using
imagejpeg()
i got:
Fatal error: Call to undefined function: imagejpeg() in
Is it compatible? Can I use oci8 functions to access oracle 9i? What are the
drawbacks?
Thanks.
RDB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sunday 29 June 2003 05:07 pm, Sparky Kopetzky wrote:
OK, I see that I have to use $_POST['user_name'] or can I just use the
variable passed back $user_name which would be a heck of a lot simpler??
If you have register_globals set to on in php.ini, then yes, you can use
$user_name.
On Monday 30 June 2003 09:30 am, Stevie Peele wrote:
What is the difference between else if and elseif?
none
-RDB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 30 June 2003 09:41 am, Tularis wrote:
Stevie Peele wrote:
What is the difference between else if and elseif?
Thanks
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
Hello,
I tried to find this on the website but didn't find it. So, is there any known
backward incompatibilities with PHP 4? If yes, anyone knows where we can find
the list?
or PHP 4 code will mainly just work with PHP 5 ?
Thanks.
RDB
--
-
/\
Hello,
First let me say that I am not sure if this is PHP problem or Oracle.
I have a class that contains API for using postgresql, mysql, or oracle
database so switching database should be in theory just changing an
argument for me.
To make this sort, let just say that the return of a
On Saturday 05 July 2003 11:47 am, Michael Whiting wrote:
Sorry - here's the HTML source. Don't laugh :)
snip
if ($view1 = true):
That statement will always evaluate to true. You may need
if($view1 == true)
notice the double equal sign
if ($view1 = false):
Same here
RDB
--
PHP
anyone give me pointer what's going on here and how to fix it?
In case this matters, the Oracle 9i DB server is also in the same box. Somehow
it has it's own Apache, but I don't use that.
Thanks for any help.
RDB
--
Reuben D. Budiardja
--
PHP General Mailing List (http://www.php.net
On Wednesday 16 July 2003 09:46 am, John Manko wrote:
Ok, before you go responding with percentages, I should note this.
consider this:
Image1 : 100x100 (Ratio = 1:1)
Image2 : 100x200 (Ratio = 1:2)
Space available for display : 75x75
now, i can say width=75% height=75%, but this will
Hi all,
Suppose I have a long string like
$myStr = $string1:$string2:$string3;
I can obviously explode them using : as the separator. But what if
$string1 contains the character : by itself?
I was thinking, first I am gonna put an escaping character, so I can do
something like:
$string1 =
On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote:
--- Reuben D. Budiardja [EMAIL PROTECTED] wrote:
Suppose I have a long string like
$myStr = $string1:$string2:$string3;
I can obviously explode them using : as the separator. But what if
$string1 contains the character : by itself
On Friday 18 July 2003 03:01 pm, you wrote:
On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote:
--- Reuben D. Budiardja [EMAIL PROTECTED] wrote:
Suppose I have a long string like
$myStr = $string1:$string2:$string3;
I can obviously explode them using : as the separator
conceivable that _
will get used.
RDB
Chris
- Original Message -
From: Reuben D. Budiardja [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 11:47 AM
Subject: [PHP] explode and escape character for string separator
Hi all,
Suppose I have a long string like
On Friday 18 July 2003 03:43 pm, CPT John W. Holmes wrote:
From: Reuben D. Budiardja [EMAIL PROTECTED]
This is a hypothetical situation. The real situation is that I am trying
to
have a protocol for data sent by client using Flash. But the basic
question
remains.
So FLASH
to use some mail class that will handle attachments, but
that's is available somewhere in the net, or from PEAR I assume. So the
problem only how to capture the dynamically generated image.
Thanks for any help.
Reuben D. Budiardja
--
-
/\ ASCII
On Tuesday 22 July 2003 01:43 pm, David Nicholson wrote:
Hello,
This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at
18:37, lines prefixed by '' were originally written by you.
But how can I instead capture the output of the include to
variable
and mail
it, something
:
http://java.sun.com/j2me/).
The way it sends the name and value parameter for HTTP POST method is by
output stream, so I need to read in in php using input stream.
Any help on this would be greatly appreciated.
Thanks.
Reuben D. Budiardja
for /devel/php_post.php
?
// Just wanna know what's going on
echo BOO;
phpinfo();
?
- Original Message -
From: Reuben D. Budiardja [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 1:27 PM
Subject: [PHP] Reading input stream of incoming
On Thursday 06 February 2003 05:22 pm, Chris Shiflett wrote:
--- Reuben D. Budiardja [EMAIL PROTECTED]
wrote:
I browse the archive and found the following code to
simulate a POST request using socket connection. This
will send a request to my own server (localhost). And
then, I also
1 - 100 of 113 matches
Mail list logo