I have always been told not to rely on using Javascript, as it is possible that the files I create might be viewed by someone with Javascript functionality turned off in their system. Is there absolutely no way to do this without resorting to Javascript?
EnderX 352 Posting Shark
I have been requested to create a file which will act like an XML page (expandable tree-like structure). I have been given the following requirements:
1. End user requires that the page be an xml file. No problem there, I know enough (barely) to do that.
2. Request that, if possible, I should hide the tag information. That is, instead of showing this:
<heading>Hello there!</heading>
, I should simply have it read, in that kind of situation, "Hello there!".
As far as I know, it is impossible to do this (remove the tags from the display) in XML. However, I am under the (possibly mistaken) impression that an XSL stylesheet can transform the basic xml page into something resembling ordinary html. So, basically, is there any guaranteed way, in HTML alone, to imitate the expandability of an XML page? I've searched google about it, but everything I came up with appeared to rely on either php code or javascript, and I cannot count on either of those to be present in the end user's system. So, my questions are:
A) Is it possible, using only html, to imitate this functionality?
and
B) If so, can anyone suggest a good place to discover information concerning how to do this?
Thank you for your consideration,
-EnderX
EnderX 352 Posting Shark
First, I suspect that this is in the wrong place, but I'm not sure where else to put it. If this post does belong somewhere else, would a moderator please kindly move it to where it should be? Thank you.
I'm trying to upgrade from php4 to php5 on a server running SuSE 9.3 linux. (This is a different server from the one that caused all my previous topics. Those problems have been solved.) However, I cannot find the necessary apxs2 files anywhere on the system I am working on now. I also cannot find the apache2-devel file anywhere on the system, and a google search on the phrase 'SuSE apache2-devel" turned up three sites, all of which pointed to the same ftp server, which is either down or forbidden to me as it takes forever to load and I have yet to see any results for it.
Several questions here:
1. According to the current phpinfo() results, the systems I'm now trying to upgrade are all i686. The only extensions I can find for the .rpm file I need are i586 and x86_64. Will either of these work with an i686 system?
2. And if I so, does anyone know of any place besides the suse.com ftp server that I could find it/them online?
Thank you for your consideration,
EnderX
EnderX 352 Posting Shark
Is there a single RPM file for installing PHP 4 on a system? I found a solution to my updating problems that looks as though it will work, but it requires that php4 be installed on the system before php5 gets installed, and in following the advice of an aquaintance who was trying to help me to install my copy of php5, I believe I uninstalled php4. The actual command he recommended and I used was 'rpm -e apache2-mod_php4'.
I'm hoping to find a fresh install of php4 in order to get back where I was, but the rpm files I'm finding online appear to all be for parts of the installation; I have no real idea what I should be looking for. If anyone has any suggestions on this, even if it's just a name to look for, I would appreciate it.
Thank you for your consideration,
-EnderX
EnderX 352 Posting Shark
Does this help any? I mucked with the system a bit yesterday, and tried a reconfigure using the original set of instructions. Still no luck getting everything to run; I can see phpinfo or echo commands, but not if anything else is in front of them. This is the contents of the error_log file after the most recent restart:
"[Tue Nov 07 14:58:20 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Nov 07 14:58:20 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Tue Nov 07 14:58:20 2006] [warn] module php5_module is already loaded, skipping
[Tue Nov 07 14:58:20 2006] [notice] Apache/2.0.49 (Linux/SuSE) configured -- resuming normal operations"
Any suggestions, of should I start digging further back in my error records?
EnderX 352 Posting Shark
I'm still trying to install PHP. I used a different set of configuration commands, ones that more closely match the set that the old setup had on it, and I've run into a different problem. It configures, it builds, and then when I try to restart the server I get the following error message:
"Syntax error on line 113 of /etc/apache2/httpd.conf:
Cannot load /usr/lib64/apache2/libphp5.so into server: /usr/lib64/apache2/libphp5.so: undefined symbol: php_session_create_id"
The line in the conf file is the loadmodule line for the php 5 module. The .so file, when I opened it, contained what appeared to be mostly system gibberish; I'm kind of scared to mess with it.
Anyone have any reasonable suggestions for what might have caused this, and if so, would you please share them?
Thank you for your consideration,
EnderX
EnderX 352 Posting Shark
I have been trying to install 5.1.6 from the source. I've obviously messed up somewhere, because my results don't work.
The phpinfo() command works. If necessary, I'll post the appropriate fields from it here.
The echo command appears to work; it kicks the correct stuff out
to the webpage source.
Nothing else works. And phpinfo() and echo don't work if there is any other command, even a simple variable assignment, before them in the code.
I tried to follow the instructions that written in the INSTALL file that came with the tar.gz download file I obtained. However, I am beginning to suspect that I managed to seriously muck something up; the installation instructions began by recompiling apache2. Actual php installation did not appear to begin until step ten. I am trying not to bring apache2 down while I work on this, as there are several other, rather critical, programs being run that require it to be up. Thus, I started at the point where the php installation itself began, which I suspect is the source of all of my current frustrations.
Is there a way to install php5 without having to recompile the apache server? And if not, will it be necessary to bring the server down before I can work with the recompilation, will it have to come down at some point during the compilation, or can I take it down at the very end in a quick restart?
I …
EnderX 352 Posting Shark
I've about given up on trying to get my setup to work by poking at it manually. Does anyone know of any PHP5 rpms for SuSE 9.3 that are of later versions of PHP than PHP 5.1.2? That's the latest one I've found searching online. If anyone has any suggestions to offer, I would be quite grateful.
Thank you for your consideration,
-EnderX.
EnderX 352 Posting Shark
A much more knowledgeable aquaintence recommended that I use the command 'rpm -e apache2-mod_php4' to remove the old setup. I did so. Now, however, either php or apache2 one seems to have been messed up. When attempting to open a .php page, my system no longer seems to recognize it as a valid extension, instead popping up a prompt asking what it should be opened with. I know that the httpd.conf file contains a command 'AddType application/x-httpd-php .php .phtml' which should be telling it, if I understood the installation instructions correctly, to recognize those extensions. Can anyone suggest a reason it might not be doing so?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
First: If this is in the wrong forum, I apologize. My question is more concerned with figuring out the correct configuration with the Apache2 web server than with anything dealing particularly with PHP. I simply did not see an appropriate forum for this type of topic. If such a forum exists, would a moderator please move this thread into it?
I have been, for the past two weeks or so, attempting to upgrade a computer from php 4.3.4 to php 5.1.6. I have tracked down all of the files I thought I would need to modify. However, I have obviously missed something somewhere- when I try to run the phpinfo() command, the resulting information indicates that I'm still running php 4.3.4.
For the record, I am attempting to install/upgrade on a system running SuSE 9 linux. I believe it is SuSE 9.3, but I am not completely certain of that. I am also attempting to do this remotely, so I am afraid that solutions involving direct access to the machine are not a viable option for me.
I have sought aid for this in various places, and the assistance I have received at another computer help forum included a statement that, based on the results of the phpinfo command, the apache2 server was not drawing from the newly-created php 5.1.6 install, but instead still drawing from the older 4.3.4 installation.
I am very new to such installations; this is my first attempt at doing …
EnderX 352 Posting Shark
As for Browser-Wars... I don't think people/Companies should be coding the browsers - only the additional functions/features.
So...who would code the original browser? The machines themselves?
The core Browser stuff ought to be coded and realeased - at least that way there would be a stable, realiable, cross-system browser and rules... hell, you might even get conformity and compatability with guidelines (Well, worth asking Santa for any ways ;) )
Released how? Via sale, or freeware, or ??? Microsoft tries to turn a profit; I'm having trouble seeing them willing to release pretty much anything that isn't completely under their control.
EnderX 352 Posting Shark
I thought so, but at this point I'm not sure I updated the right files. What file exactly should I be updating? It'd be nice to know what I'm looking for.
EnderX 352 Posting Shark
I have been attempting to upgrade a SuSE 9 linux box from php 4.3.4 to php 5.1.6. I have something working, since I'm able to run my old programs under the new setup, but I'm fairly certain I've done something wrong somewhere; using the phpinfo() command shows that I'm still running 4.3.4 for some reason.
This is a record of the differences between the two versions of php which I am dealing with. One has been drawn from a fresh run, with the 'new' php system installed, of the phpinfo() command. The other is drawn from an older copy of the same command, from a page which I saved to disk as an html page because I wanted to see if I could shift the color of the page. I was able to; I'm not sure why I didn't simply delete it, but I'm now very glad and grateful that I didn't.
Initial fields-
Identical fields:
01. System
02. Build Date
03. Configure Command
04. Server API
05. Virtual Directory Support
06. Configuration File (php.ini) Path
07. PHP API
08. PHP Extension
09. Zend Extension
10. Debug Build
11. Thread Safety
12. Registered PHP Streams
Configuration--
PHP Core-
Identical fields:
01. allow_call_time_pass_reference
02. allow_url_fopen
03. always_populate_raw_post_data
04. arg_separator.input
05. arg_separator.output
06. asp_tags
07. auto_append_file
08. auto_prepend_file
09. browscap
10. default_charset
11. …
EnderX 352 Posting Shark
At the moment? Confused. Hopefully that'll change in the near future.
EnderX 352 Posting Shark
Not if he heads over into Scotland he doesn't. I saw an article a few months ago on the BBC website about how the Scottish Parliment has passed a law outlawing swords.
EnderX 352 Posting Shark
Okay, new question now. I didn't realize at first that I needed to move the new php.ini file in. (Yeah, I know, I'm an idiot.) After I did so, though, I ran into a new problem. Moved ini, restarted server; none of my files would show up, just a blank page and the word 'done' at the bottom. Only page that would show is an old one I made that's basically the phpinfo() command, and even after the restart with the correct ini file that was still showing as version 4.3.4. Anybody have any clue what's going on with my setup?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
Which files needed to be moved? Most of what I was able to make out from the instructions in the 'INSTALL' document were requirements to edit previously existing files. How badly have I mucked this up?
EnderX 352 Posting Shark
I'm trying to upgrade from php 4.3.4 to php 5.1.6 on a system running SuSE 9. I thought I had correctly followed the instructions in the install manual that came with the download, but when I restarted apache2, running the phpinfo() command still shows my system as running 4.3.4. There did not appear to be any special install instructions for SuSE in the manual, but I'm not very familiar with Linux or with installing php, so I could easily have missed something. Does anyone know of anything specific that might be causing my problems?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
Thank you for your assistance.
I am now trying to follow up the last instructions in the Install directions that came with the php download. Instruction 15 involves telling apache what files to recognize as php; I'm assuming that the commands that follow would be included in the .conf file for apache, since that's where the previous commands went. The command in question (15) reads as "AddType application/x-httpd-php .php .phtml". Am I correct in assuming this goes in the apache .conf file? If so, where in the file, and if not, where does the command need to be entered?
Thank you again,
-EnderX
EnderX 352 Posting Shark
I've been requested to upgrade php on a number of systems. Currently, they are running version 4.3.4, and the most recent upgrade on the php.net site was version 5.1.6. I've never done this before, and have little clue what I'm supposed to be doing. I'm hoping that once I get it figured out for one system, I can upgrade the others with the same instructions without much trouble. (Hope-hope-hope)
First question: As far as I can tell, the systems in question are running the Apache2 webserver. Will I need to down Apache before I upgrade PHP, or should I leave it running?
More questions to come, no doubt.
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
There's probably a simple solution to this, I simply don't know what it is.
I'm working on a php-driven web form, information to be submitted to a database. A number of the fields on the form correspond to not null areas in the db, so I need to figure out a way to prevent the end user from leaving those areas blank.
In the past, I've run into this problem in the Delphi programming environment. There, my solution was to create a pop-up dialog box warning the user that they had to fill in the required fields, and preventing the information from processing until they had done so.
I know I can refuse to process my data in the php file, since I'm drawing it from the form's data and validating it (currently against injection attacks, more as what I need becomes clearer) before doing anything else. But the form itself is supposed to run in the background; after finishing its work, the forms are supposed to redisplay, without any delay. Having to show the warning on the page would cause a few problems, and would also tend to make it look bad, as far as I can tell.
Is there some way I can create a 'pop-up' or equivalent warning box to let the end-user know that they've neglected to fill in a required field, like I'm used to in Delphi? Or is there some other, relatively simple, measure I could use to warn them …
EnderX 352 Posting Shark
Is there any way to insert an animated .gif image into a Delphi form? The image component only seems to accept jpeg, bitmap, and icon files, plus a couple I've never seen before, but it's my understanding that none of those can be animated, and what I'd like to do would require an animated image. Is there any way around this, either an in-code workaround or another image-handling component (preferably free) that can handle these images?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
I'm having to redesign a web-based data-entry page; as I had the original set up, it would have caused a high degree of duplicated information in the database I am working with.
The original design called for a single form, in which a given set of data would be specified. However, the data in question came in a three-level 'pack' structure, such that an item on L1 could be associated with one or more items on L2, and items on L2 could be associated with zero or more items on L3. As a result, I was requested to redesign the page layout with multiple forms, so that making a change to an item on L2 or L3 wouldn't require having to fill the entire form for everything.
This is more a question of aesthetics than anything else; I can create the forms in question with no problem, but the L2 and L3 forms require only a few small bits of information attached to them. As a result, they're long (crossing the width of the screen at my current resolution) and thin (only two rows thick). I was hoping to find some way to reposition the beginning/ending points of the tables on the screen, so as to place the L2 and L3 forms next to each other instead of having one of them on top of the other one.
Or in other words, this is what I currently have,
[IMG]http://www.freewebs.com/enderx/Ephemera/Form%5FSet.PNG[/IMG]
and this is what …
EnderX 352 Posting Shark
Maybe I'm just doing this wrong somehow, but it's not working for me. I'm using PHP, and I tried the preg_replace() function you mentioned, but I can't get it to work for the escape characters I'm trying to eliminate. I can get it to eliminate pretty much everything else in the output I've tried checking, but nothing seems to work on the '\' character; attempts to replace it are met with errors. A single one gives something like 'cannot find ]', which is understandable; it's escaping the ']' symbol. Problem is, attempts to double the '\' character up (so as to have the first one escape the second) produce the same error. What am I doing wrong here?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
Thank you for your kind assistance with this; that appears to be exactly what I want to use.
Next question-what kind of code is needed to prevent it from escaping the single-quote character? Whenever I try to look a the output, if I've included something with a single quote on it (like the word I've, for example) it comes out looking like I\'ve. Any suggestions?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
For a program I'm working on, I need to do the following:
1. Starting with a single set of fields in a form, I need to be able to dublicate them (multiple identical form entries) without necessarily knowing how many there will be. I managed to do this, by incrementing a session variable each time the appropriate form button was clicked, then putting the form-building stages inside a for loop that runs until it hits that variable's limit. Assuming I'm reading this correctly, what I've done leaves me with a set of arrays; one for each of the form fields.
2. Now, however, I need to be able to redisplay these fields back to the screen afterwards. I'm having trouble with this, because I can't figure out how to get the $_POST[] command to recognize my internal array. Every time I've tried so far, I've gotten errors. Is this even possible, and if so, how is it coded?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
I have two questions, somewhat linked together. I'm trying to create a webform, and for a few pieces of it I'll need to be able to enter descriptions into a field. I've been requested to make the fields in question larger, much like the reply-box field here, so as to make the information within it more easily visible to the people who will have to use the form.
Question 1: Is this reply box some kind of special form input type, and if so what is it called? Is it unique to the mb, or can it be used in ordinary code?
Question 2: If this isn't something special, just an ordinary text input, then how do I resize it for vertical growth? I found the 'size' command for horizontal stretching, but that really doesn't do me much good because it still limits the user to a single visible line of code.
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
First, if this is in the wrong forum, I apologize. I couldn't find one that exactly fit my problem, and this was the closest thing I could come up with. If this is not the correct place for this post, I would respectfully request that a mod move it where it does belong.
About three/four months ago, the CD-R drive on my computer disappeared. It wouldn't open or shut when I pressed the button, and the icon for it vanished from the my computer slot. The machine may have recognized the device as existing somehow, as the USB jumpdrive I plugged into the system gets (or got) recognized as drive E, instead of drive D (the dead CD-R).
About two weeks ago, I took the system into a nearby computer repair store, and requested a new drive. I asked that it be upgraded to a DVD/CD-R combination drive, and left it for them to replace. When I got it back, they had installed the new drive in a second drive slot, leaving the first (now defunct) one in place. (New drive now recognized as drive E, and for some reason the jump drive is now getting called D.)
When I woke up this morning, I saw that my computer's power had apparently blinked overnight; the screen had all of the startup programs displaying. (Not much, mostly MSN Messenger and AIM.) However, about ten minutes ago, I tried to play a CD in my new drive, …
EnderX 352 Posting Shark
I'm trying to figure out how to change the font in part of a large text field in delphi. (At the moment, I'm working with a RichEdit field.) I know it's possible to set the font style for the component, but that changes all the text, which isn't what I'm after. I'd like something that allows text with two different font styles to coexist side by side, like this and this, in the same RichEdit component. Is that even possible?
EnderX 352 Posting Shark
Earlier in the day, I was forced to generate a new public key/private key pair for one of the systems I work with, as it appeared to have been hacked into at some point during the night. The system in question was running a process called 'Slony', which is used for database replication. After building the new key and adding the public keys for the other systems that slony's replication fed, I noticed a rather strange problem.
In addition to the main database, the server that got hacked runs a second archival db, which is supposed to be replicated to and updated alongside the remote systems. When I created the new keys, the replication to the system stopped working. I had originally included a passphrase, and the perl files which ran the replication as a cron job were throwing errors about bad passwords. I decided to rebuild the key again, this time leaving the space blank. That is, I just hit 'Enter' when the system requested a passphrase. It requested the same phrase be repeated, though, and that may be the core of my problem...I may not have gotten rid of the passphrase.
Anyway, when I try to run the system now, it tries to scp the replication files, but the scp times out. As far as I can tell, the timeout is getting called from this segment of code, which comes from a system-installed file called Expect.pm:
unless($scp->expect($timeout,-re=>'[Pp]assword.*?:|[Pp]assphrase.*?:')){
my $err=$scp->before() || $scp->match();
if($err){
if($handler){$handler->($err) }
croak("Problem …
EnderX 352 Posting Shark
Awesome. Both the slang meaning of 'wonderful' and the extended meaning of 'inspiring reverent fear.' (That's what awe really is, after all.)
EnderX 352 Posting Shark
Does anyone know how to change the ownership of a view in a postgres database? I have no clue how to do so, and all of the solutions I've seen so far online don't want to work for me.
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
When calling the date function, or referencing database information from a 'date' field, is it possible to specify what format the date will be returned as? Windows has at least seven formats that I know of, two of which (mm/dd/yy and yy/mm/dd) are impossible to tell apart with my current code. I'm trying to isolate just the year value from the date, and it's causing problems for my programs when they get run on systems that don't have the same date format as my own. The dates get reformatted to the host system's format, which might not have the year in the same position(s). Anyone have any advice on this issue?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
I'm trying to run a perl script designed to update the database on a remote server from the copy on our main server. Both dbs are in postgresql and running the slony replication setup. Semi-recently, the server went down on the remote unit and had to be replaced; I was able to get the db running again, and slony, but now I've got a new problem from the perl script.
Whenever I run the actual script, I end up getting error messages. The first few simply said they couldn't find some file; usually, the file names were only a few characters long, and ended in .pm. Those I was able to 'solve' by going out and finding a copy of the file in another remote system, then copying it into the one I was working on. (This might have been a bad idea; I don't know whether I should have done that or not.) Eventually, though, I got to an error message that read as follows:
" Can't locate loadable object for module IO::Tty in @INC []at /usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi/IO/Tty.pm line29
Compliation failed in require at /usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi/IO/Pty.pm line 7.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi/IO/Pty.pm line 7.
Compliation failed in require at /usr/lib/perl5/site_perl/5.8.6/Expect.pm line 22.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.6/Expect.pm line 22.
Compliation failed in require at /usr/lib/perl5/site_perl/5.8.6/Net/SCP/Expect.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.6/Net/SCP/Expect.pm line 10.
Compilation failed in …
EnderX 352 Posting Shark
Has anyone here ever worked with the Slony database replication system? A while back, one of the (remote) servers we were running this on went down, and the server had to be replaced before we could get the DB back up. I was able to upload the database this morning, but attempts to run a perl script designed to track the slony replication status have all met with various failures, as the system seems to be unable to find one or more of the files it needs. I've tried copying the files over from another server, but that didn't work out; toward the end, it gave the error message "Can't locate loadable object for module IO::Tty in @INC".
Does some form of slony have to be specifically installed on each server being replicated to? As far as I can tell, the new server doesn't have a copy on it, and I'm wondering if that's what is causing all of my problems.
Alternately, if anyone else has any ideas about what might be going on, I'd be glad to hear them!
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
I've been requested to update a segment of a database, and given that it's kind of longish, I was looking for some way to directly write the data I've got from a file into the DB. I know it can be done via a third party; I have used Delphi for similar stuff before, and will probably fall back on it again, since this is time-critical, but I was wondering: Is there anything in PostgreSQL itself that allows the database to read statements from a file and act on them without the need of a third-party product or program?
Mostly Curious,
-EnderX
EnderX 352 Posting Shark
Sorry for not responding earlier, but I believe I found the problem.
As I said, I was attempting to type the entire path name into the setup, and it wasn't running correctly. But by including a cd command to get to the correct directory, then ./ing my program, it seems to be working properly.
Thanks for the assistance.
EnderX 352 Posting Shark
I tried that command. There is an entry in the output called /usr/sbin/cron. Is that what I'm supposed to be looking for?
I may have stumbled onto a different problem for this. I've tried running the program I'm working with seperately, and it doesn't seem to properly if I'm not in the same directory as it. I've been trying to use the full pathname for the program though, so I don't understand why it doesn't want to work. Any suggestions?
EnderX 352 Posting Shark
First: if this is in the wrong place, I apologize.
I'm a newcomer to Linux, but I'm trying to learn what I need to in order to correctly use it.
I've got a program I need to run multiple times, without my having to do anything. The book on Linux I've got mentioned the 'crontab' command, but I'm not sure I understand how to use it correctly. I tried to set up a call to the program I needed the way the book demonstrated, and nothing happened. Similarly, I've looked at a couple of websites found via a google search, but they simply showed the same kinds of examples as the book.
Basically, I need to know the correct way to set up a job with crontab, and the correct way to make sure it runs when it's supposed to.
I'm not sure if this information is needed to determine the cause, but I think the server I'm working on is running Suse 9. (Remote connection; I may not be correct in this.)
Anyone out there willing to take pity on this ignorant newbie?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
Worked like a charm. Thank you very much for your quick assistance.
EnderX 352 Posting Shark
90%. Missed the one about the INS form, and the one about the original states. Does that mean I have to go retake my high school history classes?
EnderX 352 Posting Shark
I'm currently trying to create a program in delphi to call up a webpage; the page is written in php and records some data about its contents for record-keeping in my system. I'd like to be able to write the program so that when it opens it does the following:
1. Opens the webpage. I can do this, I found the code to open an application via ShellApi some time ago and it works just as well for a web url as for a file path.
2. Closes the webpage. I only really need to run the page once to do the job, and if the program can close the page afterwards it should. Again, I found some code on how to do this, so that's not really a problem, although I may need to build in a delay; as currently written, it doesn't like to close the page. This isn't critical though, it's merely my own personal aesthetics.
3. Closes the program itself. I know you can close a program with a single form (all this one has) by using the form.close procedure, except that this doesn't work when the statement is included in the form.formcreate procedure, and that's where I'm hoping to call it from.
Is it even possible to code my program so it fits this set of instructions, or should I start looking for a workaround?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
Thanks. That did the trick.
EnderX 352 Posting Shark
Does Delphi have any way to escape symbols embedded in strings? I'm trying to write a database project, and have just run into a rather nasty problem; the db I'm working with, PostgreSQL, refuses to recognize equality to date functions unless the value being tested is contained within a pair of single quotes. It treats unquoted date strings as integers, and if I use double quotes, PostgreSQL tries to read it as the name of a column, not a data value.
Is there any way to escape the single quotes from within my sql statements I'm building in delphi, or do I need to look for a solution elsewhere?
Thanks in advance,
-EnderX
EnderX 352 Posting Shark
I do not know if this is the right place for this message to go, but there does not appear to be a forum specifically set up for the users of the PostgreSQL database, so this was the best match I could find.
Does anyone know what function or functions in Postgres would return the current date, and only that? I know of the 'now()' function, which returns the date and the timestamp, but that's no good for me; I need something which can separate the date and return only it. I'm currently building a program which requires a 'search by date' option, and the timestamp attached to the now command throws it off; no records appear in the returned set.
Anyone have any suggestions?
EnderX 352 Posting Shark
Never mind, I found a workaround. I was able to modify an older perl script to send out the message for me, and I never had any problem writing the php-driven data to a file, simply to the mail server. Thanks for the assistance, though! I really appreciated it.
-EnderX
EnderX 352 Posting Shark
Running on Unix, so the windows-based code didn't help much. I tried to id the location of our sendmail program, since it's mentioned in the commented out stuff, but no such luck; still didn't want to work.
Any other suggestions for what might be going wrong?
EnderX 352 Posting Shark
Thank you for your advice. I'll look into that. I suspect it's not the spam filters, though; I've tried sending to both my work account and my personal account and neither one got through.
What should the settings in php.ini look like? I'd like to make sure of those asap.
EnderX 352 Posting Shark
I am attempting to track and record information in a specific php file used where I work. The file is not my own work originally; I inherited it from my predecessor in the position. I am somewhat familiar with PHP, but not an expert. Additionally, I am still a newcomer to Linux work, and the file in question is running on the Suse 9 distribution.
I have modified the file with a simple check at the end to mark certain predefined limits for my tracking purposes. When the file's output goes past these limits, the file is supposed to email me, letting me know what has happened.
I know about the mail() function; I found out about it shortly after I began working on this program. The problem is, it doesn't seem to want to work for me. I am not sure that this is a php problem; the php mail() call always returns a true for me when I test it. However, I have tested microvariations on the mail call (mostly differing echo statements so I'll know it has processed correctly), but have not yet received any of the messages I have been attempting to send myself. Considering I've sent about three dozen by now, over the course of a ~3hr span, I suspect something is happening to prevent them from reaching the internet and being sent.
Does anyone know of any reason that the information sent by the mail function might not be going anywhere?
…