Jump to content

Miichael

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Miichael's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello I would like to understand how to use cron on a wamp server. I am pretty much a novice at apache and probably know just enough to be dangerous. I suppose I need to know how to install and manage the utility. I've done a lot of googling but have not found anything that seems to be helpful on my level. If anyone knows of a tutorial or two that would help me I would greatly appreciate it. Also, any information on disabling a running process would be greatly appreciated. Say, for example, how would one directly terminate a program that is runnning in an infinite loop. Thanks
  2. Well, apparently not enough times. It's working now. Guess I just messed up somehow. All's well that ends well.
  3. Yes, I tried that several times to to avail.
  4. I have just installed WAMP 1.7.0 on an XP machine. I am having a problem with the GD libray. I cannot access it. The dll file resides in the c\wamp\php\ext directory and I have uncommented "extension=php_gd2.dll" in the ini file. When I try to access gd_info () I get an error that says I am trying to call an undefined function. Not sure what to do and would appreciate any help. Thanks
  5. No.  I downloaded on copy of wamp. Loaded same on the win 2k machine and the win xp machine. Michael
  6. Your question is not real clear.  By being on the server already do you mean save it to the server as a file? If so, I got the following from HuggieBear in response to a question I posed.  This may not be the question you are asking.  If you are talking about how to get the image into a html page, well, I'm struggling with that also. imagejpeg($im); or imagejpeg($im, null, 100); By changing, or adding the second parameter, you can save the image. $filename = '/home/domains/domain.co.uk/images/dynamic.jpg'; imagejpeg($im, $filename, 100); Regards Huggie
  7. I must really be doing something wrong, 'cause I did that also. Basically my code looks like this the referenenced php file: <?php $im = imagecreatefrompng("path/iimage_name"); //some processing going on... (and I've deleted the processing in my test case to eliminate an error injection there) header("Content-type: image/png"); imagepng($im); ImageDestroy($im); ?> in the calling program, in php I have the following code (I'm using the phpBB template) $processed_image = '<img src="includes/make_the_image.php" alt="">' and then '"I_IMAGE' => $processed_image and in my template file the code is {I_IMAGE} and when I render my code looks like: <img src="includes/make_the_image.php" alt=""> and of course yields a broken image Ive played around with the php code, for example trying to something like src = "' . includes/make_the_image.php . ' " and src = "' . includes(includes/make_the_image.php) . '" but to no avail.  I'm sure I'm missing something really simple (or have yet to learn it, this is my first time trying this kind of thing, but darned if I've seen it yet. Thank you for your responses. Mike
  8. Thanks Both suggestions are good.  I actually tried '<img src="imagecreator.php">' as it is most appropriate for my needs. And when the code renders I get a broken image symbol and the the html code is '<img src="imagecreator.php">' For some reason the php script will not be invoked, but I know it is ok because if I call it directly the image is created and displayed.
  9. Hello I have a question regarding the GD library image creation functions. I can create the images I want using the php library functions.  No problem.  The result is the image on a web page displayed in my browser. However I cannot figure out how to capture said image and so I can place it on my web page where I want. I've spen hours looking but can find no answers.  Can anyone offer any suggestions? Thanks Michael
  10. Hello I've installed wamp on a win xp pro machine.  Th following things are true: ini file:  extension=php_gd2.dll (line is uncommented)           extension_dir = "c:/wamp/php/ext/" and in the directory:  c:/wamp/php/ext/ the php_2.dll is installed. However php doe not seem to be aware of the existance of the gd library. all calls to gd functions return with an error message:  Fatal error: Call to undefined function imagecreatefrompng() ...... (typical) I have gone over everything I can think of and cannot find the solution. Also, when I look at the setup using phpInfo() info shows no sign of the gd library being present. Am I missing something? Should I dump wamp and start over?  (hate to do that) Thanks michael
  11. Hello I've installed WAMP on two computers.  On uses Win 2k and the other Win XP. On the WIN 2k machine the GD library works fine.  On the XP machine there is no sign of the capability.  I have checked the ini file on both machines and they are identical and the php_gd2 dll exists in the same directory (c:\wamp\php\ext) on both machines. I can find no special reference to XP installation. If any one has an idea about this I would appreciate it. Thanks Michael
  12. Hello I have been working on an email routine.  I want to send messages as blind copies so that the end users cannot have access to each others emal addresses. I am having a problem with the Bcc header.  It seems like I keep running into an upper limit of about 6 or seven email addresses.  Less the messages go thru, more the email function returns an error and nothing is sent. This is not good because at any given time I will never know how many addresses there are. Is there a trick to using the function? My header is: $this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8 bit\nDate: " . date('r', time()) . "\n" . "X-Mailer: PHP \n X-MimeOLE: Produced By phpBB2 \n X-MimeOLE: Originated By Imagine Art Cafe \n" . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : ''); where $bcc is a string of somma seperated email addresses and the email function is $result = @mail('Undisclosed-recipients', $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers); Thanks Michael
  13. Yes there is.  Unfortunately I am at work at the moment and cannot quote from memory. Look at the php reference document and read up on the image processing functions.  You will find what you are looking for. It can be confusing and if you want some examples I have a number of working scripts that I would be happy to share.  One I have takes an uploaded image and automatically creates a thumbnail size version which more or less sounds what you are looking for. Get back to me if you would like to see the script. Michael
  14. Hello I am trying to learn improve my php skills and am having some problem with a couple of syntax issues.  I've tried researching but keep coming up with explainations that are vague at best.  If someone could point me to a good reference I would really really appreciate it. What does "$stuff => something" or " 'stuff' => something" mean.  I've seen it used and I have a sense of it but I really don't understand it beyione the "if I pick up a rock I can crack open the nut" kind of thing. What does "$stuff -> something" or "$stuff -> something(x) "mean?  This construct is really confusing me. I would really appreciate some guidance and maybe an example that I can look at to help me understand. Many thanks Michael
  15. Hello. Not exactly sure if this is a server question and am not sure as to where to look for the answer. I have a php program loaded on an apache server.  The purpose of program is to serve as the target for information transmitted to the server by means of an html form. The script recovers the data processes it and then posts the information into a database. My question is, if I have multiple users who could submit a response at or about the same time will multiple instances of the php program open and do the processing independantly or do I have to so dome server side tap dancing to make this scheme work.  If the later is true could someone point me to some reference material I could read up on. Thank you. Michael
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.