Hello,
I have some problem using an extension written by myself. Here are the
details:
OS. RedHat 7.2
Apache: 1.3.20-16 (out of the box version )
PHP 4.3.0 compiled with:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings learned PHP(eople),
There have been a number of postings recently on opening and reading
files, and whilst I have read `em all I fail to make sense of it all.
Basicaly...I have a text file with entries in it...I wish to display the
contents of this file line by line in an HTML table :
A
At 05:46 03.03.2003, Paul Cohen said:
[snip]
>Here is the code in my file and was taken directly from the manual:
>
>$filename = "test.php";
>$handle = fopen ($filename, "r");
>$contents = fread ($handle, filesize ($filename));
>fclose ($handl
At 09:49 03.03.2003, Joe Wong said:
[snip]
>Hello,
>
> I have some problem using an extension written by myself. Here are the
>details:
>
>OS. RedHat 7.2
>Apache: 1.3.20-16 (out of the box version )
>PHP 4.3.0 compiled with:
[snip]---
You get a file to an array of lines with file().
Example:
"row 1";
// [1] => "row 2";
// [2] => "row 3";
// .
for ($i = 0; $i < count($myFile); $i++)
{
print "Row ".($i+1).": ".$myFile[$i];
};
?>
Niklas
-Original Message-
From: Chris Blake [mailto:[EMAIL PROTECTED]
Sent:
Muchos grassy arse...works perfectly
On Mon, 2003-03-03 at 11:06, Niklas Lampén wrote:
> You get a file to an array of lines with file().
>
> Example:
> $myFile = file("text_file.txt");
> // Now $myFile is an array looking like
> // [0] => "row 1";
> // [1] => "row 2";
> // [2] => "row 3";
Hello,
I have a website and all my files are *.php3
I would like to change the extensions of all files to *.php
My problem is for the search engine and links to my site.
Because the site is well referenced in the search engine with files liek
*.php3
So if I rename all files in .php, the links in
At 18:51 25/02/2003, Thomas Johnsson wrote:
>1. Zend does not have a way to decode a php file that was encoded
>using Zend Encoder.
> (For those of you paying attention to details, note the word "decode",
> not "decrypt". Zend Encoder does not encrypt. US gov't lawyers, please
take note :)
Are you
Justin French wrote:
I'm sure there's a way to check the owner of a file, but not (from what i
know) a way to check who apache is running as.
On linux "ps aux | grep httpd" will list as the first item the user the
apache processes are running as. Ignore the one with root. On other
unices the par
At 10:21 03.03.2003, Cranky said:
[snip]
>I have a website and all my files are *.php3
>I would like to change the extensions of all files to *.php
>
>So I would like to know if there is a way perhaps with a .htaccess file to
>say that the file .php3 must be
At 10:35 03.03.2003, Joe Wong said:
[snip]
> My last posting was interrupted. The details are here:
>
>I have created an extension on top of a C++ library
>If I put the module name into php.ini extension=XYZ, apache failed to load
>If I try to use 'dl' to lo
Thanks for this reply.
But I can not use the mod-rewrite because my site is on a shared hosting.
Another idea ?
Thanks
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> a écrit dans le message de
news: [EMAIL PROTECTED]
> At 10:21 03.03.2003, Cranky said:
> [snip]--
At 11:29 03.03.2003, Cranky said:
[snip]
>Thanks for this reply.
>But I can not use the mod-rewrite because my site is on a shared hosting.
>
>Another idea ?
[snip]
Ask your sysadmin to install the mod-rewrite for you
Greetings,
Th command
echo gethostbyaddr("ip.number.inserted.here");
returns the name of the server when it`s an internet address.
Is there a similar command that will return host names on a local
network
I tried using the above command putting in a LAN address, but it just
returned the I
> echo gethostbyaddr("ip.number.inserted.here");
>
> returns the name of the server when it`s an internet address.
> Is there a similar command that will return host names on a local
> network
>
> I tried using the above command putting in a LAN address, but it just
> returned the IP address...
> Not sure how you define an extension, but you could take a look at my
> web site www.phpscriptsearch.com and see if it applies to listing it
> there. But like I said, it depends what you mean by extension.
Extension like in binary that is either an integral part of PHP or a
loadable module.
> A
HI EVERYBODY,
i was trying to put a text field in a form in my php script
but it's giving me the following error:
Parse error: parse error in /var/www/html/bdoi_change/f1.php on
line 10
the code is as follows:
Business Directory Of India
Please enter other login id:
echo "";
echo "Name
HI EVERYBODY,
i was trying to put a text field in a form in my php script
but it's giving me the following error:
Parse error: parse error in /var/www/html/bdoi_change/f1.php on
line 10
the code is as follows:
Business Directory Of India
Please enter other login id:
echo "";
echo "Name
Do you have a DNS server on you network? Without it, it will not work.
"Chris Blake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greetings,
>
> Th command
>
> echo gethostbyaddr("ip.number.inserted.here");
>
> returns the name of the server when it`s an internet address.
> Is the
Hi Diksha,
> Parse error: parse error in /var/www/html/bdoi_change/f1.php on
> line 10
>
>
>
>
>
>
>
> Business Directory Of India
>
>
You can't use HTML directly when you're inside a PHP block - het rid of the
"";
// etc
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/
Steve --
...and then steve adamian said...
%
% I thought you would enjoy this new web site
...
Actually, I have no interest in it unless it so happens that it is
written in PHP and we can discuss the source code.
%
...
% If you will decide to join please use my User ID rudeboy311
...
Well, y
Hello !
I have got 2 doubts/questions for clarification.
1) Can we display an alert box using PHP. The objective is to
fire back the user for his incorrect submission with an
alert message.
2) I would like to know the max. number of records or max. space
a database (mentioned below) can provid
Hello !
I have got 2 doubts/questions for clarification.
1) Can we display an alert box using PHP. The objective is to
fire back the user for his incorrect submission with an
alert message.
2) I would like to know the max. number of records or max. space
a database (mentioned below) can provid
1) No you can't. Use javascript for that.
2) This information is easy to find from web. Read datasheets or use google.
Niklas
-Original Message-
From: yogendra lingsugur [mailto:[EMAIL PROTECTED]
Sent: 3. maaliskuuta 2003 14:32
To: [EMAIL PROTECTED]
Subject: [PHP] info required reg. P
Hi Diksha,
> Parse error: parse error, expecting `','' or `';'' in
> /var/www/html/bdoi_change/f1.php on line 11
>
> the code is:
>
> echo"
> Please enter other login id:
> ";
You need to escape the quotes inside the string, or use single quotes to
define it. Either this:
echo "Please ente
Hi,
> 1) Can we display an alert box using PHP.
No, you need to use Javascript's alert() function. PHP is server-side only.
> 2) I would like to know the max. number of records or max. space
> a database (mentioned below) can provide.
Oracle, MySQL and SQL Server are limited only by the space
Hi Diksha,
Please excuse the line wrapping in my last post - you may have to copy 'n'
paste into a text editor to see it as it should be :-)
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Answer to number 1:
I'm sure you could, but why would you want to when Javascript is more suited
for this type of processing. If you don't know javascript google for some
tutorials or for alert boxes, and I'm sure you will find plenty of examples.
for #2:
For Mysql check this:
http://www.mysql
Hi guys,
My current task involves passing a string into a function that is able to
reference variables defined within that function for the final output. The
idea is that a function iterates through objects and eval's the string so
that the objects data (name etc) is substituted in the string.
Cu
At 14:47 03.03.2003, neko said:
[snip]
>$someVar = "testing for node - wootah, \$evalTestArr[TAG_PAGENAME]"
>
>
>then in some other function that gets passed this string
>...
>
>$evalTestArr[TAG_PAGENAME] = "hello anna marie gooberfish!";
>$str = $someVar
note that the following php:
Hello, $name";
$str2 = "Hello, $arr[0]";
$str3 = "Hello, $arr2['name']";
eval ("\$evaldString = \"$str\";");
echo $evaldString;
eval ("\$evaldString = \"$str2\";");
echo $evaldString;
eval ("\$evaldString = \"$str3\";");
echo $evaldString;
?>
produces:
Broness!He
Hi,
> $arr2["name"] = "Broness!";
..
> $str3 = "Hello, $arr2['name']";
..
> eval ("\$evaldString = \"$str3\";");
> echo $evaldString;
Your almost there... just remember one very simple rule - if in doubt,
break out. Meaning, if you're having variable resolution issues, then just
break out of the
Hi there,
Any class or libraries for generating, formatting reports with PHP Mysql?
Manoj
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Thanks Dan - I just worked this out before reading your solution! :)
$str4 = "Hello, ".$arr2['name'];
cheers and thanks to all - lets see how that goes within my framework now :)
neko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello friends,
Thanks for the help with the file upload, that has been solved by simply
setting the write permissions on the corresponding directories.
Another thing: I have developed my PHP application on a Windows machine with
a MySQL server database. However, it was meant for a Linux server ru
Hi,
i have one big Oracle database, 20GB. Is it better to comunicate
directly to Oracle with PHP, or to export data to MySQL. How secure is
PHP & Oracle, can they communicate well?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actually, I just realised that what I want to accomplish is different from
my example - the main issue is with scope:
we're in the pipe, 5-5-5.");
$str = "Hello, \$name";
$str2 = "Hello, \$arr[0]";
$str3 = "Hello, \$arr2['name']";
echo doEvalWithVarsInScope($str);
echo doEvalWithVarsI
we're in the pipe, 5-5-5.");
$str = "Hello, \$name";
$str2 = "Hello, \$arr[0]";
$str3 = "Hello, \$arr2[".NAME_TAG."]";
echo doEvalWithVarsInScope($str);
echo doEvalWithVarsInScope($str2);
echo doEvalWithVarsInScope($str3);
}
function doEvalWithVarsInScope($str)
{
echo("trying to e
On Monday 03 March 2003 09:29 am, Simon wrote:
> Hi,
>
> i have one big Oracle database, 20GB. Is it better to comunicate
> directly to Oracle with PHP, or to export data to MySQL. How secure is
> PHP & Oracle, can they communicate well?
I don't see why you would want to export data to MySQL first
Thank you to all that came to my aid while I was muddleing through my
attempts to install GD Libraries.
Since I had various versions of PHP from textbook CD's - I downloaded PHP
Triad which happened to be PHP version 4.1.1
I changed two lines in the php.ini file and ran the phpinfo() function cal
This is OT, I'm considering buying the MySQL, Second Edition Paul
DuBois
book. I'm using MySQL 3.23. Should I be buying the first edition
DuBois
book instead or does BuBois cover both 3 and 4 in the second edition?
Is
there a huge difference between 3 and 4?
Here's a URL for the second editio
I have a mysql table containing about 100 record, alphabetically ordered.
How would i display them in browser in a 3 columns, doesn't matter how long the rows
is as the number of records will grow in the database table.
the records should be in alphabetically order, for example:
aaa bbba
Does anyone have a simple example of using the sapi/embed option from an
external c or c++ program, including compiling/linking?
TIA
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello again
I worked on it so long now I have to come back to you
it gives me an Parse error:
Parse error: parse error, expecting `'('' in members_read_send.php on line
5
Iam so sorry to bug u so much but can u help me finish here please?
\r\n";
$headers .= "To: ".$contactname." <".$contactemail
ok - my latest in the eval saga is this:
I want to be able to eval a function call anywhere in the string supplied,
and the function call is not in scope when the string is defined.
So
-- somewhere in my code I wanted something like this:
$string = "testing nodename: \$node->getName()
pagename:
I get these errors from a simple "session_start();" script.
Warning: session_start() [function.session-start]:
open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such
file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2
Warning: session_start() [function.sessi
Hi Victor,
> Warning: session_start() [function.session-start]:
> open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such
> file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2
Pay attention to the error messages. This one explains exactly what you're
doing wr
what does "harvest" mean? what would the function "harvest" do?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I get these errors from a simple "session_start();" script.
>
> Warning: session_start() [function.session-start]:
> open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such
> file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2
>
> Warning: session_start() [fu
Awlad,
I would guess you are trying to create an HTML table to display the
records.
$Row = The results returned from. mysql_fetch_array().
$Total = count($Row);
$TotalInEachRow = round(($Total/3));
if (($TotalInEachRow * 3) < $Total) {
$TotalInEachRow ++; // Planning for the Remainder
> I get these errors from a simple "session_start();" script.
>
> Warning: session_start() [function.session-start]:
> open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such
> file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2
Do you have a /tmp folder on yo
> > The other problem is that if I open two browser
> > windows to your site, one after the other, and see
> > two banners, and then click on the first one, am
> > I going to go to the site for the second one?
>
> Yes, that is one of the main problems. Would using
> sessions help end this?
No, sin
> I worked on it so long now I have to come back to you
> it gives me an Parse error:
> Parse error: parse error, expecting `'('' in members_read_send.php on
line
> 5
>
> Iam so sorry to bug u so much but can u help me finish here please?
>
> $lines = file(data/default2.users);
> for each ($lines
Hello,
In addition to my previous message the following:
I have developed a PHP application on a Windows machine with a MySQL server
database. However, it was meant for a Linux server running Apache, where it
runs now.
After checking with the server administrator it turns out that pages with
SEL
Sorry, but I am unaware of this function. It is not a native function to
php, maybe it is a custom function that is part of a library that you are
using. You would have to contact them for documentation on thier functions.
- Original Message -
From: "Diana Castillo" <[EMAIL PROTECTED]>
T
The easiest way would be nested tables. Your three "columns" would each have
a nested table within them where you loop through 1/3 of the results. Some
simple math functions and the result of mysql_num_results() should tell you
how many to loop through in each table.
Thanks Jonathan,
I'll have a go with your codes.
Thanks very much
awlad
- Original Message -
From: "Jonathan Pitcher" <[EMAIL PROTECTED]>
To: "Awlad Hussain" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 4:17 PM
Subject: Re: [PHP] Automatic Table Creation
> A
Hi All,
I'm having a problem with session variables under PHP 4.0.6 on a secure
server. I ran phpinfo and have attached the resulting page after the main
body of this message.
My test code looks like this
Filename: index.php
Page Start --
click here to go to the next page
Page En
In the first file, replace this line:
$HTTP_SESSION_VARS['variable']="the variables value";
with these two lines:
$variable = "the variables value";
session_register('variable');
This is because 'register_globals' is enabled in the php.ini file.
Kirk
> -Original Message-
> From: Henry
Hello,
After several months of beta, TemplateTamer 1.0 has been released, and it
can be downloaded from the TemplateTamer web site:
http://www.templatetamer.com/
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
> i have one big Oracle database, 20GB. Is it better to comunicate
> directly to Oracle with PHP, or to export data to MySQL. How secure is
> PHP & Oracle, can they communicate well?
Why would you send it to MySQL? Just get PHP and Oracle talking and go with
that.
---John Holmes...
--
PHP Gene
Ok, thanks guys for your help, I sort of figured that's the problem, but I
didn't want to touch the ini settings without being sure, and getting some
advice from people that know. Thanks again, great help.
I made the changes, now how do I restart php? So the changes are used?
- Vic
-Original
Has anyone else had problems with this app opening tons of processes and
never closing them?
--
Mike Yrabedra
President
323, Inc.
Home of The MacDock and The MacSurfshop
[http://macdock.com] : [http://macsurfshop.com]
VOICE: 770.382.1195
iChat/AIM: ichatmacdock
_
You need to restart IIS.
c:\> net stop iisadmin
c:\> net start w3svc
or use the control panel.
---John Holmes...
- Original Message -
From: "Victor Stan" <[EMAIL PROTECTED]>
To: "1LT John W. Holmes" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 12:54 PM
Subject:
is there a way you can change the text color on buttons as well as the
background color for a button? i have a button that looks like:
so is there a way to change text color and background color for that? or is
it better to use and do it that way...
my client wants light blue buttons with dark bl
Hi All,
I've written some javascript that serializes javascript variables so that
they can be sent to PHP and unserialized there. Is this silly thing to have
done? i.e. is it already done or superfluous for some reason? Or, if it is
not, where would I put the code to share it with others. Thing is
Use CSS:
input {
color: Navy;
background: LightBlue;
}
(I'm writing from memory, but the essence is that.)
((HTH))
--
Un gran saludo/Big regards...
Arturo Barajas, IT/Systems PPG MX (SJDR)
(427) 271-9918, x448
> -Original Message-
> From: Sunfire [mailto:[EMAIL PRO
At 18:13 3-3-03, you wrote:
is there a way you can change the text color on buttons as well as the
background color for a button?
you do that by making a css style for the button, plenty of examples on the
net, if you can figure it out from a german site try
http://www.webmatze.de/webdesign/css/b
> is there a way you can change the text color on buttons as well as the
> background color for a button? i have a button that looks like:
> onclick="window.location='edit.php';"
> onkeypress="window.location='edit.php'">
> so is there a way to change text color and background color for that? or
i
Dear Sirs,
I am trying to post xml file to http address but no result. I saw your
script at the below but I can not understand How can send file? Can you help
Best Regards
"Mincu Alexandru" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> yes you can connect to the server from your
Ok, by looking at my cron logs it looks like cron is trying to run my
PHP CLI script. However, it is not running it. I only have one line of
code that isn't commented out and the line simply sends me an email
using the PHP mail() function.
Tom suggested that maybe the script is running, but cro
When I post something here, it first appears several hours later. How can it
be so?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Did you send this post at 17:17 and did it arrive at 17:22?
"Niels Andersen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When I post something here, it first appears several hours later. How can
it
> be so?
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
K, thanks, I tried stopping just the web sites from the control panel, but I
guess I had to stop the whole thing and restart.
- Vic
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 11:07 AM
To: Victor Stan; [EMAIL PROTECTED]
Subject: Re: [
Thanks Larry,
What are some of the more active MySQL lists? Do you have a URL or two?
Thanks,
Dan
-Original Message-
From: Larry E. Ullman [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 9:52 AM
To: Dan Sabo
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL
> This is OT, I'm cons
> Ok, by looking at my cron logs it looks like cron is trying to run my
> PHP CLI script. However, it is not running it. I only have one line of
> code that isn't commented out and the line simply sends me an email
> using the PHP mail() function.
One thing to keep in mind when working with cron
Thanks that works in my testing example. But why? The manual says:
Caution
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use
session_register(), session_is_registered() and session_unregister().
But in index2.php I am using $HTTP_SESSION_VARS and it works?!
Need a bit of clarificati
What are some of the more active MySQL lists? Do you have a URL or
two?
http://www.mysql.com/documentation/lists.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear Sirs,
I am trying to post xml file to http address but I mixed up all. Any source
to read this item.
I can not realize that shoul I write the file on the server before or I can
send without writing.
Best Regards
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
Dear Sirs,
I am trying to post a xml file to following http. But I can not. where can I
find some source to read.
https://xxx.xxx.xxx.xx/servlet/com.oks.buing.xml.detdrd
Any help welcome
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
What I'm looking for is either an open source or commercial solution which
is supported by either commercial or OS add on modules. I've looked at OS
commerce and X cart so far, wanted to look at a few more.
I'm hoping to find one which has a hotel booking or reservation system
either as a st
Anyone know of any pre-built modules or whatnot that provide some news
content and/or links and captions via PHP/MySQL that can be integrated with
minimal disruption to a site? (A prerequisite being that it acts legally in
terms of gathering the info. ;)
Thank you,
Jason
__
That Caution message is not the full story, read some more on
"register_globals".
If register_globals is "On" in php.ini, then do the following:
- use session_register() to create your session variables;
- use the global variable to access the variable, not the $HTTP_SESSION_VARS
array.
Example:
Hi, I have a developed a simple Helpdesk for our small company. When users
log calls they get an alert message warning them that they must fill in all
the fields if they have missed a field. At the moment if they happen to
forget a field, they receive the alert message, but then have to start all
Mirco,
What I do is (in a JavaScript function):
window.location = "?";
and then populate the fields this way:
or
HTH
--
Un gran saludo/Big regards...
Arturo Barajas, IT/Systems PPG MX (SJDR)
(427) 271-9918, x448
> -Original Message-
> From: Mirco Ellis [mailto:[EMAIL PROTECT
On Mon, 3 Mar 2003, Mirco Ellis wrote:
>Hi, I have a developed a simple Helpdesk for our small company. When users
>log calls they get an alert message warning them that they must fill in all
>the fields if they have missed a field. At the moment if they happen to
>forget a field, they receive th
It is really easy to stop Javascript from going to the next page.
To pop open the alert box I am assuming you call a javascript function.
Usually you would do onclick="VerifyForm(this.form)"
but by changing it to:
onclick="return VerifyForm(this.form)"
You tell javascript to go to the page onl
> Hi, I have a developed a simple Helpdesk for our small company. When
users
> log calls they get an alert message warning them that they must fill in
all
> the fields if they have missed a field. At the moment if they happen to
> forget a field, they receive the alert message, but then have to st
Hi All,
I need to process the inbox. Any pointers, I don't use Perl and would like
to use PHP. Also I do not have PHP compiled for a comand line so I'll
probably use a crontab and unix text based web browser to invoke the PHP
page to process the inbox.
TIA Any help much appreciated.
Henry
--
Maybe I'm off my rocker, but I don't see how this can't work. I'm trying to validate
an ICQ number, and assuming a valid one is between 7 and 9 numbers. My line of code is
this:
if(ereg("^[0-9]{7,9}$", $_REQUEST["icqnumber"])) {
print("a-okay!");
} else {
print("error msg");
}
I've subm
Hi,
Please let me know if you find one thats any good?
Henry
"Dan Sabo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> What I'm looking for is either an open source or commercial solution which
> is supported by either commercial or OS add on modules. I've looked at OS
>
I'm uploading a large file through my web page and after 30 seconds, the
fails with an error. I bumbed the max_execution_time parameter in
/etc/php.ini to 600 seconds and restarted apache. Still errors at 30
seconds. I added set_time_limit(600); to various place in my file upload
handling scrip
Use single quotes around your pattern.
if(ereg('^[0-9]{7,9}$',...
With the double quotes, PHP is probably seeing the $ and looking for a
variable, even though it's at the end of the string.
---John Holmes...
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECT
On Mon, 3 Mar 2003 14:00:43 -0500, you wrote:
>Maybe I'm off my rocker, but I don't see how this can't work. I'm trying to validate
>an ICQ number, and assuming a valid one is between 7 and 9 numbers. My line of code
>is this:
>
>if(ereg("^[0-9]{7,9}$", $_REQUEST["icqnumber"])) {
>print("a-o
On Mon, 03 Mar 2003 13:09:39 -0500, you wrote:
>Anyone know of any pre-built modules or whatnot that provide some news
>content and/or links and captions via PHP/MySQL that can be integrated with
>minimal disruption to a site? (A prerequisite being that it acts legally in
>terms of gathering t
Hi,
I'm reading the description of Bitwise Operators on page 81 of "Professional
PHP 4", the Wrox book. In the highlighted example on that page, the line of
code...
$user_permissions = CREATE_RECORDS | ALTER_RECORDS;
the description in the book says that this line is building a set of user
perm
Here's how I think about it...
CREATE_RECORDS = 1 in decimal and 0001 in binary.
ALTER_RECORDS = 4 in decimal and 0101 in binary.
that line returns a binary string where *any* of the bits are 1, so line
them up:
0001
| 0101
= 0101
which is 5.
On Mon, 3 Mar 2003, Dan Sabo wrote:
> Hi,
>
>
Hi Phillip,
Don't U mean
0001
| 0100
= 0101
?
Dan
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 2:33 PM
To: Dan Sabo
Cc: [EMAIL PROTECTED]
Subject: Re: Bitwise operator question
Here's how I think about it...
CRE
At the top of every page in my site I have a snippet of code that
authenticates the user by checking for valid SESSION vars and their
contents. If they don't, they are redirected with a header() statement to a
log-in page like this:
include_once("function_library.php");
session_start();
I have a database that holds a start date and an end date and I have a form
with a start date and an end date. The report would be to get everything in
the database's date ranges that overlap the form's date range. I am having
trouble figuring out how to get this to work, any help is appreciated.
1 - 100 of 190 matches
Mail list logo