Besides, are there some APIs I can use if I want to set&get environment
variables like DOCUMENT_ROOT in my extension(similar to
sapi_cgienv_get/set).
Thanks!
2012/2/17 Rui Hu
> hi,
>
> I just started to write a simple PHP extension "hello", but encountered
> some problems. I followed tutorials
I found lot of poeple having matters with chars over 1 byte, so I've
published that : http://www.phpcs.com/codes/ENCODAGE-UTF16_51501.aspx
If you take a look, give me a feedback please (to a...@apieum.com)
regards,
greg
Le 05/04/2010 17:08, sudhir patil a écrit :
> Thanks Nathan,
>
> i tried wi
Thanks Nathan,
i tried with utf8_encode, that doesn't help. Yes both content-type & metatag
are set to utf-8.
When i try utf-8 converted csv everything shows up properly. Issue is when i
try to change encoding in php, special characters are messed up.
Character that i am facing problem with is
sudhir patil wrote:
> I have csv file with special characters, stored in default
> encoding(ISO-8859-1). I am convert file contents(string) to UTF-8using iconv.
> This doesn't convert special characters properly, shows broken on fronted.
> Page encoding & meta tag are properly set to utf-8.
>
>
On Tue, 05 May 2009 13:20:56 -0500, Skip Evans wrote:
>[...]
>But now I have a problem implementing this on their
>development site, which is just a duplicate code base inside a
>directory public_html/_dev and a domain name dev.sitename.com,
>instead of sitename.com.
>
>The problem is, and I be
Did you check the apache error log?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andres Gonzalez wrote:
> Hi,
>
> I have got an extension loaded in all three of my php config files (in
> cli, in cgi, and in apache2 directories). The functions in the
> extension are all accessible when running test scripts from the command
> line, like:
>
> php init.php
>
> for example, in t
Kyohere Luke wrote:
> You might have something there - never really thought about how windows
> forms the 8.3 names... & not many resources online about it ...
>
> The actual path is "c:\Program File\Gammu 1.23.91\bin\gammu.exe"
> I'd used "c:\Progra~1\Gammu~1\bin\gammu.exe"
You take the first 6
...
-Original Message-
From: l...@beyonic.com [mailto:l...@beyonic.com]on Behalf Of Kyohere
Luke
Sent: Thursday, March 19, 2009 11:48 PM
To: Shawn McKenzie
Cc: php-general@lists.php.net
Subject: Re: [PHP] Re: Problems with exec() on windows
You might have something there - never real
I've skimmed some of thread, but I have not been following closely so please
disregard if I'm just rambling. However, I've worked with lots of software
on DOS boxen that couldn't handle long file names. If they also choke on
the tildes then I usually just write a batch file that calls the full pa
On Fri, Mar 20, 2009 at 1:47 AM, Kyohere Luke wrote:
> You might have something there - never really thought about how windows
> forms the 8.3 names... & not many resources online about it ...
>
> The actual path is "c:\Program File\Gammu 1.23.91\bin\gammu.exe"
> I'd used "c:\Progra~1\Gammu~1\bin\
r with '' ie double/single
> quotes...
> >>
> >>
> >>
> >> -Original Message-
> >> From: Kyohere Luke [mailto:l...@beyonic.com]
> >> Sent: Thursday, March 19, 2009 10:18 AM
> >> To: Bastien Koert
> >> Cc: Shaw
"Kyohere Luke" wrote in message
news:9bc423c50903191018k3c783213l4929cf2878e98...@mail.gmail.com...
> Eventually settled for getting rid of the spaces in the path. That worked.
> Thanks.
> Luke
>
> On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote:
>
>>
>>
>> On Thu, Mar 19, 2009 at 12:48 PM
gt; if you're going to deal with file/pathnames in windows/linux.. you're going
>> to have to encapsulate them with "" or with '' ie double/single quotes...
>>
>>
>>
>> -Original Message-
>> From: Kyohere Luke [mailto:l...
single quotes...
>
>
>
> -Original Message-
> From: Kyohere Luke [mailto:l...@beyonic.com]
> Sent: Thursday, March 19, 2009 10:18 AM
> To: Bastien Koert
> Cc: Shawn McKenzie; php-general@lists.php.net
> Subject: Re: [PHP] Re: Problems with exec() on windows
>
&g
single quotes...
>
>
>
> -Original Message-
> From: Kyohere Luke [mailto:l...@beyonic.com]
> Sent: Thursday, March 19, 2009 10:18 AM
> To: Bastien Koert
> Cc: Shawn McKenzie; php-general@lists.php.net
> Subject: Re: [PHP] Re: Problems with exec() on windows
>
&g
10:18 AM
To: Bastien Koert
Cc: Shawn McKenzie; php-general@lists.php.net
Subject: Re: [PHP] Re: Problems with exec() on windows
Eventually settled for getting rid of the spaces in the path. That worked.
Thanks.
Luke
On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote:
>
>
> On Thu, Mar 19
Eventually settled for getting rid of the spaces in the path. That worked.
Thanks.
Luke
On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote:
>
>
> On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote:
>
>> Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has
>> spaces in it
Kyohere Luke wrote:
> Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has
> spaces in it
> Haliphax, thanks for your comments. I tried escapeshellarg() to no end.
>
> I'm exploring your reply regarding proc_open, but how exactly does proc_open
> separate the arguments from
Eventually settled for getting rid of the spaces in the path. That worked.
Thanks.
Luke
On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote:
>
>
> On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote:
>
>> Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has
>> spaces in it
On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote:
> Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has
> spaces in it
> Haliphax, thanks for your comments. I tried escapeshellarg() to no end.
>
> I'm exploring your reply regarding proc_open, but how exactly does
> pr
Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has
spaces in it
Haliphax, thanks for your comments. I tried escapeshellarg() to no end.
I'm exploring your reply regarding proc_open, but how exactly does proc_open
separate the arguments from the command?
Unless i'm mistak
Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has
spaces in it
Haliphax, thanks for your comments. I tried escapeshellarg() to no end.
I'm exploring your reply regarding proc_open, but how exactly does proc_open
separate the arguments from the command?
Unless i'm mistak
Kyohere Luke wrote:
> Hi,
> I'm trying to use exec to call gammu.exe and send sms on windows XP.
>
> This works from commandline:
>
> C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2"
>
> But if I run it through php like this:
>
> $command = "\"C:\path\to\gammu.exe\" --sendsms EMS 20
On Tue, Mar 3, 2009 at 8:32 AM, Shawn McKenzie wrote:
> Terion Miller wrote:
> > I have two queries one pulls out which users to use and the second pulls
> > those users orders
> > Looks something like this but is only pulling the first record:
> >
> >
> > $query = "SELECT `UserName`, `A
Terion Miller wrote:
> I have two queries one pulls out which users to use and the second pulls
> those users orders
> Looks something like this but is only pulling the first record:
>
>
> $query = "SELECT `UserName`, `AdminID` FROM admin
> WHERE Key1 = 'YES' ";
>
> $result
Am 2008-11-03 14:43:43, schrieb Anders Norrbring:
> I've been staring myself blind, so now I don't get anywhere, please do
> advice..
>
> I have a web page printed with PHP, in a table I need to display images that
> are stored in a SQL DB.
> Getting the images into variables isn't an issue at all
Hello,
on 03/20/2008 04:06 AM Dietrich Bollmann said the following:
> Hi,
>
> --- note ---
> I sent a similar message already to php-i18n - but this list seems
> not to be used very much (20 messages this year) so I am posting it
> here again...
>
>
> I try to send messages written
however this will work...
p1.inc
1 var;;
9}
10 }
11
12 class obj {
13var $obj2=20;
14
15function f1(){
16 global $db;
17
18 echo "\n".$db->fun2()*$this->obj2."\n";
19}
20 }
21 ?>
1 #!/usr/bin/php -q
2
3 f1();
13
14 ?>
--
PHP General Mailing L
julian wrote:
I want to open a database connection at program initialization and use
that very same connection via globals initilizating ( loading from db)
other objects.
Basically
index.php
$db=new mysqli(host,us,pass,db);
if(mysqli_connect_errno()){
die('errordb conex');
}
switch
Do you REALLY need all the values in one giant matrix at once?
You might be MUCH better off to read a single line, process it,
discard it, and move on to the next one.
Your webhost is probably wrong and you probably ARE running out of RAM
and/or running afoul of PHP's time_limit in php.ini
set_t
Andres Rojas wrote:
Hi all,
I'm new in PHP programming and I have a problem with this script. I need
to read a large file around 2Mb and several lines (28000). All start Ok,
but suddenly the script stop without message error.
$myear[]=$year;
$mhour[]=$hour;
$mmin[]=$min;
$mt
If you're looking to build an web based proxy that supports ads, there's
already tons of scripts out there that do it securely, and render very
nicely. Most even supporting ad management.
CGIProxy http://www.jmarshall.com/tools/cgiproxy/
PHProxy http://whitefyre.com/poxy/
Zelune http://www.zel
Change the single quote to a double quote:
$query = "SELECT * FROM `job listing` WHERE open >= '$today' LIMIT 0 , 30
";
This tells the PHP string parser to replace all declared, in-scope variables
that are detected in a string with the value of the variable (as a
toString() method, so a refere
On Tue, April 17, 2007 1:21 am, Leo Jokinen wrote:
> Problem solved:
> I restarted my computer and after that apache loaded ibm_db2
> extension.
>
> My conclusion:
> 1. When you add some extensions to php.ini, you need to restart
> windows
> in order to get those extensions available through apache
Problem solved:
I restarted my computer and after that apache loaded ibm_db2 extension.
My conclusion:
1. When you add some extensions to php.ini, you need to restart windows
in order to get those extensions available through apache
2. However, those extensions are instantly available if you use
Weird, this code should work. Are you sure there is no hidden space
somewhere in the email. Try just to hardcode the email (eg.
mail('[EMAIL PROTECTED]', $subject_users_subscription_confirmation,
$message_users_subscription_confirmation); and see what'll happen.
--
itoctopus - http://www.itoctopus
I noticed that this "bug" is already to be found in the bug
database.
This is exactly how I'm experiencing it:
http://bugs.php.net/bug.php?id=37556
In that report they link the reader to
http://bugs.php.net/bug.php?id=30188 which is also applicable.
Although I can't understand the last answer:
O
Colin Guthrie wrote:
Well, I was never sure that it was a bug or not. I wasn't sure if it was
my distro's packaging and any custom patches it applies and also where
it was some x86_64 wierdness.
Recently (last week) it was confirmed to me that it was not x86_64 at
fault, but it was still my dis
Patrik Jansson wrote:
>> Anyway, are symlinks to blame here?
> I've added the real path into open_basedir, I also removed the // error
> but still I get the restriction message:
> So then I changed the absolute path in Joomla from /home/... to
> /usr/home/...
> and now I don't get the error anymor
Colin Guthrie wrote:
Patrik Jansson wrote:
I ran into problems with openbase_dir when using symlinks... They only
really reared their ugly head when I upgraded to 5.1.6 before that they
were OK (tho' if memory serves I had to add both the symlink location
and the directory it pointed to.
Anyway,
Patrik Jansson wrote:
> Hello,
> I'm having some difficulties with open_basedir. If I include the prefix
> /home/web25637/ in open_basedir shouldn't it include every directory
> within this? We're getting this error:
>
> Warning: file_exists() [function.file-exists]: open_basedir restriction
> in
Michael Felt wrote:
Slowly I am getting the output I want.
Trying to use "dynamic" arrays, does creat the array I want, but getting
the info is sometimes surprising.
I notice a difference between arrays used locally in a function, and
arrays used as a 'var' in a class function (all in PHP 4
Michael Felt wrote:
Slowly I am getting the output I want.
Trying to use "dynamic" arrays, does creat the array I want, but getting
the info is sometimes surprising.
I notice a difference between arrays used locally in a function, and
arrays used as a 'var' in a class function (all in PHP 4
Olaf Greve wrote:
Hi Barry (and others),
Thanks for your answer!
This is surely a browser problem.
I already feared as much...
The nasty thing is that due to this some of the end users of our client
are losing confidence in the way the application works.
Disabling GZIP is not really what
Hi Barry (and others),
Thanks for your answer!
This is surely a browser problem.
I already feared as much...
The nasty thing is that due to this some of the end users of our client
are losing confidence in the way the application works.
Disabling GZIP is not really what I want to do either,
Olaf Greve wrote:
Hi all,
Firstly, I'm new to this list, so I'm hoping I'm not flogging a dead
horse with this question, and I also hope I'm not inadvertently breaking
any list etiquete in any way...
Should this be the case, I apologise in advance. :P
Alright, with that out of the way, I'll
Ron King wrote:
Hi,
My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the tools
I use (from InterAKT) no longer work.
After doing quite a bit of research, I've seen a few bugs regarding
realpath(), but none related to 4.4.1.
When I try the following:
With version 4.4.0, I ge
Thanks Rob, that solved the problem for me!
Rob Richards wrote:
Kenneth Andresen wrote:
I am having problems with the following functions where my return
simply is "#text Joe #text Smith #text unknown", it should have read
firstname Joe lastname Smith address unknown
What am I doing wrong?
Kenneth Andresen wrote:
I am having problems with the following functions where my return simply
is "#text Joe #text Smith #text unknown", it should have read
firstname Joe lastname Smith address unknown
What am I doing wrong?
You're trying to access the name of the Text node which is always
Unfortunately, and even more frustrating, I tried swapping out my script
with the basic 'hello world'. It still doesn't run (when triggered via the
404 ErrorDocument parameter), but direct access run's just fine.
I attempted to debug (per the PHP faq (
http://us2.php.net/manual/en/faq.installatio
Well if all other PHP scripts work then it must be a problem with your
script or something changed in the latest PHP version that your script
used, if you post the code someone may be able to say if something is
wrong with it.
James
Jason Z wrote:
I used to have a number of sites direct 40
* Martín Marqués :
> I have to send a PDF file after a submit on a form. The PDF is well created,
> and I'm sending it to the client with this:
>
> $fpdfName = "/tmp/" . session_id() . ".pdf";
>
> // Vamos a mandar el PDF
> header('Content-type: application/pdf');
> // El archivo se va a llamar li
Hello, what exactly do you mean when you say break the browser, if its a
PHP error you get then its something to do with PHP, however, your
javascript is not correct and produces errors, im not too good at
javascript but know when I see an error, i could be wrong but dont think
its possible to
in htmlentities() use the second optional argument with a value of
ENT_QUOTES, which will escape also single quotes and is not the default.
Satyam
ps: which I didn't know and just read in the manual.
"Leila Lappin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello all,
>
> I
Because I'm not sure if attachments are included in this mailinglist,
I copied the source of my sample script:
- start file --
loadXML('The almighty DOM');
// Write DOMDocument to session
$_SESSION['dom'] = $dom;
// Trying a variable too
$_SESSION['var'] =
Juan Antonio Garrido wrote:
> Hi everybody:
>
> Does it exists someone library I can print html files to pdf without it loss
> information about my property css classes(background,color,width...)?
>
> With GPL library HTML_To_PDF3.3 it isn't possible...
>
> If the library is GPL much better.
>
Hi,
On Fri, 05 Nov 2004 12:55:17 -0200
Oliver <[EMAIL PROTECTED]> wrote:
> Today I installed EasyPHP without any problems, but when
> I updated the version of php, Mysql stoped.*
Okay. So, how did you update it?
Assuming you're on linux and using RPMs,
[...]
> / To connect to a MySQL server, P
I have sent am mail to [EMAIL PROTECTED] and the sad to me send the
error for this e-mail.
--- Begin Message ---
Hi Oliver,
Please ask support questions at [EMAIL PROTECTED]
Regards,
Gabor Hojtsy
Oliver írta:
*Hello. My name is Oliver. I am from Brazil and I have had some problems.
Today I install
On Thursday 16 September 2004 17:19, Merlin wrote:
> the where clause is a replacement for the order by clause in the first
> statement. Inside this first select statement I am showing 20 results on
> each page with the limit command as shown here:
>
> SELECT
> u.user_name,
> FROM
> user
Thomas Seifert wrote:
On Thu, 16 Sep 2004 10:43:46 +0200, Merlin wrote:
Theoreticly the result number of the first select statement should be identical
with the count statement, but it is not.
Has anybody an idea how to fix that?
It can't be the same number as you are using a where clause in th
On Thu, 16 Sep 2004 10:43:46 +0200, Merlin wrote:
> Theoreticly the result number of the first select statement should be identical
> with the count statement, but it is not.
>
> Has anybody an idea how to fix that?
>
It can't be the same number as you are using a where clause in the second
st
I have no experience with PHP5 so far but this subject was asked
before often enough with PHP4 - so the advice should still be valid...
I generally didn't put any files in the %SYSTEMROOT% folder (which
usually translates to C:\WINDOWS on a default installed WinXP machine)
but instead I put the ph
Hi,
I 2 use winxp pro at home, actually linux + windowoze and i have
encountered the same problem with mysql extension.
Some extensions, such as iconv, openssl depend on external libraries.
btw! it's not a good idea to mess with windows\system32 folder. If you
want
you can ad
"Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Im running a win2k with apache and PHP 4.3.4 and I have gone through
> the installation readme for PHP. I have copied the necessary files to
> the correct directories. I have also set register_globals= Off (defau
Try php.internals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday 08 June 2004 19:13, php-general wrote:
> $var3 is defined as
>
> $var3 = "$var1$var2";
>
> in the body of the if ($button1) statement !?
what is button1 supposed to do and what is button2 supposed to do?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Sy
On Tuesday 08 June 2004 18:50, php-general wrote:
> Only pressing the "Display concatenated strings"-button should
> output the concatenated string, but this does not work, and I do not
> understand why.
$var3 is not defined.
--
$var3 is defined as
$var3 = "$var1$var2";
in the body of
On Tuesday 08 June 2004 18:50, php-general wrote:
> Only pressing the "Display concatenated strings"-button should output the
> concatenated string, but this does not work, and I do not understand why.
$var3 is not defined.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source S
- Original Message -
From: php-general
To: [EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 12:36 PM
Subject: Problems with variable handling !
Hi !
I have a Problem with hand over of variables;
My Page consists of three files which I have enclosed to
demonstrate the
phpinfo reports that register_globals=On
ginal Message-
From: Aidan Lister [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 09, 2004 04:08
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Problems with very special characters
Hi,
Make sure the charset of your document matches the charset sent by the
server - If you tell the browser the charset is A
Hi,
Make sure the charset of your document matches the charset sent by the
server - If you tell the browser the charset is A, and use characters from
charset B, you will get the problem observed.
The charset can be sent from Apache, PHP and the actual charset is set in
the document.
It's a pain
What kinds of phrases are you looking for? If you want to know whether
an *exact* phrase is going to appear in a block of text, just use
strstr() or strpos(), they tend to be faster than regexes anyway.
http://www.php.net/strpos
function valid_phrase ($phrase, $search = 'text to search for') {
Hello,
On 04/12/2004 12:48 PM, Luis Lebron wrote:
I have a development box that uses our company's Exchange server as an smtp
host. All of a sudden, the php mail function has stopped working.
I can, however, send a message using mutt.
Here's the output of the maillog:
Apr 12 10:38:51 localhost
Luis Lebron wrote:
I have a development box that uses our company's Exchange server as an smtp
host. All of a sudden, the php mail function has stopped working.
I can, however, send a message using mutt.
Here's the output of the maillog:
Apr 12 10:38:51 localhost sendmail[11879]: i3CFckaV01187
I wrote:
>First, cheers to Mike Ward for the quick response to my maiden post this
>morning (about floating point vars).
Second, apologies for getting Mike Ford's name wrong in my second-to-maiden
post... :(
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
On 19 Mar 2004 at 19:23, Lester Caine wrote:
> [EMAIL PROTECTED] wrote:
>
> > I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47.
>
> Mines 2.0.48, but no problem.
>
> > Upon installation, when I first started Apache again, I got an error message to
> > the effect
> >
I'm running RC1 on Win2k 2.0.47 without any problems. Make sure u updated
your PATH settings as some folders got renamed or moved. Add /path/to/php
and /path/to/php/dlls to your PATH setup. Switch 'extensions' to 'ext' in your
php.ini as well if you still have an old version from an old PHP5 beta o
[EMAIL PROTECTED] wrote:
I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47.
Mines 2.0.48, but no problem.
Upon installation, when I first started Apache again, I got an error message to the effect
that php4ts.dll could not be found in the c:\winnt\system32 directory. Th
It's because the HTML or HTTP or whateverdoesn't allow them.. :p
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Piet From South Africa" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> When using ö or ä the hyperlinks or photo references does not work even
> th
I reported this BUG at php.bugs as http://bugs.php.net/?id=25323.
It's there for 13 days now and still no answer... :-(
Cristiano Duarte
"Cristiano Duarte" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Is this suppose to work ? Currently it does not.
>
> class Priority {
>
Hello,
On 08/19/2003 04:56 PM, Dan Van Derveer wrote:
I have had no success sending multipart/alternative emails with php. I have
tried everyone's various code snippets with no luck. I test the results with
Outlook and Outlook Express. Everytime my boundary tag ends up showing as
part of my messag
"Christian Rosentreter" wrote:
Hi Christian,
> I've a small problem, which mades me crazy... :\
>
> I'm trying to rename() a swapfile to real destination file (atomic
update).
> It works on differnt environments very well. Sadly not on my ISP-server
> I've added an "chmod($swapfile,0777)", but th
Actually, I did not check the time. But I was online for more than 10
minutes and pressed my refresh button sevaral times. My post did not appear.
"Henry Grech-Cini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Did you send this post at 17:17 and did it arrive at 17:22?
>
> "Niels
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,
http://www.php.net/manual/en/function.addslashes.php
Justin Garrett
"Mike Hilty" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> I am running into an issue where when a user inputs an apostrophie '
> into the textarea section of my form, it will ge
Peter Gumbrell wrote:
> In the following code
>
> $view = $HTTP_GET_VARS[view];
> print $view;
> if ($view == "vendor")
> { code here
> }
>
> print $view produces 'vendor'
>
> but the if statement in the next section isn't being triggered. Can
> anyone see what is wrong here? I have tried double qu
Looks like you are only backing up 2 levels when you need 3.
Why not try something like:
$root= "the absolute path to your root folder";
Then simply:
include ($root . "mainfile.php");
etc.
Daniel Negron/Kbe wrote:
I have this code :
which works great from the root dir where these files
Hi!
It could be a permission problem. What OS are you using? Win98? Win2000?
WinXP?
Kindly
/Lars Olsson ([EMAIL PROTECTED])
Harald Mohring wrote:
isn't it possible to get image informations from the local harddrive?
$fotoinfo=getimagesize("C:\\Files\\Temp\\Image.jpg");
if i use that code,
yes this is javascript - for some reason I thought jsp was another term for
javascript so I apologize. Let me try these code changes, and see how this
shakes out.
Jeff
"Chris Wesley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm pretty sure everyone else
>>previous page. Try putting the log in information and anything
>>else needed
>>in hidden fields in your form.
YIKES!...hidden form fields are viewable in the html source generated.
session_register() anyone?
I thought you were trying to re-use the db connection?
if so, use mysql_pconnect() i
IL PROTECTED]>
Sent: Thursday, December 12, 2002 11:58 AM
Subject: [PHP] Re: Problems connecting to a MySQL database
> A prompt? Not sure I understand.
>
> The first time around it connects ok with PHP. I can retrieve all the
rows.
> It's the 2nd time where it doesn't.
>
I'm pretty sure everyone else is as confused by your description as I am.
(Hence, I didn't answer.) It looks like you're trying to generate
JavaScript w/ PHP, but your subject mentions JSP. In a nutshell, I don't
know if what you're doing is over my head, or just not explained clearly.
I can man
A prompt? Not sure I understand.
The first time around it connects ok with PHP. I can retrieve all the rows.
It's the 2nd time where it doesn't.
Jeff Bluemel wrote:
> have you tried connected to the mysql database from a prompt before using
> php???
>
>
> "Eric" <[EMAIL PROTECTED]> wrote i
somebody has to have an answer to this...
"Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I cannot figure out where my problem is with the following script. I know
> I've used this syntax successfuly in the past. when I take out the
> variables
have you tried connected to the mysql database from a prompt before using
php???
"Eric" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Greetings!
>
> I have a script which attempts to connect to the database in three
different
> segments of code.
>
> I'm using
"
?>
Nenhum profissional cadastrado.";
}
?>
ID Profissional";
echo"".$row['id']."";
echo"Nome";
echo"".$row['nome']."";
echo"Profissão";
echo"".$row['area']."";
echo"Bairro";
echo"".$row['bairro']."";
echo"Telefone";
echo"".$row['telefone']."";
echo"E-mail";
echo"".$row['email']."";
echo
try using the extract command instead of the array reference
ie:
ID Profissional";
echo"$id";
?>
instead of :
while ($row = mysql_fetch_array($res)) {
?>
ID Profissional";
echo"".$row['id']."";
Jason
"Rodrigo De Oliveira" <[EMAIL PROTECTED]> wrote in message
002501c295a6$3e048ab0$6ed4a5c8@soh
On Tuesday 19 November 2002 17:40, Noodle Snacks wrote:
> It it better that you use a subject that is related to the problem eg.
> "Email Script not working after server upgrade"
And also, it is better to include your code inline (as text) rather than as an
attachment. A lot of people would not b
1 - 100 of 154 matches
Mail list logo