PJ wrote:
Hi Jim,
Sorry I could not gat back to you on your suggestion. I've been under
the weather for a couple of days but am almost over it.
Your suggestion does not work... yet.
I'll insert comments & questions below...
Jim Lucas wrote:
PJ wrote:
I've searched the web,
ou or what it missed
on.
Your responses have been very vague as to what an example did or didn't do for
you.
Tell us everything that worked or didn't and we might be able to help you to tweak the code so it
DOES do what your are looking to do.
Hope it works!
Jim
categories an
ing to talk with the server. So it doesn't involve anything that AJAX was
designed to solve.
I simply wanted to point out the different uses. Hope I didn't step on
anybodies toes.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have gr
nitize all input to script from and outside source.
IN to db from html
Thanks, that worked.
Cheers,
tedd
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William
PJ wrote:
foreach does a nice job if you want the results identical each time.
What can you use to change the formatting of the results dependent on
the number of results.
Here's an example:
foreach ( $authors[$bookID] AS $authorID => $authorData ) {
# Display the
PJ wrote:
Jim Lucas wrote:
PJ wrote:
foreach does a nice job if you want the results identical each time.
What can you use to change the formatting of the results dependent on
the number of results.
Here's an example:
foreach ( $authors[$bookID] AS $authorID => $au
x
[6] => xx
)
[2] => Array
(
[0] => xx xxx xx xx xx
[1] => xx
[2] => xxx
[3] => xx
[4] =>
[5] => xx
[6] => xx
)
)
Hope this is
hat is
"on".
To have a checkbox in the "on" state means that it has to be checked.
So, any checkbox that is /not/ checked is considered "off" or "undefined" will
not be submitted because it is not valid.
Or something like that... :)
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ramesh.marimu...@wipro.com wrote:
Thanks Jim. Is there a way to get the value of that unchecked box?
-rummy
-Original Message-
From: Jim Lucas [mailto:li...@cmsws.com]
Sent: Friday, April 17, 2009 10:35 AM
To: Ramesh Marimuthu (WT01 - Telecom Equipment)
Cc: geek...@gmail.com; php
such:
Room #1
Room #2
Room #3
Room #4
Room #5
Then on your processing page, you know that you have 5 rooms, 1 - 5.
With this information you can check to make sure that something exists
Something like that should do the trick.
Jim Lucas
--
PHP General Mailing List (http://www.php.net
s.
// This converts 2009-04-19 00:00:00 into 1240099200
$date_reference_unix = strtotime($date_reference);
$previous_date = strtotime("-1 days", $date_reference_unix);
$previous_date = date('Y-m-d', $previous_date);
echo $previous_date; outputs 1969-12-30
--
Jim Lucas
Ashley Sheridan wrote:
On Fri, 2009-04-17 at 12:54 -0400, Bob McConnell wrote:
From: tedd
At 10:43 PM -0700 4/16/09, Jim Lucas wrote:
Have your elements setup like such:
Room #1
Room #2
Room #3
Room #4
Room #5
Then on your processing page, you know that you have 5 rooms, 1 - 5.
With
but ttf is not, so I figure that is the culprit.
But how is the text supposed to be assigned to $text from file1?
TIA
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
Well, since nobody seems to want to answer your question, I will... :)
It has to do with you using an assignment '=' instead of a comparison '=='
operator in your condition.
Follow along with my inline notes below.
Gary wrote:
I am trying to get this to work, however it only reads the second
mplemented of CSS1 and CSS2 act differently between the
different browsers that it is a PITA to work with them.
SARCASM: They will be on to CSS5 or CSS6 before they get most of CSS3 features implemented. I guess I'm saying, don't
hold your breath...
Jim
--
PHP General Mailing List
But, not knowing how the various types of accessibility applications work, I am guessing that the
layout to an application trying to read it should work fairly well. Let me know if I am way off the
mark with my thoughts.
If you want to respond off list, that if fine by me.
TIA
--
Jim Lucas
Jim Lucas wrote:
Since this has been a topic of dicussion, I figured I would add my
thoughts.
I have been toying with the idea of doing a -less layouts
involving tabular data, calendars, etc...
Recent threads have finally made me do it. Let me know what you think.
http://www.cmsws.com
at the 3rd argument has always been a part of parse_ini_string()
So, you could do this...
$ini_data = parse_ini_string(file_get_contents($filename), FALSE,
INI_SCANNER_RAW);
I think this will work for you.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Jim Lucas wrote:
Since this has been a topic of dicussion, I figured I would add my
thoughts.
I have been toying with the idea of doing a -less layouts
involving tabular data, calendars, etc...
Recent threads have finally made me do it. Let me know what you think.
http://www.cmsws.com
velopment
area.
by that I mean php should be set to display_errors = on and error_reporting =
E_ALL
Give this a try in a development area and "you will see the errors of your
ways..."
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stuart wrote:
2009/7/4 PJ :
Stuart wrote:
2009/7/4 PJ :
Ashley Sheridan wrote:
On Sat, 2009-07-04 at 10:47 -0400, PJ wrote:
Jim Lucas wrote:
PJ wrote:
Could somebody please explain to me what is wrong with this code?
In my script it works, returns the correct id, but when I try it
make it non case-sensitive by using ILIKE instead of LIKE in that
SELECT statement.
$sql = "SELECT DISTINCT name FROM restaurants WHERE name iLIKE '$index_letter%'
GROUP BY name DESC";
--
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$adminuser);
mysqli_stmt_execute($stmt);
mysqli_stmt_store_result($stmt);
$count = mysqli_stmt_num_rows($stmt);
if($count==1){
header("location:admin.php");
} else {
echo "Failure";
}
I hope not, because you have a parse error on your second line, mysqli_prepare()
Mig
Govinda wrote:
> Sorry this is isn't good 'ninja' material.. but I gotta start where I am.
>
> this:
>
> echo 'is set (EditExistingClient) ='. isset($EditExistingClient)." />\n";
I realize this is after the fact, but...
The above does not indicate WHAT it is set too. Just that it is set.
it
Miller, Terion wrote:
> I'm almost there with my little pagination script but now I'm hung on the
> "Unexpected T_Variable" error...which in the past has been a semi-colon
> missing so I'm not sure why this is throwing it...eyes please:
>
> printf(' href="view.php?name=$row['name']">%s%s',$row['n
Andrew Ballard wrote:
> On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas wrote:
>
>> Miller, Terion wrote:
>>> I'm almost there with my little pagination script but now I'm hung on the
>>> "Unexpected T_Variable" error...which in the past has been a
Miller, Terion wrote:
> Thanks Jim!! I did read the manual and don't get it, like why is printf used
> and not echo...how do you decided which to use?
>
>
>
> On 7/16/09 11:25 AM, "Jim Lucas" wrote:
>
> printf(
> '%s%s',
>
it.
Bookmark properties are as follows:
Name: PHP.net
Location: http://www.php.net/%s
Keyword:php
Description:Type "php " in the address bar
to perform a PHP.net search
Not sure if you can do this with other browsers, but I have found it to
be very useful.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bastien Koert wrote:
> On Thu, Jul 16, 2009 at 12:43 PM, Andrew Ballard wrote:
>> On Thu, Jul 16, 2009 at 12:35 PM, Jim Lucas wrote:
>>> Andrew Ballard wrote:
>>>> On Thu, Jul 16, 2009 at 12:25 PM, Jim Lucas wrote:
>> [snip]
>>>>> Also, this is
.ini file in
your
DOCUMENT_ROOT. Sometimes hosts allow this file. If allowed, you will then be
able
to set any php.ini configuration option you want.
Give it a shot! What do you have to loose at this point?
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Martin Zvarík wrote:
Makes sense? or is it enough to do it just once?
You call file_put_contents() once.
it writes an entire file when called.
use fopen/fwrite/fclose to do it line by line.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some
($sql);
Because the following line is wrong
//trying to grab it by ranges from the db?
$rows = mysql_num_rows($sql);
should be
$rows = mysql_num_rows($result);
But this is failing...
while ($row = mysql_fetch_array($result)) {
because your
$result =
rszeus wrote:
> Thank you.
>
> What about instead test i want to insert a variable ?
> Like
> $id = "30";
> $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg";
> echo preg_replace('#(screens/)temp/(.+?)_1(_main\.jpg)#', '$1$id$3', $file);
Sure that can be done. But you will need to ch
7;test';
>
> echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id, $file);
>
> I get screen/test
>
>
>
> Any ideas ?
>
>
>
> Thank you
>
>
>
> De: Kyle Smith [mailto:kyle.sm...@inforonics.com]
> Enviada: quart
Javed Khan wrote:
> I need help on my project I want to have my browser do compling of PHP
> scripts. Can someone please send me some concepts and if possible codes to do
> this. I know this aspect will pose great security threat to the server and
> client but I will still love any help with thi
quotes
> echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id, $file);
>
> Get: screen/test
>
> What is wrong with having na integer on the var ?
>
> Thank you
>
> -Mensagem original-
> De: Jim Lucas [mailto:li...@cmsws.com]
>
with the ops code
example in the bug report?
OPS example code from bug report
LC_ALL=de_DE.utf8 php -r "print strftime('%B');"
your example
setlocale(LC_xyz,'')
I don't see him using the above function in his example.
>From what I can tell, the op is tr
nks!
Skip
No, what he gave as an example was just right.
only if you try calling header() after you echo something will it give you the header's already sent
error.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them
happens if you get 2 or more results? Are you expecting their to be a
possibility that you could have more then two results?
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scen
tony mount wrote:
> I have a question that follows on from this discussion. I have a loop
> which creates a number of files. It first write each file to a server
> location then sets up the headers and asks the "Save As" question. This
> works OK once, but after the first download it exits without
Miller, Terion wrote:
> I want to store only 1000 records at a time in the session variable thought I
> could use a range(1,1000
>
> How would you do this, store the first 1000 , then the second on refresh etc
>
> My snippet so far
>
> ---
>
Ashley Sheridan wrote:
> On Mon, 2009-07-27 at 07:34 -0700, Jim Lucas wrote:
>> tony mount wrote:
>>> I have a question that follows on from this discussion. I have a loop
>>> which creates a number of files. It first write each file to a server
>>> location t
Miller, Terion wrote:
>
>
> On 7/27/09 9:40 AM, "Jim Lucas" wrote:
>
> Miller, Terion wrote:
>> I want to store only 1000 records at a time in the session variable thought
>> I could use a range(1,1000
>>
>> How would you do this, stor
Michael A. Peters wrote:
> Bastien Koert wrote:
>> On Mon, Jul 27, 2009 at 12:41 PM, Mari Masuda
>> wrote:
>>> You need to sanitize and escape the input before inserting it into
>>> the db.
>>> You can use http://us.php.net/mysql_real_escape_string to escape the
>>> input.
>>>
>>> On Jul 27, 2009,
Dušan Novaković wrote:
> Hi,
>
> Is there a possibility that if there is no font installed on client
> side somehow browser finds it and redirect that font form server to
> client machine. For example: I have site that use Microsoft font and
> that font is not available on Linux distributions. So
Bastien Koert wrote:
> On Tue, Jul 28, 2009 at 10:11 AM, wrote:
>>This may be more of a MySQL question than PHP, but I'm hoping someone
>> can point me in the right direction. I have working code (below) that pulls
>> data from a particular category in our db. I'd like to be able to pull
Miller, Terion wrote:
>
>
> On 7/28/09 11:05 AM, "Miller, Terion" wrote:
>
>
> echo "
> @Normal=
> @.LIST
> Bold=
> @.BODY=[S"",
> ".BODY"]<*J*h"Standard"*kn0*kt0*ra0*rb0*d0*p(0,7,0,10,0,0,G,"U.S.
> English")Ps100t-2h100z9.4k0b0cKf"PoynterOSTextTwoNL-Roman">
> @Normal=[S".BODY
> ",".BODY",
) and date()
example:
$date = date('Y/m/d', strtotime('yesterday'));
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard S. Crawford wrote:
> 2009/7/28 Thodoris :
>> Hi gang,
>> I've been looking for a str_to_date (mysql) equivalent in PHP. I've
>> noticed that these are matching the description:
>>
>> http://www.php.net/manual/en/datetime.createfromformat.php
>> http://www.php.net/manual/en/function.date-c
Thodoris wrote:
>
>> 2009/7/28 Thodoris :
>>
>>> Hi gang,
>>> I've been looking for a str_to_date (mysql) equivalent in PHP. I've
>>> noticed that these are matching the description:
>>>
>>> http://www.php.net/manual/en/datetime.createfromformat.php
>>> http://www.php.net/manual/en/function.da
sono...@fannullone.us wrote:
> Hi Jim,
>
>> Take a look inside your money_format() function look for the problem.
>
> I apologize for replying too quickly.
>
> The money_format() function looks just like the one I had before, so
> that's fine.
>
>
Please, click "Reply All" so the list may benefit from our talking.
Read below for further information.
sono...@fannullone.us wrote:
> Jim,
>
>> if ( ( $results = mysql_query($SQL, $db) ) !== false ) {
>>
>> You want to have the inner portion processed th
sono...@fannullone.us wrote:
>
> On Jul 28, 2009, at 12:48 PM, Jim Lucas wrote:
>
>> > $item_list = "";
>> $cats = array('01100-01200-01300-06403', '01100-02201-01300-06403');
>>
>> echo '';
>> echo '&
call, I would suggest looking at the
manual page for that.
http://php.net/mysqli_connect
Plus look at mysql documentation on how to create a new user, grant them privileges, and flush the
privileges table.
http://dev.mysql.com/doc/refman/5.1/en/adding-users.html
A simple Google search would hav
p for Roadsend.
If you need support for them, try their forum or IRC channels.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;$' to specify that I want to test for the exact string. However,
> preg_match() tests for the existence of a string and appears to ignore
> the '$'.
>
> How do I do this?
>
cut/paste your code and it works for me.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ben Dunlap wrote:
> Jim Lucas wrote:
>>> I expected 'no match' but get 'match'.
> [8<]
>> cut/paste your code and it works for me.
>
> Works for me as well. I get 'no match' from PHP 5.1.2, 5.2.6, and 5.2.8. What
> version do you h
Miller, Terion wrote:
> I am trying to get rid of empty whitespace lines, I can't us chop() because
> as I read it it will remove all whitespacesright?
>
> Right now my db is outputting with extra lines, I have stripped tags I know
> it isn't that causing it to look like this
>
> Blahlajdlkfj
Miller, Terion wrote:
>
>
> On 7/29/09 2:19 PM, "Jim Lucas" wrote:
>
> $clean = preg_replace('|\s+|', ' ', $input);
>
> Hi Jim,
> The extra whitespace lines are in the data store, coming from it I'm going to
> try your met
Miller, Terion wrote:
>
>
> On 7/29/09 3:05 PM, "Jonathan Tapicer" wrote:
>
> On Wed, Jul 29, 2009 at 4:20 PM, Miller,
> Terion wrote:
>>
>>
>> On 7/29/09 1:45 PM, "Ashley Sheridan" wrote:
>>
>> [snip/]
>>
>> Have you thought of just using a regular str_replace() on your code? You
>> can ask i
ILENAME'] = 'browse.php' ) {
if ( isset($_GET['letter']) ) {
$letter = $_GET['letter'];
} else {
$letter = 'A';
}
} else {
$letter = '';
}
Basically, it is the same thing. Bu
Merlin Morgenstern wrote:
> Hi there,
>
> I am trying to filter out content that is not ascii. Can I do this with
> regex? For example:
>
> $regex = '[AZ][09]';
> if (preg_match($regex, $text)) {
> return TRUE;
> }
> else {
> return FALSE;
> }
>
> The reason I
Skip Evans wrote:
> Hey all,
>
> Am I brain fading or what? I'm so used to formatting text in tables for
> HTML display I can't think of how to do it for a plain text file.
>
> I just need to create a columned table of names and addresses type
> stuff... sprintf?
or a little str_pad on each vari
Miller, Terion wrote:
>
>
> On 7/31/09 10:14 AM, "Bastien Koert" wrote:
>
> On Fri, Jul 31, 2009 at 10:59 AM, Miller,
> Terion wrote:
>>
>>
>> On 7/31/09 9:53 AM, "Bastien Koert" wrote:
>>
>> On Fri, Jul 31, 2009 at 10:28 AM, Miller,
>> Terion wrote:
>>>
>>>
>>> On 7/31/09 8:58 AM, "m0s" wrot
Miller, Terion wrote:
>
>
> On 7/31/09 11:03 AM, "Miller, Terion" wrote:
>
>
>
>
> On 7/31/09 10:54 AM, "Jim Lucas" wrote:
>
> Miller, Terion wrote:
>>
>> On 7/31/09 10:14 AM, "Bastien Koert" wrote:
>>
>>
Jerry Wilborn wrote:
> Am I missing something? Can't this be done quickly/easily with preg_match()?
>
> if (preg_match('/\[(.*):(.*)\s/U', '[21/Jul/2009:00:00:47 -0300]',
> $matches)) {
> print "date: {$matches[1]}, time: {$matches[2]}";
> }
>
> Jerry Wilborn
> jerrywilb...@gmail.com
>
>
ch, while, or if, etc... statement.
Usually the line number will represent the last line in your script. In
this case, they don't seem to match...
Jim
> I did some major code rewriting about halfway through (lines 114-132), and
> suddenly I'm getting the above ERROR. I have exami
ave mine set to 8 spaces while other can have 3 or 4 spaces.
>
> Daniel, Martin, and Jim - Thanks very much, my php runs now, however I don't
> get the result page anymore. My inbox receives the form (missing cells, but
> that's another issue), but the browser doesn'
eir next life. That's a
> promise.
um, your hosting doesn't like that for some reason.
Click it and see what you get.
>
> Thanks!
>
> On Tue, Aug 4, 2009 at 10:58 AM, Ashley Sheridan
> wrote:
>
>> On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote
Ron Piggott wrote:
> How do I change this ELSEIF into an array?
>
> } elseif ( ( $page <> "" ) AND ( $page <> "home_page" ) AND ( $page <>
> "verse_of_the_day_activate" ) AND ( $page <> "member_services" ) AND ( $page
> <> "member_services_login" ) AND ( $page <> "member_services_logoff" ) AND (
Robert Cummings wrote:
> Colin Guthrie wrote:
>> 'Twas brillig, and Jim Lucas at 10/08/09 16:29 did gyre and gimble:
>>> $d = array(
>>> "home_page",
>>> "member_services",
>>> "member_services_login",
orm.
Did you have a question about something? Or simply wanted to let us know?
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Butler wrote:
> quick Q:
> I have this inside a foreach{} that I want to alternate between on and
> off so I can alternate the background-color of my 's.
>
> $tableRowBGcolorBoolCounter != $tableRowBGcolorBoolCounter; //-boolean
> on and off
>
> I am looking thru' docs and books, but can't
es (I run with the E_ALL crowd)
4. Using the and not the ... Hmmm
}
No need to initialize $dr as by default PHP will make it a boolean "false",
then each itteration, it will toggle true/false and substitute the CSS class
-Original Message-
From: Jim Lucas [mailto:li...@cm
Robert Cummings wrote:
> tedd wrote:
>> Hi gang:
>>
>> I want to show the dates for all Fridays +-30 days from a specific date.
>>
>> For example, given today's date (8/11/2009) the Fridays that fall +-30
>> days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug 28, and
>> Sept 4.
>>
>> I'm
ground color on the highest parent that it
> applies to. Hey imagine that, there is a TR tag which stands for TABLE ROW
> tag. Seems obvious to me. This reduces your page size in kilobytes, makes a
> much cleaner HTML rendering to read in source, and is the PROPER way to do
> it.
>
I
http://www.precidia.com/products/ipocket_232.html
TIA!
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es RS232 to ethernet:
http://www.hw-group.com/products/portstore2/index_en.html
Anybody work with one of these?
Again, thanks!
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Per Jessen wrote:
Jim Lucas wrote:
I was asked the other day to build a Station Message Detail Recording
(SMDR) or Call Detail Record (CDR) processor for a client. I started
searching for examples of such a thing. I mostly found commercial apps
to handle the job.
What sort of processing do
Lars Torben Wilson wrote:
2009/8/17 Jim Lucas :
Does anybody know how to use PHP as a daemon without the use of pcntl_fork.
http://php.net/pcntl_fork
Hi Jim,
AFAIK you can't. Read on. . .
I don't want to have to have a person have a special/custom compilation
of PHP just to ru
Lars Torben Wilson wrote:
2009/8/18 Per Jessen :
Jim Lucas wrote:
Does anybody know how to use PHP as a daemon without the use of
pcntl_fork.
Sure. Just start it and leave it running.
I want to launch a daemon out of the /etc/rc.local when the system
starts.
Yep, I do that all the time
Lars Torben Wilson wrote:
> 2009/8/19 Per Jessen :
>> Jim Lucas wrote:
>
> [snip]
>
>> I probably wouldn't have chosen PHP for the first one, but there's no
>> reason it shouldn't work. For the second one, did you mean to
>> write "serial
Lars Torben Wilson wrote:
2009/8/20 Jim Lucas :
Lars Torben Wilson wrote:
2009/8/19 Per Jessen :
Jim Lucas wrote:
[snip]
I probably wouldn't have chosen PHP for the first one, but there's no
reason it shouldn't work. For the second one, did you mean to
write "serial
2.php.net/manual/en/ini.core.php#ini.default-mimetype
php_value default_mimetype "text/css"
Hope this helps
Jim Lucas
ralph_def...@yahoo.de
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Ralph Deffke wrote:
Sorry to bring it to this thread, but could you respond to Ashley in the
"[PHP] wierd behavior on parsing css with no php included" thread.
We would like the solution place in the archives to future visitor benefit.
Thanks
Jim
--
PHP General Mailing
hs are valid and accessible to the same document. I double
> checked them. Please help me. Thanks in advance, Yours, Grega
>
See what you get with this
http://aa.yolasite.com/resources/happytears.doc";;
if (file_exists($filepath)) {
echo 'File found';
} else {
echo 'File NOT found';
}
?>
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Philip Thompson wrote:
> Hi.
>
> During a socket read, why would all the requested number of bytes not
> get sent? For example, I request 1000 bytes:
>
> $data = @socket_read ($socket, 2048, PHP_BINARY_READ);
> ?>
>
> This is actually in a loop, so I can get all the data if split up. So,
> for
This can also override this setting in
the VirtualHosts block and .htaccess file. Check these locations for
any additional include_path changes in the old system.
sometimes you will see things like
include_path = '/path/to/htdocs:.:/var/www/html'
or other variations of this
Jim Luc
x27;);
header('HTTP/1.0 401 Unauthorized');
and if something correct is not entered, they will recieve the 403 Error
So, it could be a PHP thing, but it IS more then likely an Apache issue
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jim Lucas wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530:
When I try to run any php script on apache I get a error
"Authorization required 403 Forbidden". I don't get this error on
IIS. I am using Windows XP professional please h
Budi Setiawan wrote:
hi, im Budi,
recently i have some problems here with displaying jpeg image in firefox
browser. at first, when i tested my web page using IE it jsut works
fine,
but when i decided to test it using Firefox 2 the problem occurs. some
of my
images left undisplayed. but the th
OK, how about something that is hosted on a public server???
10.x.x.x is private :(
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ithin the global scope of the script.
From me: existing only on a per-page request. What ever you
have in here is
tossed at the end of each page request,
ie: DB connections, File Handlers, etc...
So, moving it from the SESSIONs Super Global to t
X field
list($junk, $X) = mysql_fetch_row($followups);
//$X is the same for all rows...
echo "$X\n";
I would check your HTML output for empty tags, this would tell
you that it didn't find anything :(
Hope this helps
Jim Lucas
//reset to row 0
mysql_data_seek($follow
e']} - {$row['rank']} - {$row['country']} -
{$row['email']}\n";
}
echo "\n";
//end member league table
?>
This is untested, but it should give you the results you are looking for.
Jim Lucas
nitrox doe wrote:
hi all,
im very new to php but i
ter O'Toole in a form, and it
appeared as O\'Toole.
Thanks
This is what I use, and it has worked ever time.
if ( get_magic_quotes_gpc() ) {
$_POST = array_map("stripslashes", $_POST);
}
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Larry Garfield wrote:
On Sunday 14 January 2007 12:01 am, Jim Lucas wrote:
This is what I use, and it has worked ever time.
if ( get_magic_quotes_gpc() ) {
$_POST = array_map("stripslashes", $_POST);
}
Jim Lucas
That will break as soon as you submit an array back thro
oes it if the form redisplays after the user has
input invalid data.
All this is being done on the same page.
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: January 14, 2007 1:02 AM
To: Beauford
Cc: PHP
Subject: Re: [PHP] Stripslashes
Beauford wrote:
Hi,
. I have a form - after they submit the
form it shows what they have entered, this is where I get the
\. It also does it if the form redisplays after the user has
input invalid data.
All this is being done on the same page.
-Original Message-
From: Jim Lucas [mailto:[EMAIL
both of the vcr values.
Many of the examples I am looking at say to use echo instead of print, eg
echo $vcrSummary->vcr;
if done correctly, this should echo "Array" and maybe a warning. :(
Jim Lucas
and that just gives me AA and not both values that I would expect.
601 - 700 of 2798 matches
Mail list logo