Upload empty file with ftp and change its permission (chmod o+w log.file).
frank reeves wrote:
Hi,
I have an account on shared server and am trying to
write a logfile (a dump of an email which i use mail()
to send) to a logfile in my home dir. This logfile
will grow with all emails send by my ap
1. Check if the table column is large enough to store the image
2. fflush($FILEID); just before fclosing it.
Gerhard Knapp wrote:
hi, perhaps someone can help me ...
i store jpgs in a database, then i read them out
and write them to a tempfile, the sizeinformation says,
the binary blob = 65.535 by
A little corection
Ernest E Vogelsinger wrote:
At 09:42 20.03.2003, Angelo Zanetti said:
[snip]
Hi guys how do I set the cursor to start in a particular textfield (password
field) when my php page starts?
TIA
[snip]
Simly go to mjs/directory.php, line 3, and remove any output that is
there, mosty likely some white characters.
PHPSpooky wrote:
Glory,
On the internet server, apart from the beginning tables & html, this is
what I get ..
Warning: Cannot modify header information - headers already sent
by (ou
$GLOBALS
Thomas Weber wrote:
Hi,
is there any way to get a list of all defined variables?
It is intended to be used to get and identify all defined objects to call
some costum decunstructor at the scripts end.
Thanks!
Thomas 'Neo' Weber
---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP General Mai
he same.. ? Just a thought.
And lastly, what qualifies for a White Character?
PHPSpooky
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 6:14 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] 'Cannot send Headers'
is outputting..
somehow it's taking it as the output and this generating the Warning!
But I need the HTML in the directory.php for the page.. so what do I do?
PHPSPooky
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 6:14 PM
To: [
The top means the top of the file, not the top of your coding.
Simply:
Line 1. of directory.php:
Line 2. of directory.php:
Line 3. of directory.php:
PHPSpooky wrote:
Headers can't be sent after HTML output, it's as simple
as it sounds. What that means is, if you suddenly decide
you want to
unlink()
Dale wrote:
>I've currently made a signature uploader.
>
>I know the code that shows a drectory's contents but whats the code to
>delete something?
>
> - Dale
>
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I just coded a cache mechanism for some slow code that looks like this:
$cache_file_name = "cache/$id/$tid". ($showall ? '_all.php' :
'.php');
$cache_dir_name= "cache/$id";
if(!file_exists($cache_file_name) ||
@filectime($cache_file_name) + 30 < time() )
The filepointer is closed after your script finishes executing, you
cannot do it.
V_Suresh wrote:
>Hi All,
> Suppose I'm opening a socket connection to a server on some
>port, and I do some transactions, and generate html. But I 'm not
>closing the file pointer(socket). Only after the use
attribute has the value "radio" or
"checkbox".
Upon submiting a form, only "successfull" checkboxes are submited,
so on the next page you only need this loop:
foreach($d_c_arr as $i) {
echo '';
}
$d_c_arr contains only checked checkboxes.
Marek
E
I've got a nice progress bar with this code:
for($i=0;$i<10;$i++) {
flush();
sleep(1);
echo '';
}
But read manual for the flush() function.
electroteque wrote:
>hi there i have created a script to regenerate thumbnails for a photo
>gallery , i have changed my code to use gd true co
Try a helper function
function helper() {
return a::test();
}
$testfunct = "helper";
...
Unger, Christian wrote:
>I have problems to make a dynamic call, please help me
>
>class a {
> function test() {
> echo "Hallo";
> }
>}
>
>$testfunct = "a::test";
>
>$testfunct();
>
>?>
>
>r
Don't forget to use urlencode after serializing.
David Robley wrote:
>In article <[EMAIL PROTECTED]>,
>[EMAIL PROTECTED] says...
>
>
>>Is it possible to pass an array in a form post? If so, how do I reference
>>the array on the next page?
>>
>>Thank You
>>Paul
>>php
>>
>>
>
>I believe you
Use header("Location: page.php"); to redirect the browser, you should
allways do it after a post that changes or adds or deletes some data on
the server.
Roland Swingler wrote:
>Hi
>
>I have a problem with caching on IE 5.1.4 on Mac Os X. (PHP 4.0.5)
>
>The page I want to use is a simple file
Check file and drectory permisions.
ROBERT MCPEAK wrote:
>Our box recently went down and after reconfiguring it we're left with a
>semi-operation mySQL. One error I'm getting is this:
>
>mysql> select region from clip_art where region is not null and
>released = 'yes' group by region;
>ERROR 1:
var tmp,url;
url = 'http://site/script.php?';
while(tmp = myArray.shift()) {
url += 'phparray[]' + escape(tmp);
}
document.location.href = url;
In script.php, you'll find array named phparray
kale wrote:
>Hy,
>I have an array make with a javascript.
>How can I read values with PHP from it
Terence Lee wrote:
>Hello
>
>i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i
>try to start the apache but encounter the following error msg
>
>"The procedure entry point _ecalloc could not be located in the dynamic
>link library php4ts.dll"
>
>"Unable to load dynamic libr
I forgot &, the right version:
var tmp,url,separator;
url = 'http://site/script.php?';
while(tmp = myArray.shift()) {
url += separator + 'phparray[]' + escape(tmp);
separator = '&';
}
document.location.href = url;
Marek Kilimajer wrote:
> var
.location.href = url;
return false;
}
//-->
Click Here
kale wrote:
>This is a javascript?
>Where must I put this lines?
>Thanks for help.
>Kale.
>
>-Original Message-
>From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, September
I use this, it includes also national characters
$name=strtr( $name,
"`O}ao~¾YYµAÁÂAÄAAÇEÉEËIÍÎI?NOÓÔOÖOUÚUÜÝßaáâaäaaçeéeëiíîi?noóôoöouúuüýy
*!@#$%^&()+=",
"SOZsozlYYuAAACDNOOYsaaaconooyy_");
Javier Montserat wrote:
> i want to format the file
The answer is compression - the image with text is more complicated, so
the compression ration is lower
Rodrigo Peres wrote:
>Hi,
>
>I'm using GD to put a dinamic text in some buttons. The problem is that the
>original image that I use has 8k and after i put a black text it jumps to
>20K. What
Shouldn't be possible, as it would be a security risk.
electroteque wrote:
>yeh i was getting too deep into automation scripts on windoze but became
>system intensive thanks
>
>"Justin French" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>>I seriously
exec("arp $_SERVER[REMOTE_ADDR]", $output);
$output[0] should be something like
? (192.168.1.37) at 00:E0:4C:00:30:2D [ether] on eth0
Chris Cook wrote:
> Hello all,
>
> I am working on a LAN application and am interested in obtaining the
> user's network card address to limit usage of the pro
Hi,
Split the calculation up an use echo to find the problem.
David Rice wrote:
> Hi:
> I am attempting to calculate a mortgage payment using the following code.
>
> $P = 10;// principal outstanding
> $I = 4.5;// annual interest rate percentage
> $N = 20;// number of yea
doesn't mean output unless you use echo or print or whatever to
output from there anything.
Just use header("Location: yournewpage.php"); at the end.
Meltem Demirkus wrote:
>>I mean I made a page with php and other stuff..And there is form .When I
>>click on okbutton php is dpoing what it sh
:2) in
>C:\FoxServ\www\debugger\project_module\project_update_.php on line 37
>
>the line 2 is
>
>and start_html.php includes:
>
>
>
>
>
>
>
>
>
>
>
>and line 37 is the header I wrote ?>
>
>
>- Original Message -
>From:
Contents of the Host: header from the current request, if there is one.
Does your browser send Host: ? If you use IP it doesn't
Cirstoiu Aurel Sorin wrote:
>This is not the problem. I understand what you mean.
>Now you wrote wrong and I copy pasted.
>I tried with $_SERVER['HTTP_HOST'] .
The server needs to be set up correctly - it needs to know what time
zone it is in and if the BIOS time is GMT or local.
lallous wrote:
>Isn't the gmdate() supposed to return the same value when run from two
>different timezones?
>
>
>I run it on GMT+2 system and EDT system, and I get 1 hour di
If you can use exec you may use convert, or also imlib module provides
very good results.
Fifield, Mike wrote:
>I sent this email out earlier this morning and got no response. It was quite
>early so I thought I would send it again now that more people are hopefully
>at work :-)
>
>
>
>
>
>I h
$string = $int1 . $int2
Meltem Demirkus wrote:
>Hi,
>
>I want to add one integer to the end of another , which function can I
>use?..
>
>thanks
>
>meltem
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you cannot use square brackets, get the values yourself from
$_SERVER['QUERY_STRING']
Alex Shi wrote:
>How to ontain data from a group of checkbox using same name?
>For example, in a form there're 6 checkboxes and all named as
>"Interesting_Area". I know if put a pairs of square brackets at
You may use either dBase ( http://www.php.net/manual/en/ref.dbase.php ) or
http://www.php.net/manual/en/ref.dba.php
Ram K wrote:
> Hi
>
> I want to store the data of a table in a file and read that file just
> as one would read a table. For e.g. I have a table t_data with cols
> name,numbe
mysql_insert_id() will tell you the number of last auto_increment
insert, you can use this, but you must keep it using session on the
server side for security reasons. But better solution be to use session
or hidden fields in your forms to pass the values from page to page and
insert them at o
Didn't you enable some apache extentions, like compression.
PHP wrote:
>Hi all,
>Until yesterday i was running Apache/2.0.36 (Unix) mod_ssl/2.0.36 OpenSSL/0.9.6c
>PHP/4.2.1 and was able to flush script output to browser (using flush() ), before
>the script stops executing. I upgraded to Apach
Make sure you are not outputing anything besides the headers and actual
content of the file, you may also try looking at the downloaded file if
there are any php errors and/or warnings.
Ralf Bengl wrote:
>hallo ...,
>
>my name is ralf and i read the comments from the last weeks about
>"downloa
Hi,
Mike Smith wrote:
>I am stumped on a project for a receiving system. I'm not sure how to handle
>receiving more than one line item. I can UPDATE ... WHERE id=$detid when I
>have 1 item, but how would I get the SQL to fire X times depending on the
>number of line items I have AND UPDATE the a
You can use http://www.php.net/manual/en/ref.mcrypt.php
Bob Bowker wrote:
> Maybe "reversible hashing of a tar file" is a better way to describe
> what I need ... I want to make a tar file unreadable (at least can't
> be uncompressed) by anyone who doesn't know the key.
>
> Bob.
>
> At 10:43 A
Is the apache parent process ( the one running under root) getting
larger too?
John Wards wrote:
>After being told off on the dev list I have posted this on this list (I
>thought it was techie enough to go on that list but I was wrong)
>
>I am running a large PHP/MySQL/Apache driven website
Add ORDER BY date_col DESC LIMIT 1
Merritt, Dave wrote:
>All,
>
>I apologize up front for being off topic, but I don't want to have to
>subscribe to other lists unless necessary. I know that someone on this list
>should be able to help me out.
>
>I have the SQL string below that I am running.
Then I would not think it's php issue, as php is called by forked
children.
There might be also problems in the libraries, so check for updates.
Sorry, cannot help you more.
John Wards wrote:
>Hmm I am unsure as my server crashed on me this morning and restarted it
>self so every thing is bac
It's not possible, imagine
$firstname = new flashPash();
$secondname = $firstname;
Now is the log name secondname.log or firstname.log. Use new property.
Simon McKenna wrote:
>Hi all,
>
>I'm new to the php world and have just finished building my first class,
>
>It works pretty well, but i've
Don't think windowed version will work, but try to get some new 32-bit
command line version that understands long filenames.
YC Nyon wrote:
>My application lets users to upload a zip file into the server. Once done, i
>will use php execute function to run a command line to unzip the uploaded
>f
Try direct connection to the server to see the response it sends, you
may also try to send header("HTTP/1.0 302 Found") and see if that helps.
What browsers does it happens to?
jana konickova wrote:
>I have the php script with the command
>Header("Location: https://$SERVER_NAME$path";);
>which
Try eval(), like this:
$str= "'THREE'=>3, 'FOUR'=>4";
eval("\$data2 = array('ONE'=>1,'TWO'=>2,$str);");
Max Sullivan wrote:
>I am trying to populate array values and keys from a variable with no
>luck.
>
>Lets say I have the following array.
>
>$data1 = array('ONE'=>1,'TWO'=>2,'THREE'=>3,'FOU
It's a shell script, and your shell drops root privileges. Use a shell
that doesn't or use a C-wraper.
tim tom wrote:
>Dear Pete,
>Yes, apache runs as nobody. But I have setuid add.sh. Wouldn't that be sufficient ?
>
>--
>tim
>
>--- Peter Houchin <[EMAIL PROTECTED]> wrote:
>
>
>>you need to m
switch($DOCUMENT_URI) {
case '/':
include(" watch you want");
break;
case
}
Eric C. Pollitt wrote:
>I would like to know how to conditionally included a file based on the
>document location.
>
>The purpose is for placement of location-specific navigation men
Try to set it in "disable_functions", it may help, or may not. Otherwise
disable it in php sources or even better regexp your scripts to change
mail to something else.
Liam wrote:
>Yeah, mail() again...
>
>I want to disable the default mail command and replace it with my own.
>I've written a f
won't help, it's forbidden to mix aggregate columns with non aggregate
without a group by clause. Make your first query and then the sum.
Denis Basta wrote:
>Hello,
>
>Try this:
>SELECT SUM(duration) AS summ, ..., ..., ..., FROM table1 WHERE condition
>Hope it will help ya!
>
>Regards,
>Denis B
You are very general, what you are asking for is all PHP is about.
karthikeyan wrote:
>Messaging Solution
>
>I want to develop a web-based Messaging System where the clients needs the messages
>and server keeps sending the messages based on Technical Request from the client.
As he uses postgresql, he should use *pg_last_oid()*
Scott Houseman wrote:
> Hi there.
>
> You can use the function mysql_insert_id( [link id] ).
>
> regards
>
> Scott
>
> Faisal Abdullah wrote:
>
>> Hi people,
>>
>> I have a table with a column called ID (auto-increment).
>> Is it possible to k
I would do it this way (it fails if some names are same):
Chad Winger wrote:
>Hello Rudolf,
>Thank you for responding to my post, I really appreciate it.
>
>I ran the script you sent me, and then I tried looking up the syntax to try
>to figure out what it means. As it would be pointless for me j
Look at the COM support (never have worked with it but it should be what
you are looking for)
Matthew Tapia wrote:
>Can you use PHP to add appts to my microsoft outlook calendar or open up a
>document in ms word?
>
>
>
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
If you mean phpinfo.php which calls just phpinfo(), here it is:
César Aracena wrote:
>Thanks. I installed PHP first and will install MySQL (once the download
>finishes) hoping they'll work together just fine. One thing's missing... the
>phpinfo.php file, which should be here... but isn't... Sho
else, which would
>lead me to the '5' i'm looking for?
>
>-- snip snip --
>
>if($result = pg_exec($db, $sql))
>{
> $query = "success";
> echo "oid : " .pg_last_oid($result);
> }
>
>-- snip snip --
>
>Sincerely,
You encounter a race condition
bob parker wrote:
>SELECT idno ORDER BY idno DESC LIMIT 1;
>assuming idno is what gets auto incremented
>bob
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I just tested it (with wrong password) and it worked.
Jason wrote:
>As an adendum to this... my initial thoughts are that the forms are not
>posting correctly in XP. I'm using the POST method.
>
>
>Jason Cathcart
>Check Out My Site: http://www.biohazardous.org
> -Original Message-
> Fr
if $datetest has a strict format, use $getdate[1]==$datetest, also put
$datetest="$day.month.$year" out of the while loop, it doesn't need to
be recreated over and over.
Chad Winger wrote:
>Yes, I'm STILL a newbie :) I've gotten pretty far in a few days thanks to
>you all. I have a new questio
put this to the begining of your some.php
if (eregi("some.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
Brian McGarvie wrote:
>How could you redirect somone from directly accessing a file...
>
>Meaning... if an engine spiders www.domain.com/some.php
>
>How could you make s
William wrote:
>1) Payroll apps require large tax libraries (federal, every state and
>locality).
>
>
>
Split them into more files (diffrent states etc.) and include_once them
when they are needed,
and perhaps mysql can take part of the job.
>4)Loosely Typed Variables.
>I fear it might
The Content-Type header changes, when uploading, you can get it from
$HTTP_POST_FILES['userfile']['type'], also set the filename using
header("Content-Disposition: attachment; filename='. $filename );
Christian Ista wrote:
>>You'll need to prompt the download by sending the appropriate heade
If you look at the tutorial no. 5 on www.fpdf.org, all you need is to
change LoadData function, example:
function LoadData($condition)
{
$res=mysql_query("SELECT * FROM table WHERE 1 AND ($condition)");
while($data[]=mysql_fetch_row($res) ) { }
return $data;
}
Chuck Payne wrote:
>Hi
wildcard in SQL is %, so your query looks like:
$query_search1 = "SELECT * FROM secureworks WHERE $varSort_search1 LIKE
'%$varText_search1%'";
[EMAIL PROTECTED] wrote:
>Howdy all!
>
>I've built a page in Dreamweaver MX that uses PHP for scripting. I
>can get
>data out of my mysql database but
Well, this would work in MySQL, I have even more LEFT JOINs, so go find
out if it is possible with Oracle.
Faisal Abdullah wrote:
>Hi again people! How's it goin?
>
>Here's the question
>How do I do left joins from multiple tables?
>I want to do something like this:
>
>"select a.name, b.departm
Do it after the loop finishes
while( ){
if( something ) {
print out;
reinicialize
}
}
print out
Naintara Jain wrote:
>I have a logic problem:
>
>I have a complicated query. The main thing is that I have an ID, and for a
>particular ID, I may have between 1 to 3 rows r
What I don't understand is how can your webserver create a file and then
not to have permission to read it.
What is your setup?
Jaski wrote:
> No Edwin .. I can't do any thing to that file .. not even from my ftp
> client .. can't download can't change permissions ..
>
> The server is managed
Christian Ista wrote:
>Hello,
>
>I change the procedure to create an account for users. For the moment,
>the user (to create and log in), have to create an account with e-mail +
>password. I'd like to create a procedure to check the e-mail (login)
>validity. But I'd like to check if the e-ma
Don't know much about DOM, but it seems you can use dump_mem() to dump
the xml into a string, and then replace your first line
Raphael Bauduin wrote:
>Please, don't tell me I can't set the doctype with php!?
>Will I have to user a 3 liner in perl to set the doctype? :(
>
>Raph
>
>
>Raphael Baud
Turn off notice logging in your php.ini, just keep warnings and errors.
Jason Young wrote:
> I have some code that a user can set a description about an item to be
> posted, and then add some image files of the item.
>
> Its a 3x3 frame of fields, along with an 'include'
> line for each one..
Not possible, but workaround is to pass the variable name and use it as
a variable variable, but for this the variable needs to be global.
Trevor Dowling wrote:
>Can anyone help with this?
>
>I am relativly new to PHP and am trying to use variable numbers of
>parameters to functions using the f
something that is
> not reported as an error to begin with?
>
> But even so, what about the other Notices I might receive in regards
> to other debugging.. I have to get rid of all that, too?
>
> Basically I'm asking if this is the only way to do it..
>
> Tha
The algoritm gdlib uses is fast but worst. Use either exec("convert
...") or imlib extension
Michael F. wrote:
>Hello,
>
>I have a php script which resizes a jpeg file. I use ImageCopyResized and
>ImageJPEG function. But the result picture quality is not enough good. I use
>ImageJPEG with qual
Use either session to "remember" the checkboxes' name/value pairs or
hidden fields.
Tom Ray wrote:
>I'm having a small problem with a form I'm designing and I hope someone can
>point me in the right direction here. The form's function is rather simple
>actaully. It's supposed to take the inform
Display a page first, then use the redirect header to redirect the
browser to the actual file.
Merritt, Dave wrote:
>All,
>
>I'm trying to write a script that will allow the user to download/save a
>file but I also want to be able to display a web page in the browser window
>as well. If a user
Or better UPDATE table SET col = col +1
Jay Blanchard wrote:
>[snip]
>I have a field on a MySql database that is started with a 0, and I want
>to add 1 to this field every time a button is pressed on a form. So it
>should add one every time, like if there is 5 and you press it one time
>it would
nsion?
>
>Thanks!
>
>
>"Marek Kilimajer" <[EMAIL PROTECTED]> az alábbiakat írta a következo
>hírüzenetben: [EMAIL PROTECTED]
>
>
>>The algoritm gdlib uses is fast but worst. Use either exec("convert
>>...") or imlib extension
>>
>>Mic
this must work:
exec('echo "`date` 192.168.10.123 is down, lets call the admin. I was
sleeping for 10 minutes" | smbclient -M '. $compname);
Mario Ohnewald wrote:
>Hi Henry!
>
>
>
>
>>From: Henry [mailto:[EMAIL PROTECTED]]
>>
>>How about
>>
>>>$command="\"`date` ===> $ip is down, lets call t
This is for java, javascript, or flash, not much to do for php.
Kenneth Love wrote:
>hi all.
>
>i'm interested in creating a php game that generates a page of random (ish)
>images, one of which is waldo (or the like). when the player clicks on
>waldo, they're taken to the next, slightly harder l
Just dont forget that eval assumes php code, so escape from it first
using ?>
Erwin wrote:
>>I'm having quite a dumb problem with PHP... It's probably more a
>>result
>>of brain freeze than anything else, but if anyone could help it'd be
>>very much appreciated.
>>
>>Basically, I need to includ
Look at phpnuke, or any other website management project
Research and Development wrote:
> Hello. Has anyone noticed that some sites can display a list of users
> currently looking at their site? I would like to see the code to do
> such things.
>
> Thanks in advance.
>
>
--
PHP General Mai
Simply make your own php module.
Anna Sotnichenko wrote:
>Hello All!
>
>I want to transfer a PHP script with minimum changes from IIS under Win2000
>to Unix. My ISAPI PHP script calls some external C-functions through PHP
>W32api extension.
>Is there a way to call external C-function from PHP-sc
$d=opendir('/home/');
while($u=readdir($d)) {
if($u!='.' && $u!='..' &&
(fileexists('/home/'.$u.'/public_html/index.html') ||
fileexists('/home/'.$u.'/public_html/index.php') ... more index files)) {
echo ..link..;
}
}
untested
Bryan Koschmann - GKT wrote:
>Hi,
>
>I need to do someth
Hope the sites have no banners :), they change all the time
John Holmes wrote:
>You could cache/save the actual contents of the file, then when you read
>it next time, compare it to what you saved and see if it changed. You
>may want to filter out everything but what's between and ,
>so you're
When we are at it let's don't forget htmlspecialchars
skitum wrote:
>hey folks, don't forget quotes ;o)
>
>readonly>
>
>I use one like this:
>readonly>
>and it works ok.
>
>Peace & Love
>skitum
>
>- Original Message -
>From: "Jay Blanchard" <[EMAIL PROTECTED]>
>To: "'Ken'" <[EMAIL PR
You can use phpnuke or similar to achieve this, all you need is to
decide which database to use (you may use
Host: header, or directory). But sure, this won't change your dns
records or Apache conf files.
Tony Burgess wrote:
>Hi All,
>
>I'm really just looking for some advice!
>
>I am looking
You mean enum column type? There is nothing special about it, besides
you cannot change it to anything else. echo your update query and see
what it looks like.
Shiloh Madsen wrote:
>Hi,
>
>Im using a form that updates a database entry. In it one of my fields is a drop
>down/list field. Whenev
The only option is to recompile mysql
ROBERT MCPEAK wrote:
>Much to my dismay, I've learned that the mySQL minimum
>indexable/searchable word length is 3 characters. This is a real
>problem for me. Anybody know a workaround, or how to tweak mySQL to
>allow for matches of words 3 chars or less.
reg_match('^/[^/]*/([^/]*)/',$a, $match)
$match[1] should contain what you need
[EMAIL PROTECTED] wrote:
>I've got a situation where I need to pull a string from a variable but I
>can't seem to get it figured out.
>
>I.e.
>
>value of $a = /realtor/Remax/Ed/files/
>
>I need to get the string be
What does php_info() say, was php compiled --with-dom
Davíð Örn Jóhannsson wrote:
>
>I ran into a problem using new_xmldoc() function I just set up PHP v
>4.2.3 because the 4.0.1. version resulted:
>Fatal error: Call to undefined function: new_xmldoc()
>
>and so dose the new version v.4.2.3
>
That's likely an old name, look at the docs
Davíð Örn Jóhannsson wrote:
>Don't know it's a just downloaded the win32 binary package
>
>-Original Message-
>From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
>Sent: 27. september 2002 15:58
>To: PHP
>
ing="iso-8859-1" whene
>you
>Have created a new_xmldoc with new_xmldoc("1.0");
>
>Thanks for your time.
>
>-Original Message-
>From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
>Sent: 27. september 2002 16:28
>To: PHP
>Subject: Re: [PHP] FW:
set *safe_mode_exec_dir *and put there your binaries
christian haines wrote:
>here is some more info
>
>i figured out the exec fails because php is running in safe mode. that is ok
>when i am at home developing (i can turn it off) however when i go to upload
>my app to my server which runs i
INSERT INTO data SELECT * FROM tmp_data WHERE condition_definition
Radu Manole wrote:
>Hi guys,
>
>I have 2 identical tables called "tmp_data" and "data". (on the same mysql database).
>What would be the simple and more convenient way to update table "data" with a row
>from table "tmp_data".
>(
I think you can still make a tempfile in /tmp, use this directory
Jonas Geiregat wrote:
> this is my code
>
> $pdf = pdf_new();
>
> pdf_open_file($pdf);
> pdf_begin_page($pdf, 595, 842);
> pdf_set_font($pdf, "Times-Roman", 30, "host");
> pdf_set_value($pdf, "textrendering", 1);
> pdf_show_xy($p
I use FPDF www.fpdf.org , free even for commersional use and doesn't
require any special module loaded
Ryan A wrote:
>Hey guys,
>I know this is totally off topic on a php list but I have a client who wants a PDF
>document and since I have never made one before...which is the easiest and best t
web?
>
>Justin French
>
>
>on 30/09/02 9:51 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
>
>
>
>>I use FPDF www.fpdf.org , free even for commersional use and doesn't
>>require any special module loaded
>>
>>Ryan A wrote:
>>
>>
I know about /etc/mime.types, does that help?
christian haines wrote:
>hi all,
>
>i have been looking around on the net for a relatively complete
>mime-type listing (possibly showing extensions) but have not come across
>anything.
>does anyone know of such a list or where i could obtain one?
>
>
Your session variable overwrites the get variable, use $newlang
session_start();
session_register("lang");
if(isset($newlang) $lang=$newlang; // check here for valid values
if (!isset($lang)) { $lang = 'se'; }
Daniel Alsén wrote:
>John W. Holmes propably said:
>
>
>
>>Is register globals on
mysql_error() will contain error text if "it didn't work"
Henry wrote:
>Hi All,
>
>mysql_affected_rows() returns zero if you update without changing the data
>in a database record. How do you tell the difference betwix "it worked but
>nothing changed" as opposed to "it didn't work"?
>
>TIA
>
>He
601 - 700 of 2242 matches
Mail list logo