I'm having a problem with socket read, it's only reading one character.
This may not sound so bad, but when you think that while it's reading all
those one characters, it cannot read anyone else's (it blocks).
Can anyone explain, or have a better way of doing this?
Code below:
--
PHP Genera
I seem to have a php-mysql problem on my new Sun Qube3 (RH Linux).
php works fine, mysql works fine, apache works fine, only the combination of
the three seems troublesome.
php does not recognize commands like mysql_connect()
when trying to start phpMyAdmin I get: "cannot load MySQL extension"
In
I am trying to write a small CGI webserver.
Having finally found out how to pass the Environment vars onto PHP, I am
stumpted to find that PHP wasn't reading them and putting them in their
place (GET vars).
I tried changing the exe from the php-cli to just php. This now brings up a
security err
This really is like life, PHP Sessions aren't particularly secure, just make
a form to post PHPSESSID of a true session to one of ya pages and you can
"steal" a session!
Its possible to check IPs and so on,
PHP's sessions use text files (by default), and pre-populate
$_SESSION/$HTTP_SESSION_VARS
dump all the data to csv and read it in the other end!
"Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The lazy and worthless a-holes at www.infinitehost.com (my host server)
> are forcing me to move all my MySQL data from one server to anoth
Because that's how they get there!
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hail, BB:
>
> On Tue, Jun 18, 2002 at 12:37:29PM +0100, BB wrote:
> >
> > Having finally fou
At a guess, without trying it out
$fp = fopen("your file") or echo "Cant open your file";
$tmp = fread($fp,1024);
preg_match("/(.{8}).(.{5})/",$tmp,$matches);
then $matches[1] will have the first part
and $matches[2] will have the second
note: $matches[0] = whole preg'd text
"Sonjaya" <[EMAIL P
PHPBB
Use google to search :o)
"Martin Thoma" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello! I saw a lot of forums (or boards) which looks almost the same and
> they are done in php. Is there a free forum-software in php?
>
> Martin
>
>
--
PHP Gene
http://www.mattkruse.com/javascript/dynamicoptionlist/source.html
hope this helps
"Otteneder Hermann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi everybody,
i have a short problem:
i have two drop down menues in a form. the content of the second dropdow
http://www.php.net/manual/en/function.is-uploaded-file.php
"César aracena" <[EMAIL PROTECTED]> wrote in message
000901c21b5a$e1aea180$cdc405c8@gateway">news:000901c21b5a$e1aea180$cdc405c8@gateway...
Hi all.
Sorry for this, but a couple of hours ago (imagine. Monday at 3 in the
morning) one of my
$var = preg_replace("/\n*/","\n",$var);
"Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there an elegant way to remove excess blank lines from my form data?
>
> For example; if someone enters the following text and then press' the
> Submit b
== compares 2 variables regardless of type ("1" == 1)
=== compares 2 variables with type in mind ("1" !== 1)
@ supresses errors in functions
"Phil Schwarzmann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What exactly happens when you put three equal-signs t
replace that with
$var = preg_replace("/\n+/","\n",$var);
"Bb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $var = preg_replace("/\n*/","\n",$var);
> "Jason Caldwell" <[EMAIL
$var = preg_replace("/[\r\n]+/","\n",$var);
"Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> neither worked. any other suggestions?
>
>
> "Bb" <[EMAIL PROTECTED]> wrote in
It does depend on the usage, but general files are better
"John Holmes" <[EMAIL PROTECTED]> wrote in message
000a01c21b69$74acc170$b402a8c0@mango">news:000a01c21b69$74acc170$b402a8c0@mango...
> > You're completely right - as usual - now for the file handling...
> what's
> > better? Storing it to
Javascript is client side and is not parsed by the server at all
If you are generating javascript with PHP, and it is in an external file, it
still needs a .php extension
Can you be more specific to the problem, paste some code?
"Luis Miguel N. Tavora" <[EMAIL PROTECTED]> wrote in message
[EMAI
$DBCon = new COM("ADODB.Connection");
$DBCon->Open('PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=your.mdb');
Function CloseSQL() {
global $DBCon;
$DBCon->Close();
$DBCon = "";
}
Function ExecSQL($SQL) {
global $DBCon;
$rs = @$DBCon->Execute($SQL);
if (!$rs) {
Kil
I would like to know too,
"Purushotham Komaravolu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Singleton means only one instance.. i.e. instance of a class per
> webserver... all application scripts should talk only to that same
instance
> irrespective of t
I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box
I have a piece of SQL
INSERT INTO `contracts` (`key`, `content`) VALUES (1,'blah blah blah
character 39 is a single speach mark '+CHAR(39)+' blah blah blah')
Instead of inserting: 'blah blah blah character 39 is a single spe
I just preg_replace("/\'/","\'",$text) and all was good :o)
"David Robley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] says...
> > I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box
> >
I understand about the concat function, but that doesn't really fit into my
scheme of things
I run all text for the web through a function SafeSQL so that values from
the web don't make SQL error or potential hacks occur.
All SafeSQL was doing (for mssql, access and just about any other db) was
what would the adult/child be doing?
"Apokalyptik" <[EMAIL PROTECTED]> wrote in message
1025128477.26152.23.camel@BlackHole">news:1025128477.26152.23.camel@BlackHole...
> I'm the author of a little used, little cared about ftp indexing script
> (http://www.apokalyptik.com/ftp/) and i'm working on
I have assembled a rich text html editor for the web and the code returned
can be quite horrid.
When pasteing from word (as our client wants to), the code returned looks
something like this:
In Waste Management:
Who collects my waste?
Collection Authority
District Councils
Who deals wi
THANKS!!!
great help! :oP
"Liljim" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Actually, I just threw in this amendment:
>
> function CleanUpHtml($var)
> {
>
> $var = preg_replace("!!is", "",
> $var);
> $var = preg_replace("!!is", " bordercolor='#66'
I'm having a problem using strip_tags.
When I try and run a table through strip_tags with the following vars, it
looses everything after the first cell with content in, i.e: nothing after
the first cell is returned, not even a
can anyone help?
is this a PHP bug?
--
PHP General Mailing List
" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, Jul 01, 2002 at 12:35:53PM +0100, BB wrote:
> > I'm having a problem using strip_tags.
>
> Sounds like you're using it wrong. Re-read
> http://www.php.net/ma
e
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, Jul 01, 2002 at 04:09:04PM +0100, BB wrote:
>
> Dude, c'mon! I asked for a "_sample_" for a reason. First, I didn't want
> to have to wade through a ton of HTML. Second, it'd help you isolate the
&
be called and run in PHP script), because the images will have additions
and modifications on a regular basis; and they come as PCXs.
Anyone?
--BB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and to bring it up another level:
>
>
:oP
"Michal Dvoracek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > > ?>>
> > >
> > > ?>>
> > > } ?>>
> > > ?>>
> > >
> >
>
> better is (IMHO):
> >
> >
>
> Regards,
> Michal Dvoracek
Thanks, installed and working
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, 8 Jul 2002, BB wrote:
> > I'm writing a reporting system and I have a problem.
> >
> > I need to insert PCXs
new gif, and I don't get any errors. Nothing
Someone please help,
note: the location of the images cannot be changed
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, 8 Jul 2002, BB wrote:
> >
batch files rock!
:o)
"Bb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> im having problem getting this converter to work, im running the following
> code:
>
> exec("cmd /c f:; cd \Products\legacyipc\ipc_dev\Chapter
I got a problem with that!
I've written a batch file that sits in the same dir as the PHP script and
when I exec it, it doesn't work! I've thouroghly thrashed the batch file
for errors and it came up ok every time. if I echo the exec it only returns
the first line of the batch file.
Anyone?
"
$filename = "your/file.gif";
header("Content-Type: image/gif");
header("Content-length:".filesize($filename));
$fn=fopen($filename,"rb");
while(!feof($fn)) {
echo fread($fn, 4096);
}
in fopen( , "");
the b denotes to read as binary and is only nessecary on a windows system
"Jj Harrison" <[EMAIL
I've got an application that requires dos folder names (8.3 standard) as
input.
I also have PHP, which quite happily can cope with both.
Can someone help me write a function to translate full paths to dos paths
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
It doesn't matter how fast it does it. It matters what language it does it.
C and C++ are a big no no as our company doesn't have a compiler (winblows).
Thanks for the pointer
"David Otton" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Wed, 10 Jul 2002 1
Thanks to all, I actually found a work around with the program I am using
and I'm much happier!
Thanks for all your input, it'll be useful if i ever need to convert long
names to 8.3 :oP
--BB
"Bb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:
37 matches
Mail list logo